forked from cowboy/grunt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrunt.js
55 lines (54 loc) · 1.19 KB
/
grunt.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
// Config.
config.init({
meta: {
name: 'grunt',
version: '0.1.0',
description: 'A command line build tool for JavaScript projects..',
homepage: 'http://github.com/cowboy/node-grunt',
author: '"Cowboy" Ben Alman',
license: ['MIT', 'GPL'],
copyright: 'Copyright (c) 2011 "Cowboy" Ben Alman',
repository: 'git://github.com/cowboy/node-grunt.git'
},
build: {
src: ['grunt.js', 'lib/**'],
max: 'generated.js'
},
test: {
files: ['test/**']
},
lint: {
files: ['grunt.js', 'lib/**', 'test/**'],
built: 'generated.js'
},
jshint: {
options: {
curly: true,
eqeqeq: true,
immed: true,
latedef: true,
newcap: true,
noarg: true,
sub: true,
undef: true,
eqnull: true,
node: true
},
globals: {
setTimeout: true, // temp hack for https://github.com/jshint/jshint/issues/292
grequire: true,
urequire: true,
_: true,
task: true,
file: true,
fail: true,
config: true,
option: true,
log: true,
verbose: true
}
},
uglify: {}
});
// Default task.
task.registerTask('default', 'lint:files test'); //build lint:built min');