forked from adsabs/bumblebee
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gruntfile.js
31 lines (29 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
31
'use strict';
module.exports = function(grunt) {
require('time-grunt')(grunt);
require('load-grunt-config')(grunt, {
data: {
pkg: grunt.file.readJSON('package.json'),
local: grunt.file.exists('local-config.json') ? grunt.file.readJSON('local-config.json') : {}
},
jitGrunt: {
staticMappings: {
express: 'grunt-express-server',
hash_require: 'grunt-hash-required',
bower: 'grunt-bower-task',
uglify: 'grunt-contrib-uglify-es'
}
}
});
// on watch events configure jshint to only run on changed file
grunt.event.on('watch', function(action, filepath) {
console.log("Linting ", filepath);
grunt.config('jshint.individual.src', filepath);
grunt.task.run(['jshint:individual']);
return;
});
grunt.event.on('blanket:fileDone', function(total, filepath) {
console.log("blanket:fileDone ", filepath);
return;
});
};