-
Notifications
You must be signed in to change notification settings - Fork 34
/
Gruntfile.js
32 lines (25 loc) · 971 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
32
module.exports = function(grunt) {
var path = require('path');
require('time-grunt')(grunt);
require('load-grunt-config')(grunt, {
// path to task.js files, defaults to grunt dir
configPath: path.join(process.cwd(), 'build'),
// auto grunt.initConfig
init: true,
// data passed into config. Can use with <%= test %>
data: {
test: false
},
// can optionally pass options to load-grunt-tasks.
// If you set to false, it will disable auto loading tasks.
loadGruntTasks: {
pattern: ['grunt-*'],
config: require('./package.json'),
scope: 'devDependencies'
},
//can post process config object before it gets passed to grunt
postProcess: function(config) {},
//allows to manipulate the config object before it gets merged with the data object
preMerge: function(config, data) {}
});
};