Skip to content

Configure Grunt tasks like a breeze ! Configure Grunt tasks with a config.json file to use Sass, Less, uglify, concat, watch... without editing the Gruntfile.js.

License

Notifications You must be signed in to change notification settings

sarcadass/front-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Front-Starter

Built with Grunt


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

How do I get set up?

  • Install Node.js
  • If you're using SASS:
    1. Install Ruby (Ruby is natively installed on OS X machines)
    2. Install SASS Gem
  • Target your working folder then run npm install front-starter

How do I configure the tasks?

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.

How can I use this plugin?

You can use different functions to build manually your project:

  • grunt build : will execute every task set in the config.json
  • grunt buildCss : will execute every CSS related task (Sass/Less...) set in the config.json
  • grunt 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 modified
  • grunt watchJs : will execute every JS related task set in the config.json, when original files are modified

Extra info on config.json configuration:

  • 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

About

Configure Grunt tasks like a breeze ! Configure Grunt tasks with a config.json file to use Sass, Less, uglify, concat, watch... without editing the Gruntfile.js.

Resources

License

Stars

Watchers

Forks

Packages

No packages published