There is a host environment setup under ./src
that you can run by executing:
yarn serve
This will create a live environment that will auto-reload when changing any source in any of the packages being used. Be warned, that development in Safari is problematic due to the browser over-caching. Use FireFox or Chrome for most reliable development experience.
You can build packages by running:
yarn build
- Create the package
cd packages
mkdir -p <package-name> && cd <package-name>
yarn init
- Mimic other packages for entrypoint, license, etc
- Copy over
LICENSE
file - Install it locally
yarn install
- Install dependencies
npx lerna add graphql-tag --scope=@scaife-viewer/<package-name>
yarn release
This will run the lerna publish command. You will need to be a member of the scaife-viewer NPM.js organization to publish new releases.