- Execute:
npm run devto test the build with your changes
- install yalc if not already:
npm install -g yalc - Execute (every change):
yalc publishhere in ferlab-next - Execute (every change):
yalc add @ferlab/nextin your local cqdg-wrapper-api
- Execute:
npm linkhere in ferlab-next - Execute:
npm link @ferlab/nextin your local wrapper-next project to connect ferlab-next and import it.
But currently the start doesn't work because there are incompatibility with duplicate graphql module when we start the wrapper-next with ferlab-next in link.
So use pack feature:
- Execute:
npm run packhere in ferlab-next: it builds and creates the file "ferlab-next-x.x.x.tgz" - Execute
npm install ../ferlab-next/ferlab-next-x.x.x.tgzin your local wrapper-next project - Then you are allow to run dev your local wrapper-next project with the pack without have to push to npm your local of ferlab-next
- Execute:
npm run test
- Update version in package.json
- push on main automatically publish to npm
