Tooling

January 30, 2023 ยท View on GitHub

Warning
This documentation is out-of-date and needs reviewing and updating.

npm scripts

commandaction
npm startRuns the default gulp task
npm testRuns CSS linting
npm build-gh-pagesBuild documentation with a base url that is suitable for publishing on github pages
npm build-gh-releaseRuns gulp zip for publishing to github releases

Gulp tasks

We use gulp for automating common tasks.

To run a gulp task, run ./node_modules/.bin/gulp <task_name> on the command line.

taskaction
defaultServe the documentation on port 3000. Recompile when there are changes
cleanRemove all compiled files
styleCompiles CSS
buildCompiles CSS and JS
bundleCreates distributable CSS and JS files in dist/
zipCreates a distributable zip file in dist/
watchRecompile documentation and distributables when there are changes
docs:buildRecompile documentation
docs:serveServe documentation on port 3000

Next: Linting