forked from ngbp/ngbp
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathGruntfile.js
31 lines (24 loc) · 927 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
module.exports = function(grunt) {
var path = require('path');
/** Load in our build configuration file. */
var userConfig = require( './build.config.js' );
require('load-grunt-config')(grunt, {
// path to task.js files, defaults to grunt dir
configPath: path.join(process.cwd(), 'grunt'),
// auto grunt.initConfig
init: true,
// data passed into config. Can use with <%= test %>
data: userConfig,
// 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) {}
});
};