The web UI for chpl
Git, Node.js, npm, and gulp are required to install and test this project.
Clone the repository using git:
See installation instructions here: nodejs
Yarn: yarn
yarn install
yarn build
: Build deployable artifactsyarn html
: Run HTML Linter with rules that should all passyarn html-lint:verbose
: Run HTML Linter with rules that don't play well with AngularJS, so some errors are expected, but this can find some errors that need to be fixedyarn start
: Run a local dev server at: http://localhost:3000/ with automatic reloadingyarn profile
: Generate a webpack statistics output fileyarn test
: Run the unit tests onceyarn test:auto
: Run the unit tests continuously, re-running the tests on any file changeyarn test:ahrq
: Run tests once in a fashion suitable for the deployment environmentyarn test:ci
: Run the tests once in a fashion suitable for a Continuous Integration environment
Usable on yarn build
and yarn start
, these parameters control configuration of some properties
--env.NODE_ENV=production
or--env.NODE_ENV=development
to indicate whether to build for development or production environments. Defaults todevelopment
if not provided--env.style
to create a a style guide page at url/style.html. Defaults to "don't create" if not provided
On all Yarn commands the CSS Linter, JS Linter and HTML Linters will run. Webpack may fail to compile if any of the linters report issues, depending on the severity of the issue