grunt jade selected compile
Compiles jade files up on saving. It won't compile all jade files. If you have too many files it saves lot of time. This plugin is same as grunt-jade-selected-compile but you don't have to specify each and every file in Grunt.js.
Getting Started
This plugin requires Grunt ~0.4.1
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-jade-selected-compile --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt;
The "csjade" task
Overview
In your project's Gruntfile, add a section named cs
to the data object passed into grunt.initConfig()
.
grunt
Defaults
options: client: true runtime: true compileDebug: false locals: {} extension: null basePath: null wrapper: wrap: true amd: false dependencies: ''
Usage Examples
Example config
grunt; grunt; grunt;
Use it with watch tasks
coffee: { files: ['<%= yeoman.app %>/js/{,*/}*.coffee'], tasks: ['coffee:dist'] }, coffeeTest: { files: ['test/spec/{,*/}*.coffee'], tasks: ['coffee:test'] }, jade: { files: ['<%= yeoman.app %>/template/**/*.jade'], tasks: ['jade'] }, cs: { files: ['<%= yeoman.app %>/css/{,*/}*.{scss,sass}'], tasks: ['cs'] } }
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
Release History
(Nothing yet)