Skip to content

Latest commit

 

History

History
61 lines (41 loc) · 1.16 KB

COMMANDS.md

File metadata and controls

61 lines (41 loc) · 1.16 KB

Building project with Grunt

Check gruntfile.js for project configuration.

Here are the main commands:

Watch

Run grunt watch-project-server to watch project.

$ npx grunt watch-project-server

Build

Run grunt build to compile resources, collect project into /build and prepare it for deployment.

$ npx grunt build

Run grunt build-fast to build project without running tests or linters.

$ npx grunt build-fast

Process images, scripts, stylesheets and HTML

Run grunt compile to generate, optimise and minify images, scripts (UglifyJS), stylesheets (autoprefixer, CSScomb, etc.) and HTML-files.

$ npx grunt compile

Run grunt process-sprites to compile sprites

$ npx grunt process-sprites

Linting & testing

Run grunt quality to lint project's stylesheets (CSS Colorguard), scripts (ESLint), HTML-files (HTMLHint).

$ npx grunt quality

Run grunt test to run unit tests.

$ npx grunt test