File tree 3 files changed +9
-4
lines changed
3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "esnext" : true
3
+ }
Original file line number Diff line number Diff line change @@ -4,12 +4,14 @@ var stylish = require('jshint-stylish');
4
4
var access = require ( './libs/accessSniff.js' ) ;
5
5
6
6
gulp . task ( 'lint' , function ( ) {
7
- return gulp . src ( './libs/*.js' )
7
+ return gulp . src ( [ './libs/*.js' , 'gulpfile.js' ] )
8
8
. pipe ( jshint ( ) )
9
9
. pipe ( jshint . reporter ( stylish ) ) ;
10
10
} ) ;
11
11
12
- gulp . task ( 'test ' , function ( ) {
12
+ gulp . task ( 'accessSniff ' , function ( ) {
13
13
return gulp . src ( './example/**/*.html' )
14
14
. pipe ( access ( ) ) ;
15
15
} ) ;
16
+
17
+ gulp . task ( 'test' , [ 'lint' , 'accessSniff' ] ) ;
Original file line number Diff line number Diff line change 4
4
"description" : " Gulp plugin for AccessSniff" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
7
- "test" : " echo \" Error: no test specified \" && exit 1 "
7
+ "test" : " gulp test"
8
8
},
9
9
"repository" : {
10
10
"type" : " git" ,
25
25
"jshint-stylish" : " ^1.0.1"
26
26
},
27
27
"dependencies" : {
28
- "access-sniff" : " ^0.2.1 " ,
28
+ "access-sniff" : " ^1.0.0 " ,
29
29
"gulp-util" : " ^3.0.4" ,
30
30
"through2" : " ^0.6.5"
31
31
}
You can’t perform that action at this time.
0 commit comments