forked from angular-ui-tree/angular-ui-tree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
36 lines (27 loc) · 793 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
'use strict';
var gulp = require('gulp'),
requireDir = require('require-dir'),
$ = require('gulp-load-plugins')();
// Load application tasks
(function () {
var dir = requireDir('./tasks');
Object.keys(dir).forEach(function (key) {
dir[key] = dir[key](gulp, $);
});
}());
$.karma = require('karma');
gulp.task('build', ['clean'], function () {
return gulp.start('styles', 'styles:copy-source', 'jscs', 'jshint', 'uglify', 'test');
});
gulp.task('deploy', ['clean:deploy'], function () {
return gulp.start('website');
});
gulp.task('serve', function () {
return gulp.start('connect', 'watch', 'open');
});
gulp.task('test', function () {
return gulp.start('karma');
});
gulp.task('test:e2e', function () {
return gulp.start('protractor');
});