We use Bolt to manage our mono-repo. Please read their docs before proceeding.
- The site can be found in
site/
. - All packages can be found in
packages/
.
To get started, run bolt
.
To run your tests in watch mode, run:
jest --watch
To narrow down the tests that are run, you can use the --testPathPattern
option:
jest --watch --testPathPattern skatejs
The above would run only tests that have paths that match skatejs
, for
example.
To document a package or work on the website, run bolt dev
. This will start up
a webpack-dev-server
and you can dev as normal.
Here are some other commands that you may need to run from time to time, for whatever reason:
bolt build
builds all distributions.bolt flow
invokes the localflow-bin
dependency.bolt precommit
runs the pre-commit hook.bolt prepare
prepares the packages for publishing.bolt site
compiles the website.bolt test
runs all tests for all packages once.bolt test:js
runs all the unit / integration tests.bolt test:ts
runs all of the TypeScript definition tests.