forked from yeoman/yeoman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
56 lines (47 loc) · 1.36 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
var util = require('util');
var path = require('path');
module.exports = function( grunt ) {
'use strict';
grunt.initConfig({
lint: {
options: {
options: '<json:.jshintrc>',
global: {
process: true
}
},
grunt: [
'Gruntfile.js',
//'tasks/*.js',
],
lib: [
//'lib/{plugins,utils}/*.js',
//'lib/generators/*.js'
],
test: [
//'test/**/*.js'
]
},
watch: {
files: '<config:lint>',
tasks: 'lint'
}
});
// Disable lint for now until we upgrade to latest grunt with latest jshint
grunt.registerTask( 'default', 'lint' );
// Debugging helpers
grunt.registerTask( 'list-helpers', 'List all grunt registered helpers', function( helper ) {
var ls = grunt.log.wordlist( Object.keys( grunt.task._helpers ), grunt.util.linefeed );
if ( !helper ) {
return grunt.log.ok( ls );
}
grunt.log.subhead( helper + ' source:' ).writeln( grunt.task._helpers[ helper ] );
});
grunt.registerTask( 'list-tasks', 'List all grunt registered tasks', function( task ) {
var ls = grunt.log.wordlist( Object.keys( grunt.task._tasks ), grunt.util.linefeed );
if ( !task ) {
return grunt.log.ok( ls );
}
grunt.log.subhead( task + ' source:' ).writeln( util.inspect( grunt.task._tasks[ task ] ) );
});
};