forked from Prezent/ractive-decorators-select2
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathGruntfile.js
34 lines (25 loc) · 979 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
33
34
/* The one-size-fits-all key to Grunt.js happiness - http://bit.ly/grunt-happy */
/*global module:false*/
module.exports = function ( grunt ) {
'use strict';
var config, dependency;
config = {
pkg: grunt.file.readJSON( 'package.json' )
};
// Read config files from the `grunt/config/` folder
grunt.file.expand( 'grunt/config/*.js' ).forEach( function ( path ) {
var property = /grunt\/config\/(.+)\.js/.exec( path )[1],
module = require( './' + path );
config[ property ] = typeof module === 'function' ? module( grunt ) : module;
});
// Initialise grunt
grunt.initConfig( config );
// Load development dependencies specified in package.json
for ( dependency in config.pkg.devDependencies ) {
if ( /^grunt-/.test( dependency) ) {
grunt.loadNpmTasks( dependency );
}
}
// Load tasks from the `grunt-tasks/` folder
grunt.loadTasks( 'grunt/tasks' );
};