-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
33 lines (26 loc) · 1020 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
const gulp = require('gulp')
const check = require('./gulp/check-versions')
const font = require('./gulp/font')
const build = require('./gulp/build')
const server = require('./gulp/dev-server')
const tests = require('./gulp/tests')
const eslint = require('./gulp/eslint')
const jsdoc = require('./gulp/jsdoc')
const env = require('./gulp/env')
exports['eslint:lint'] = eslint.lint
exports['eslint:fix'] = eslint.fix
exports['font:generate'] = font.generate
exports.build = gulp.series(check.checkVersions, env.setProd, build.clean, build.build)
exports['serve:online'] = gulp.series(check.checkVersions, env.setDevByDefault, server.serveOnline)
exports['serve:offline'] = gulp.series(check.checkVersions, env.setDevByDefault, server.serveOffline)
exports.test = gulp.series(env.setTest, tests.unit)
exports.jsdoc = jsdoc.jsdoc
exports.default = exports.build
exports.ci = gulp.parallel(
exports['eslint:lint'],
exports['font:generate'],
exports.build,
// exports.test,
// exports.jsdoc
exports.test
)