This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // tell Grunt to load a plugin | |
| grunt.loadNpmTasks('grunt-contrib-jshint'); | |
| grunt.loadNpmTasks('grunt-contrib-uglify'); | |
| grunt.loadNpmTasks('grunt-contrib-watch'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require('load-grunt-tasks')(grunt); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = function(grunt) { | |
| // Measures the time each task takes | |
| require('time-grunt')(grunt); | |
| // Load Grunt config | |
| require('load-grunt-config')(grunt); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "grunt-project", | |
| "version": "0.1.0", | |
| "devDependencies": { | |
| "grunt": "~0.4.2", | |
| "grunt-concurrent": "*", | |
| "grunt-contrib-compass": "*", | |
| "grunt-contrib-jshint": "*", | |
| "grunt-contrib-uglify": "*", | |
| "grunt-contrib-watch": "*", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| default: | |
| - 'concurrent:compass' | |
| - 'concurrent:watch' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = { | |
| dev: { | |
| options: { | |
| config: 'config.rb', | |
| watch: true | |
| } | |
| }, | |
| prod: { | |
| options: { | |
| config: 'config.rb', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = function(grunt) { | |
| // Load grunt config | |
| require('load-grunt-config')(grunt); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = { | |
| gruntfile: { | |
| files: 'Gruntfile.js', | |
| tasks: ['jshint:gruntfile'] | |
| }, | |
| scripts: { | |
| files: ['src/js/**/*.js'], | |
| tasks: ['jshint:all'] | |
| } | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| default: | |
| - 'newer:compass' | |
| - 'newer:watch' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = { | |
| options: { | |
| logConcurrentOutput: true | |
| }, | |
| watch: ['watch', 'compass:dev'] | |
| }; |
OlderNewer