-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gulpfile.js
51 lines (41 loc) · 1.06 KB
/
Gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
'use strict';
var gulp = require('gulp'),
nodemon = require('gulp-nodemon'),
bs = require('browser-sync'),
reload = bs.reload,
karma = require('karma').server,
shell = require('gulp-shell');
var paths = {
scripts: ['client/app/**/*.js'],
html: ['client/app/**/*.html', 'client/index.html'],
styles: ['client/styles/style.css'],
test: ['specs/**/*.js']
};
gulp.task('start', ['serve'], function() {
bs({
notify: true,
injectChanges: true,
files: paths.scripts.concat(paths.html, paths.styles),
proxy: 'localhost:8000'
});
});
gulp.task('karma', shell.task([
'karma start'
]));
gulp.task('karma-auto', function(done){
karma.start({
configFile: __dirname + '/karma.conf.js',
autoWatch: true,
singleRun: false
},done);
});
gulp.task('selenium', shell.task([
'webdriver-manager start'
]));
gulp.task('e2e', shell.task([
'protractor e2e/conf.js'
]));
gulp.task('serve', function() {
nodemon({script: 'index.js', ignore: 'node_modules/**/*.js'});
});
gulp.task('default', ['start']);