-
Notifications
You must be signed in to change notification settings - Fork 132
/
gulpfile.js
47 lines (39 loc) · 1.19 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
var gulp = require('gulp'),
connect = require('gulp-connect'),
runSequence = require('run-sequence');
require('./gulp-tasks/compass');
require('./gulp-tasks/copy');
require('./gulp-tasks/index');
require('./gulp-tasks/templates');
require('./gulp-tasks/lint');
require('./gulp-tasks/test');
require('./gulp-tasks/dist');
gulp.task('start development webserver', function() {
connect.server({
root: [ 'build' ],
port: 9000,
livereload: true
});
});
gulp.task('default', function(next) {
process.isLongRunning = true;
runSequence('start development webserver', 'build', next);
});
gulp.task('build', function(next) {
runSequence('test', 'copy', 'templates', 'compass', 'create index.html', 'ngdocs', next);
});
gulp.task('ci', function(next) {
runSequence('lint', 'test', next);
});
gulp.task('test', function(next) {
runSequence('unit', /*'integration', */next);
});
gulp.task('release', function(next) {
runSequence('build', 'dist', next);
});
gulp.task('ngdocs', [], function () {
var gulpDocs = require('gulp-ngdocs');
return gulp.src('app/modules/**/*.js')
.pipe(gulpDocs.process())
.pipe(gulp.dest('./docs'));
});