File tree Expand file tree Collapse file tree 2 files changed +22
-23
lines changed Expand file tree Collapse file tree 2 files changed +22
-23
lines changed Original file line number Diff line number Diff line change @@ -6,35 +6,34 @@ module.exports = function( grunt ) {
6
6
7
7
grunt . initConfig ( {
8
8
9
- component_build : {
9
+ componentbuild : {
10
10
build : {
11
- output : './dist/' ,
12
- name : 'seed' ,
13
- styles : false ,
14
- standalone : 'Seed'
11
+ options : {
12
+ name : 'seed' ,
13
+ standalone : 'Seed'
14
+ } ,
15
+ src : '.' ,
16
+ dest : 'dist'
15
17
} ,
16
18
test : {
17
- output : './test/' ,
18
- name : 'seed.test' ,
19
- styles : false
19
+ options : {
20
+ name : 'seed.test'
21
+ } ,
22
+ src : '.' ,
23
+ dest : 'test'
20
24
}
21
25
} ,
22
26
23
27
jshint : {
24
28
options : {
25
- reporter : require ( 'jshint-stylish' )
29
+ reporter : require ( 'jshint-stylish' ) ,
30
+ jshintrc : true
26
31
} ,
27
32
dev : {
28
- src : [ 'src/**/*.js' ] ,
29
- options : {
30
- jshintrc : './.jshintrc'
31
- }
33
+ src : [ 'src/**/*.js' ]
32
34
} ,
33
35
test : {
34
- src : [ 'test/unit/specs/*.js' , 'test/functional/specs/*.js' ] ,
35
- options : {
36
- jshintrc : 'test/.jshintrc'
37
- }
36
+ src : [ 'test/unit/specs/*.js' , 'test/functional/specs/*.js' ]
38
37
}
39
38
} ,
40
39
@@ -54,7 +53,7 @@ module.exports = function( grunt ) {
54
53
compress : true ,
55
54
mangle : true ,
56
55
banner :
57
- '// Seed.js ' + require ( './package.json' ) . version + '\n' +
56
+ '// Seed.js - v ' + require ( './package.json' ) . version + '\n' +
58
57
'// (c) 2013 Evan You\n' +
59
58
'// https://github.com/yyx990803/seed\n'
60
59
} ,
@@ -67,7 +66,7 @@ module.exports = function( grunt ) {
67
66
watch : {
68
67
dev : {
69
68
files : [ 'src/**/*.js' , 'component.json' ] ,
70
- tasks : [ 'component_build ' , 'jsc' ]
69
+ tasks : [ 'componentbuild ' , 'jsc' ]
71
70
}
72
71
}
73
72
@@ -144,7 +143,7 @@ module.exports = function( grunt ) {
144
143
} )
145
144
146
145
grunt . registerTask ( 'test' , [
147
- 'component_build ' ,
146
+ 'componentbuild ' ,
148
147
'jsc' ,
149
148
'mocha' ,
150
149
'casper'
Original file line number Diff line number Diff line change 24
24
"devDependencies" : {
25
25
"grunt" : " ~0.4.1" ,
26
26
"grunt-contrib-watch" : " ~0.5.3" ,
27
- "grunt-component-build" : " ~0.3.2 " ,
28
- "grunt-contrib-jshint" : " ~0.6.4 " ,
29
- "grunt-contrib-uglify" : " ~0.2.4 " ,
27
+ "grunt-component-build" : " ~0.4.1 " ,
28
+ "grunt-contrib-jshint" : " ~0.7.1 " ,
29
+ "grunt-contrib-uglify" : " ~0.2.7 " ,
30
30
"grunt-mocha" : " ~0.4.1" ,
31
31
"jscoverage" : " ~0.3.8" ,
32
32
"jshint-stylish" : " 0.1.3"
You can’t perform that action at this time.
0 commit comments