@ferlab/next
v0.0.26
Published
Shared library for our wrappers GraphQL APIs
Keywords
Readme
ferlab-next
Development
- Execute:
npm run devto test the build with your changes
dev and connect with local wrapper-next project (without live reload):
with yalc
- 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
with npm link (but not working with duplicate graphql module)
- 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
Test
- Execute:
npm run test
Push to npm
- Update version in package.json
- push on main automatically publish to npm
