btc-models
Shared models and validation for the Bicycle Touring Companion
How to link in developement
- To test a working version of the
btc-models
, runnpm link
in the root folder of this repo. - Build changes in
src
by runningnpm run build
- Then in any other repo you wish to test
btc-models
(likebtc-app
,btc-server
, etc...) runnpm link btc-models
. That's it! To find more info check out the npm-link documents https://docs.npmjs.com/cli/link
How to test
- Make sure NODE_ENV is set to
test
- run
npm run build
- run
npm run test