Upgrading Grouparoo from v0.1 to v0.2
Last Updated: 2021-02-05Hello Grouparoo Community! v0.2 brings four major changes:
- Code Config
- The Grouparoo CLI
- Support for writing tests for your application
- UI Editions (coming soon)
Upgrade Guide
See this pull request, which contains the changes to the app-example
project. This is a good example for upgrading to v0.2 of Grouparoo for your app. All of the changes required will be in your package.json
file.
Install the latest version of the grouparoo command line tool:
npm install -g grouparoo
Remove any references to
@grouparoo/email-authentication
. This package has been removed and is no longer needed.Update all the package version numbers to the latest version, ie
"@grouparoo/core": "0.2.0"
and thennpm install --legacy-peer-deps
to install the latest versions.- There are tools like
npm-check-updates
which can do this for you automatically, ie:npx npm-check-updates --upgrade && npm install --legacy-peer-deps
- There are tools like
To add the Grouparoo UI, run
grouparoo install @grouparoo/ui-community
Remove the
prepare
step fromscripts
inside yourpackage.json
. This step is no longer needed and will speed up your install process.- Check the rest of your build process and remove all instances of
npm run prepare
that you might have, i.e. in aDockerfile
.
- Check the rest of your build process and remove all instances of
Change the paths for your
start
anddev
scripts to remove the/api
path per the example below.- If you are using Docker or another runner to start your apps, you may also need to make a similar change.
- In a Dockerfile, you might change
CMD ["./api/bin/start"]
toCMD ["./bin/start"]
"scripts": { "start": "cd node_modules/@grouparoo/core && ./bin/start", // "api/" has been removed "dev": "cd node_modules/@grouparoo/core && ./bin/dev", // "api/" has been removed }
The changes, in entirety, to your package.json
will look similar to this:
Now you can run your Grouparoo application (grouparoo start
)!
Having Problems?
If you are having trouble, visit the list of common issues or open a Github issue to get support.