summaryrefslogtreecommitdiffstats
path: root/gulpfile.js
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2016-03-26 22:26:01 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2016-03-27 14:53:29 +0200
commit04c1c8d3bd216a2195668cb06797079802c4fe44 (patch)
tree6e8ca32f2be56788f362eba68faddc69c84a2dca /gulpfile.js
parentf2181c00552a0d79b9c6fac54fe416b8a5b307f4 (diff)
add common makefile, make it possible to run tests and build package without installing global libs, enhance travis build file to also run php tests, add dev docs
fix indention fix copyright exclude gulpfile from appstore build also generate coverage when phpunit exsits in path remove breaking codecov from test run codecov after success, use previous make package run test suite instead of build try without sudo another try without sudo switch from mariadb to mysql mysql server seems to be present out of the box
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/gulpfile.js b/gulpfile.js
index 9dea8248..52794481 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -2,9 +2,10 @@ var gulp = require('gulp'),
concat = require('gulp-concat'),
eslint = require('gulp-eslint'),
ngAnnotate = require('gulp-ng-annotate'),
+ KarmaServer = require('karma').Server,
sourcemaps = require('gulp-sourcemaps');
-gulp.task('js', function() {
+gulp.task('default', ['eslint'], function() {
return gulp.src([
'js/main.js',
'js/components/**/*.js',
@@ -12,10 +13,6 @@ gulp.task('js', function() {
'js/services/**/*.js',
'js/filters/**/*.js'
])
- // ESlint
- .pipe(eslint())
- .pipe(eslint.format())
-
// concat (+sourcemaps)
.pipe(sourcemaps.init())
.pipe(ngAnnotate({ single_quotes: true }))
@@ -42,4 +39,9 @@ gulp.task('watch', ['js'], function() {
gulp.watch(['js/**/*.js', '!js/public/**/*.js'], ['js']);
});
-gulp.task('default', ['js']);
+gulp.task('karma', (done) => {
+ new KarmaServer({
+ configFile: __dirname + '/karma.conf.js',
+ singleRun: true
+ }, done).start();
+});