Skip to content

Latest commit

 

History

History
82 lines (58 loc) · 2.08 KB

CONTRIBUTING.md

File metadata and controls

82 lines (58 loc) · 2.08 KB

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:

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:build will build the docs website in ./docs/dist.
  • yarn docs:serve will do the same, but with live-reload enabled
  • yarn docs:deploy will 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.