The following describes how to leverage these examples in conjunction with development on the framework itself.
-
Checkout and link
nexus.mkdir -p ~/projects/graphql-nexus git clone graphql-nexus/nexus ~/projects/graphql-nexus/nexus cd ~/projects/graphql-nexus/nexus yarn link -
For each example in this repo that you want to work with
cd <name-of-example> yarn -
Now that you are linked up for one or more examples. Enter dev mode in
nexusto begin your feedback loop.cd ~/projects/graphql-nexus/nexus yarn dev
-
Transient dependencies installed inside an example app via its linked
nexusdep are not linked/dynamic meaning if the dependency tree of nexus-future changes you need to take manual action to reflect this change in the examples:yarn install --force -
node_modules/.bin/nexusdoes not exist even after installation.- In the
nexusproject runyarn build - In an example run
yarn --force
- In the
- All examples run
yarn link nexusafter install so you never need to remember to do this.