vectr-core
Development
$ cd /path/to/vectr-core
$ yarn
# It will take a long time to install the canvas module, so you could use this command:
$ yarn install --ignore-optional
# Link vectr-core as global dependency
$ yarn link
# Link vectr-core's react as global dependency, or there will have mutiple React.
# https://github.com/facebook/react/issues/13991
# https://github.com/facebook/react/issues/14721#issuecomment-458757426
$ cd ./node_modules/react && yarn link
# watch mode
$ yarn rollup -c -w
$ cd /path/to/vectr-next
$ yarn
$ yarn link vectr-core
$ yarn link react
$ yarn start
# or
$ PORT=3001 yarn start
# Development Done
$ cd /path/to/vectr-core
$ yarn unlink
$ cd /path/to/vectr-core/node_modules/react
$ yarn unlink
$ cd /path/to/vectr-next
$ yarn unlink vectr-core
$ yarn unlink react
Publish
$ npm publish
$ cd /path/to/vectr-next
$ yarn add vectr-core