Skip to content

Grunt Tasks

Samir Zahran edited this page May 18, 2017 · 3 revisions

Grunt tasts

A handful of Grunt tasks to validate and build the Controller.js libraries.

Building all files
Building only the main library
Building only the layouts add-on
Validating javascript
Creating the example site

Building all files

grunt build

Output

└── dist/
    ├── Controller.js.zip
    ├── Controller.min.js
    ├── Controller.layouts.min.js
    └── unminified/
        ├── Controller.js
        └── Controller.layouts.js

Building only the main library

grunt only_main

Output

└── dist/
    ├── Controller.min.js
    └── unminified/
        └── Controller.js

Building only the layouts add-on

grunt only_layouts

Output

└── dist/
    ├── Controller.layouts.min.js
    └── unminified/
        └── Controller.layouts.js

Validating Javascript

grunt hint

Creating the example site

grunt example

This script only works if you have the gh-pages branch. It pulls the completed site from that branch and makes minor modifications.

Output

└── example/
    ├── images/…
    ├── js/…
    ├── styles/…
    ├── favicon.ico
    ├── safari-pinned-icon.svg
    └── index.html

Clone this wiki locally