Created
June 22, 2017 06:38
-
-
Save chrsr/aaefc2f5c5851405ee30f40cbba7c341 to your computer and use it in GitHub Desktop.
gulp boilerplate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require("gulp"); | |
var jasmine = require("gulp-jasmine"); | |
var eslint = require("gulp-eslint"); | |
gulp.task("lint", function () { | |
return gulp.src(["file.js", "./path/**/*.js"]) | |
.pipe(eslint()) | |
.pipe(eslint.format()) | |
.pipe(eslint.failOnError()); | |
}); | |
gulp.task("test", function () { | |
return gulp.src("test/**/*-spec.js") | |
.pipe(jasmine({ | |
verbose: true | |
})); | |
}); | |
gulp.task("default", ["lint", "test"]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment