Frontend Tools

Install

Install the tools described in this section:

npm install

Serve

Serve local development server:

grunt serve [options]

--O, --open-browser
--W, --webfont-compat

Browse your working copy:

http://localhost:8000

Lint

Validate your CSS code for consistence:

grunt stylelint
grunt colorguard

Validate your JavaScript code for consistence:

grunt eslint

Validate your HTML code for consistence:

grunt ncsslint
grunt htmlhint

Build

Build styles, scripts and fonts at once:

grunt build

Build the styles:

grunt build-styles

Build the scripts:

grunt build-scripts

Build the fonts:

grunt build-fonts

Optimize

Create table of contents for your assets and optimize images:

grunt optimize
Edit on GitHub