Skip to content

Instantly share code, notes, and snippets.

@chrsr
Created June 22, 2017 06:38
Show Gist options
  • Save chrsr/aaefc2f5c5851405ee30f40cbba7c341 to your computer and use it in GitHub Desktop.
Save chrsr/aaefc2f5c5851405ee30f40cbba7c341 to your computer and use it in GitHub Desktop.
gulp boilerplate
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