forked from RainLoop/rainloop-webmail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
executable file
·31 lines (23 loc) · 1012 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
/* RainLoop Webmail (c) RainLoop Team | Licensed under MIT */
const gulp = require('gulp');
const { cleanStatic } = require('./tasks/common');
const { assets } = require('./tasks/assets');
const { js, jsLint } = require('./tasks/js');
const { css, cssLint } = require('./tasks/css');
const { vendors } = require('./tasks/vendors');
const { watchCss } = require('./tasks/watch');
const { rainloop } = require('./tasks/rainloop');
const { owncloud } = require('./tasks/owncloud');
const clean = gulp.series(cleanStatic);
const lint = gulp.parallel(jsLint, cssLint);
const buildState1 = gulp.parallel(js, css, vendors);
const buildState2 = gulp.series(clean, assets, buildState1);
const build = gulp.parallel(lint, buildState2);
exports.css = css;
exports.lint = lint;
exports.build = build;
exports.default = build;
exports.watchCss = watchCss;
exports.rainloop = gulp.series(build, rainloop);
exports.owncloud = gulp.series(build, owncloud);
exports.all = gulp.series(exports.rainloop, exports.owncloud);