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
nexus
to begin your feedback loop.cd ~/projects/graphql-nexus/nexus yarn dev
-
Transient dependencies installed inside an example app via its linked
nexus
dep 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/nexus
does not exist even after installation.- In the
nexus
project runyarn build
- In an example run
yarn --force
- In the
- All examples run
yarn link nexus
after install so you never need to remember to do this.