File tree Expand file tree Collapse file tree 4 files changed +53
-41
lines changed Expand file tree Collapse file tree 4 files changed +53
-41
lines changed Original file line number Diff line number Diff line change 2
2
language : node_js
3
3
node_js :
4
4
- ' 0.10'
5
+ - ' 0.12'
6
+ - ' iojs-1'
7
+ - ' iojs-2'
8
+ - ' iojs-3'
5
9
before_script :
6
10
- npm install
Original file line number Diff line number Diff line change
1
+ module . exports = function ( grunt ) {
2
+ "use strict" ;
3
+ // Project configuration.
4
+ grunt . initConfig ( {
5
+ pkg : grunt . file . readJSON ( 'package.json' ) ,
6
+ nodeunit : {
7
+ all : [ 'test/**/*.js' ]
8
+ } ,
9
+ lint : {
10
+ files : [ 'Gruntfile.js' , 'lib/**/*.js' , 'test/**/*.js' ]
11
+ } ,
12
+ watch : {
13
+ files : '<%= lint.files %>' ,
14
+ tasks : 'default'
15
+ } ,
16
+ jshint : {
17
+ options : {
18
+ curly : true ,
19
+ eqeqeq : true ,
20
+ immed : true ,
21
+ latedef : true ,
22
+ newcap : true ,
23
+ noarg : true ,
24
+ sub : true ,
25
+ undef : true ,
26
+ boss : true ,
27
+ eqnull : true ,
28
+ node : true ,
29
+ globals : {
30
+ exports : true
31
+ }
32
+ } ,
33
+ all : '<%= lint.files %>'
34
+ }
35
+ } ) ;
36
+
37
+ grunt . loadNpmTasks ( 'grunt-contrib-nodeunit' ) ;
38
+ grunt . loadNpmTasks ( 'grunt-contrib-jshint' ) ;
39
+ grunt . loadNpmTasks ( 'grunt-contrib-watch' ) ;
40
+ // Default task.
41
+ grunt . registerTask ( 'default' , 'nodeunit' ) ;
42
+
43
+ } ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 26
26
"node" : " >= 0.6.0"
27
27
},
28
28
"scripts" : {
29
- "test" : " grunt test "
29
+ "test" : " grunt nodeunit "
30
30
},
31
31
"devDependencies" : {
32
- "grunt" : " ~0.3.17"
32
+ "grunt" : " ^0.4.5" ,
33
+ "grunt-cli" : " ^0.1.13" ,
34
+ "grunt-contrib-jshint" : " ^0.11.2" ,
35
+ "grunt-contrib-nodeunit" : " ^0.4.1" ,
36
+ "grunt-contrib-watch" : " ^0.6.1"
33
37
},
34
38
"keywords" : []
35
39
}
You can’t perform that action at this time.
0 commit comments