Skip to content

Plow74/chpl-website

 
 

Repository files navigation

chpl-website

Build Status Test Coverage Code Climate

The web UI for chpl

Prerequisites

Git, Node.js, npm, and gulp are required to install and test this project.

Getting Started

Clone the repository using git:

Install Node.js

See installation instructions here: nodejs

Install yarn and webpack

Yarn: yarn

Install dependencies

yarn install

Yarn scripts

  • yarn build: Build deployable artifacts
  • yarn html: Run HTML Linter with rules that should all pass
  • yarn 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 fixed
  • yarn start: Run a local dev server at: http://localhost:3000/ with automatic reloading
  • yarn profile: Generate a webpack statistics output file
  • yarn test: Run the unit tests once
  • yarn test:auto: Run the unit tests continuously, re-running the tests on any file change
  • yarn test:ahrq: Run tests once in a fashion suitable for the deployment environment
  • yarn test:ci: Run the tests once in a fashion suitable for a Continuous Integration environment

Yarn environment parameters

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 to development if not provided
  • --env.style to create a a style guide page at url/style.html. Defaults to "don't create" if not provided

Linting

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

About

The web UI for chpl

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • JavaScript 71.9%
  • HTML 26.8%
  • CSS 1.2%
  • Gherkin 0.1%