Frontend Tools
Install
Install the tools described in this section:
composer install
npm install
Serve
Run local development server:
grunt serve [options] -L, --live-reload -O, --open-browser -N, --no-cache -D, --debug-mode
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 and scripts at once:
grunt build
Build the styles:
grunt build-styles
Build the scripts:
grunt build-scripts
Optimize
Create table of contents for your assets and optimize images:
grunt optimizeEdit on GitHub