2.1 KiB
Hi (future) collaborator!
Where to start?
Have a fix or a new feature? Search for corresponding issues first then create a new one.
Development workflow
Requirements
To run this project, you will need:
- Node.js >= v8.7.0, use nvm - install instructions
- Yarn
Build
yarn run build will build all files in ./dist. This includes regular and
minified files for <script> inclusion, as well as classes for importing.
The command itself is split into yarn run build:js and yarn run build:css if
you want to build a subset.
Serve
You can have all this files served on localhost, along with live-reload, with
the yarn run serve command.
Test
You can run all tests with yarn run test, and yarn run test:watch will run
them with auto-reload.
Docs
The documentation lives in the ./docs folder. You should start by installing
its dependencies with cd ./docs && yarn install. Then:
yarn docs:buildwill build the docs website in./docs/dist.yarn docs:servewill do the same, but with live-reload enabledyarn docs:deploywill deploy the doc website manually
Refer to ./docs/README.md for more information
Release
npm run release will guide you through the release process. Note that you have
to use npm and not yarn for this one otherwise it won't deploy to npm.