-
Notifications
You must be signed in to change notification settings - Fork 5
/
gulpfile.js
42 lines (29 loc) · 878 Bytes
/
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
'use strict'
var gulp = require('gulp');
var jshint = require('gulp-jshint');
var shell = require('gulp-shell');
var mocha = require('gulp-mocha');
gulp.task('build', shell.task([
'npm install -g nodemon', 'npm install -g karma-cli'
]));
gulp.task('start', shell.task([
'/usr/bin/open -a "/Applications/Google Chrome.app" "http://localhost:8000"', 'nodemon index.js'
]));
gulp.task('lint', function() {
return gulp.src(['public/js/*.js', 'app/*.js'])
.pipe(jshint())
.pipe(jshint.reporter('default'));
});
gulp.task('serverTest', function() {
return gulp.src('test/serverSpec.js')
.pipe(mocha());
});
gulp.task('karma', shell.task([
'karma start'
]));
gulp.task('run', shell.task([
'/usr/bin/open -a "/Applications/Google Chrome.app" "http://localhost:8000"'
]));
gulp.task('default', function() {
console.log('gulp is running');
});