-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathGruntfile.js
39 lines (30 loc) · 916 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
35
36
37
38
39
'use strict';
module.exports = function( grunt ){
require( 'load-grunt-tasks' )( grunt );
var configs = {
config : {
paths : {
"lib" : ["lib/*.js"],
"build" : ["config/*.js*", "package.json", "Gruntfile.js"],
"test" : ["test/**/*.js"]
}
}
};
var loadConfigs = require( './lib/load-grunt-configs' );
configs = loadConfigs( grunt, configs );
// Project configuration.
grunt.initConfig( configs );
// Default task.
grunt.registerTask( 'default', ['jshint'] );
grunt.registerTask( 'vigilant', ['watch'] );
grunt.registerTask( 'serve', function(target){
if('docs' === target){
grunt.task.run( [
'clean:tmp',
'markdown:docs',
'connect:docs',
'watch:docs'
] );
}
} );
};