Skip to content

Commit

Permalink
gulp: Added test:debug small web server
Browse files Browse the repository at this point in the history
  • Loading branch information
nicjansma committed Sep 30, 2024
1 parent 97ff90f commit 1a5acd3
Show file tree
Hide file tree
Showing 5 changed files with 1,155 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@

// disabled for use of _jQuery
"no-underscore-dangle": 0,

"no-prototype-builtins": 0,
"no-control-regex": 0
"no-control-regex": 0,
"strict": 0
}
}
8 changes: 8 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
var Server = require("karma").Server;
var path = require("path");
var fs = require("fs");
var gls = require("gulp-live-server");

gulp.task("lint", function() {
return gulp.src(["*.js", "src/*.js", "test/*.js"])
Expand Down Expand Up @@ -59,7 +60,14 @@
}, done).start();
}));

gulp.task("server", function() {
var server = gls.new("./test/server.js");

return server.start();
});

gulp.task("test", gulp.series("mocha", "mocha-tap", "karma"));
gulp.task("test:debug", gulp.series("server"));
gulp.task("default", gulp.series("lint", "lint:build", "compress", "test"));
gulp.task("all", gulp.series("default"));
gulp.task("travis", gulp.series("default"));
Expand Down
Loading

0 comments on commit 1a5acd3

Please sign in to comment.