-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgulpfile.js
47 lines (38 loc) · 888 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
43
44
45
46
47
'use strict';
(function () {
let gulp = require('gulp');
let runSequence = require('run-sequence');
let config = require('js.shared').config;
let p = require('./package.json');
config.init(p.locals);
require('gulp-load-tasks')();
gulp.task('build', [
'bower',
'htm',
'img',
'js',
'css',
'index',
'extension'
]);
gulp.task('deploy', function (done) {
runSequence(
'clean',
['build', 'revision'],
done
);
});
gulp.task('default', [
'build',
'server',
'watch',
'ext_watch'
]);
gulp.task('extension', function (cb) {
runSequence(
['ext_manifest', 'ext_background', 'ext_content', 'ext_popup', 'ext_static'],
'ext_zip',
cb
);
});
}());