THIS REPO IS NO LONGER MAINTAINED, USE GULPIT INSTEAD.
Configure Grunt tasks like a breeze! This repo provides an easy way to configure Grunt tasks with a config.json file to use Sass, Less, Uglify, Concat, Watch... without editing the Gruntfile.js
npm install front-starter
- Install Node.js
- If you're using SASS:
- Target your working folder then run
npm install front-starter
Tasks and folders locations are set in the config.json file. In this file you can activate the different tasks and set the different paths of your project.
You can use different functions to build manually your project:
grunt build
: will execute every task set in the config.jsongrunt buildCss
: will execute every CSS related task (Sass/Less...) set in the config.jsongrunt buildJs
: will execute every JS related task set in the config.json
Or you can watch for file modification to build your project:
grunt watchCss
: will execute every CSS related task (Sass/Less...) set in the config.json, when original files are modifiedgrunt watchJs
: will execute every JS related task set in the config.json, when original files are modified
-
You can choose between 4 options for the sass.compression:
- 'nested'
- 'compact'
- 'compressed'
- 'expanded'
-
less.ieCompat: Enforce the CSS output is compatible with Internet Explorer 8.
-
css.cleanConcatInput: Remove the ConcatInput files after concatenation