$ npm i
cd (path to react-serve) npm link cd (path to your app) npm link @brightinteractive/react-serve
This symlinks your local version of the library into your app's node_modules.
Note that you'll need to do this again whenever you
npm install in your app.
The repo includes some helpful githooks, which you can install by symmlinking into your local .git directory
ln -s ../../githooks/pre-push .git/hooks/pre-push ln -s ../../githooks/post-pull .git/hooks/post-pull
Webpack will only monitor changes to the transpiled (js) sources from this library. To get changes to this library to show up in your project, you'll need to manually rebuild.
Note that this will often cause webpack to complain about missing modules until you restart your app.
Reverting to previously installed version:
npm unlink @brightinteractive/react-serve
Install and use latest version (eg. after publishing)
npm install @brightinteractive/react-serve@latest
npm version (major|minor|patch) && npm publish