Use the specified version of Node for this project:
nvm use
If you get an error that the version of node is not installed, run:
nvm install $(cat .nvmrc)
Watch packages for updates to code and documentation, triggering builds of both on change.
Install dependencies for each package.
Build each package.
Prepare each package for distribution.
Generate documentation for each package.
Run tests for all packages.
See CONTRIBUTING.md
.
The generation of our documentation website is a three part process:
jsii
must be run within each package (this is done by runningnpm run build
from the project base dir). This produces a.jsii
in the root of each package.scripts/docgen.js
should be run to gather each package's.jsii
file and to export markdown documentation for each package into thesite/docs
directory.- Jekyll should be run to generate HTML from the markdown documentation.
This process can be made easier by running two processes in separate terminals:
npm start
which concurrently runs two operations:- trigger
jsii
builds on changes to packages'README.md
orlib/*.ts
files. - trigger
scripts/docgen.js
to run on changes to packages'.jsii
files.
- trigger
npm run website
which starts the Jekyll server. It is assumed that Jekyll has been previously installed on the system. See Jekyll's documentation for more information.