Skip to content

Commit e8eebcb

Browse files
committed
Get npm test working
1 parent ec041b5 commit e8eebcb

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.jshintrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"esnext": true
3+
}

gulpfile.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@ var stylish = require('jshint-stylish');
44
var access = require('./libs/accessSniff.js');
55

66
gulp.task('lint', function() {
7-
return gulp.src('./libs/*.js')
7+
return gulp.src(['./libs/*.js', 'gulpfile.js'])
88
.pipe(jshint())
99
.pipe(jshint.reporter(stylish));
1010
});
1111

12-
gulp.task('test', function() {
12+
gulp.task('accessSniff', function() {
1313
return gulp.src('./example/**/*.html')
1414
.pipe(access());
1515
});
16+
17+
gulp.task('test', ['lint', 'accessSniff']);

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Gulp plugin for AccessSniff",
55
"main": "index.js",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
7+
"test": "gulp test"
88
},
99
"repository": {
1010
"type": "git",
@@ -25,7 +25,7 @@
2525
"jshint-stylish": "^1.0.1"
2626
},
2727
"dependencies": {
28-
"access-sniff": "^0.2.1",
28+
"access-sniff": "^1.0.0",
2929
"gulp-util": "^3.0.4",
3030
"through2": "^0.6.5"
3131
}

0 commit comments

Comments
 (0)