Skip to content

Commit

Permalink
Ensure bower packages are installed
Browse files Browse the repository at this point in the history
  • Loading branch information
nicjansma committed Dec 12, 2015
1 parent 21e66c6 commit 022ec5a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ node_js:
- "0.11"
- "0.10"
before_install: npm install -g gulp
script: gulp
script: gulp travis
9 changes: 7 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
var karma = require("karma").server;
var path = require("path");
var jsoncombine = require("gulp-jsoncombine");
var bower = require("gulp-bower");

//
// Task Definitions
Expand Down Expand Up @@ -65,7 +66,11 @@
}));
});

gulp.task("karma", ["build-test", "mocha", "mocha-tap"], function(done) {
gulp.task("bower", function() {
return bower();
});

gulp.task("karma", ["bower", "build-test", "mocha", "mocha-tap"], function(done) {
return karma.start({
configFile: path.join(__dirname, "karma.config.js"),
singleRun: true
Expand All @@ -74,6 +79,6 @@

gulp.task("all", ["default"]);
gulp.task("test", ["mocha", "mocha-tap", "karma"]);
gulp.task("default", ["lint", "compress", "test"]);
gulp.task("default", ["bower", "lint", "compress", "test"]);
gulp.task("travis", ["default"]);
}());
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"cli-table2": "^0.1.9",
"colors": "^1.1.2",
"gulp": "^3.8.10",
"gulp-bower": "0.0.11",
"gulp-eslint": "^0.1.8",
"gulp-jsoncombine": "^1.0.3",
"gulp-rename": "^1.2.0",
Expand Down

0 comments on commit 022ec5a

Please sign in to comment.