forked from slab/quill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
48 lines (41 loc) · 1.01 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
var gulp = require('gulp');
var runsequence = require('run-sequence');
var buildTasks = require('./config/build.js');
var serverTasks = require('./config/server.js');
var testTasks = require('./config/test.js');
var config = {
serverPort: 9000,
testPort: 9876
};
config.host = 'localhost:' + config.serverPort;
buildTasks(config);
serverTasks(config);
testTasks(config);
gulp.task('default', ['build']);
gulp.task('build', ['source', 'theme', 'examples']);
gulp.task('npm', function(callback) {
runsequence(
'clean',
['source', 'theme'],
'dist'
, callback);
});
gulp.task('build:release', function(callback) {
runsequence(
'clean',
'build',
'minify',
'dist',
'compress'
, callback);
});
gulp.task('test', ['karma:test']);
gulp.task('test:unit', ['karma:test']);
gulp.task('test:e2e', ['protractor:test']);
gulp.task('test:coverage', ['karma:coverage']);
gulp.task('dev', function(callback) {
runsequence(
'build',
['watch', 'server', 'karma:server']
, callback);
});