Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
chore(npm): update devDeps
Browse files Browse the repository at this point in the history
  • Loading branch information
mgcrea committed Jul 19, 2015
1 parent e90f153 commit 0cc35be
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 24 deletions.
33 changes: 17 additions & 16 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
'use strict';
/* eslint node:true */

var gulp = require('gulp');
var config = require('ng-factory').use(gulp, {
Expand Down Expand Up @@ -43,7 +44,7 @@ gulp.task('jshint', function() {
.pipe(jshint.reporter(stylish));
});

var karma = require('karma').server;
var Server = require('karma').Server;
var testTimezone = '';
gulp.task('karma:unit', gulp.series('ng:test/templates', function() {
// if testTimezone has value, set the environment timezone
Expand All @@ -53,18 +54,18 @@ gulp.task('karma:unit', gulp.series('ng:test/templates', function() {
console.log('Setting timezone to => [' + testTimezone + ']');
process.env.TZ = testTimezone;
}
karma.start({
new Server({
configFile: path.join(__dirname, 'test/karma.conf.js'),
browsers: ['PhantomJS'],
reporters: ['dots'],
singleRun: true
}, function(code) {
gutil.log('Karma has exited with ' + code);
process.exit(code);
});
}).start();
}));
gulp.task('karma:server', gulp.series('ng:test/templates', function karmaServer() {
karma.start({
new Server({
configFile: path.join(__dirname, 'test/karma.conf.js'),
browsers: ['PhantomJS'],
reporters: ['progress'],
Expand All @@ -73,38 +74,38 @@ gulp.task('karma:server', gulp.series('ng:test/templates', function karmaServer(
}, function(code) {
gutil.log('Karma has exited with ' + code);
process.exit(code);
});
}).start();
}));
// codeclimate-test-reporter
gulp.task('karma:travis', gulp.series('ng:test/templates', function karmaTravis() {
karma.start({
new Server({
configFile: path.join(__dirname, 'test/karma.conf.js'),
browsers: ['PhantomJS'],
reporters: ['dots', 'coverage'],
singleRun: true
}, function(code) {
gutil.log('Karma has exited with ' + code);
process.exit(code);
// gulp.src('test/coverage/**/lcov.info')
// .pipe(coveralls())
// .on('end', function() {
// process.exit(code);
// });
});
gulp.src('test/coverage/**/lcov.info')
.pipe(coveralls())
.on('end', function() {
process.exit(code);
});
}).start();
}));
gulp.task('karma:travis~1.2.0', gulp.series('ng:test/templates', function karmaTravis120() {
karma.start({
new Server({
configFile: path.join(__dirname, 'test/~1.2.0/karma.conf.js'),
browsers: ['PhantomJS'],
reporters: ['dots'],
singleRun: true
}, function(code) {
gutil.log('Karma has exited with ' + code);
process.exit(code);
});
}).start();
}));
gulp.task('karma:travis~1.3.0', gulp.series('ng:test/templates', function karmaTravis130() {
karma.start({
new Server({
configFile: path.join(__dirname, 'test/~1.3.0/karma.conf.js'),
browsers: ['PhantomJS'],
reporters: ['dots'],
Expand All @@ -114,7 +115,7 @@ gulp.task('karma:travis~1.3.0', gulp.series('ng:test/templates', function karmaT
}, function(code) {
gutil.log('Karma has exited with ' + code);
process.exit(code);
});
}).start();
}));

gulp.task('test', gulp.series('ng:test/templates', gulp.parallel('jshint', 'karma:unit')));
Expand Down
11 changes: 3 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,7 @@
"type": "git",
"url": "https://github.com/mgcrea/angular-strap.git"
},
"licenses": [
{
"type": "MIT",
"url": "https://github.com/mgcrea/angular-strap/blob/master/LICENSE.md"
}
],
"license": "MIT",
"dependencies": {},
"devDependencies": {
"del": "^1.2.0",
Expand All @@ -39,14 +34,14 @@
"gulp-util": "^3.0.6",
"jasmine-core": "^2.3.4",
"jshint-stylish": "^2.0.1",
"karma": "^0.12.37",
"karma": "^0.13.2",
"karma-chrome-launcher": "^0.2.0",
"karma-coverage": "^0.4.2",
"karma-jasmine": "^0.3.6",
"karma-phantomjs-launcher": "^0.2.0",
"karma-sauce-launcher": "^0.2.14",
"ng-factory": "^1.0",
"undertaker-lib-tasks": "^0.3.2"
"undertaker-lib-tasks": "^0.3.4"
},
"engines": {
"node": "^0.10"
Expand Down

0 comments on commit 0cc35be

Please sign in to comment.