From dfbb7c4423cfdc38fd97ec50e119666175771038 Mon Sep 17 00:00:00 2001 From: Darin Acosta Date: Fri, 21 Apr 2017 12:48:42 -0500 Subject: [PATCH] update karma configuration --- bower.json | 8 +++++--- gulpfile.js | 20 ++++++++++---------- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/bower.json b/bower.json index ec5d94d..20ff686 100644 --- a/bower.json +++ b/bower.json @@ -2,8 +2,7 @@ "name": "time-controls", "version": "0.0.1", "main": [ - "dist/timecontrols.min.js", - "dist/timecontrols.min.css" + "lib/core/time/controls.js" ], "description": "time slider and timeline controls for maps", "homepage": "", @@ -32,6 +31,9 @@ }, "devDependencies": { "bootstrap": "3.0.0", - "angular-mocks": "1.2.21" + "angular-mocks": "1.6.3" + }, + "resolutions": { + "angular": "1.6.3" } } diff --git a/gulpfile.js b/gulpfile.js index 901873e..d6e70d3 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -142,14 +142,14 @@ gulp.task('minify', ['scripts'], function() { }); gulp.task('lint', function() { - // var lintStream = gulp.src(sources) - // .pipe(jshint()) - // .pipe(jshint.reporter('default')) - // .pipe(jshint.reporter('fail')); - // lintStream.on('error', function() { - // notify('linting failed'); - // }); - // return lintStream; + var lintStream = gulp.src(sources) + .pipe(jshint()) + .pipe(jshint.reporter('default')) + .pipe(jshint.reporter('fail')); + lintStream.on('error', function() { + notify('linting failed'); + }); + return lintStream; }); gulp.task('bundleCoreTemplates', function() { @@ -322,12 +322,12 @@ gulp.task('tdd', ['test'], function() { gulp.watch('test/*', ['karma']); }); -gulp.task('test', ['clean', 'karma']); +gulp.task('test', ['scripts', 'karma']); gulp.task('lazy', ['clean', 'lint', 'lessEdit', 'scripts', 'bundleCore']); -gulp.task('default', ['clean', 'lint', 'test', 'minify', 'docs']); +gulp.task('default', ['test', 'minify']); gulp.task('develop', ['connect', 'watch']);