-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathGruntfile.js
30 lines (22 loc) · 921 Bytes
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json')
});
// Read the config for the 'run' task that can run any command
var runConfigs = require('./grunt/run.js');
if(!runConfigs['node-inspector'].args){
runConfigs['node-inspector'].args = [];
}
// Prepend the file name to the command line arguments array
runConfigs['node-inspector'].args.unshift(grunt.option('file'));
grunt.config( 'jshint', require('./grunt/jshint.js') );
grunt.config( 'githooks', require('./grunt/githooks.js') );
grunt.config( 'run', runConfigs );
grunt.config( 'sass', require('./grunt/sass.js') );
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-run');
grunt.loadNpmTasks('grunt-githooks');
grunt.registerTask('default', ['jshint']);
grunt.registerTask('debug', ['run:node-inspector']);
};