forked from fullcalendar/fullcalendar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
57 lines (49 loc) · 1.5 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
49
50
51
52
53
54
55
56
57
const { parallel, series } = require('gulp')
const { shellTask } = require('./scripts/lib/util')
const { writePkgJsons } = require('./scripts/lib/pkg-json-write')
const { bundlPkgDefs } = require('./scripts/lib/pkg-dts')
const { writePkgReadmes } = require('./scripts/lib/pkg-readme')
const { writePkgLicenses } = require('./scripts/lib/pkg-license')
const { minifyJs, minifyCss } = require('./scripts/lib/minify')
const { lint } = require('./scripts/lib/lint')
const { archive } = require('./scripts/lib/archive')
const buildJs = exports.buildJs = series(
writePkgJsons, // important for node-resolution
shellTask('npm:tsc'),
shellTask('npm:rollup')
)
const watchJs = exports.watchJs = series(
writePkgJsons, // important for node-resolution
shellTask('npm:tsc:debug'),
parallel(
shellTask('npm:tsc:watch'), // TODO: better system then two consecutive compiles
shellTask('npm:rollup:watch')
)
)
const buildDts = exports.dts = series(
shellTask('npm:tsc:dts'), // generates granular .d.ts files
bundlPkgDefs // combines them
)
exports.build = parallel(
writePkgLicenses,
writePkgReadmes,
buildDts,
series(
buildJs,
minifyJs
),
series(
shellTask('npm:sass'),
minifyCss
)
)
exports.watch = parallel( // doesn't do everything build does
watchJs,
shellTask('npm:sass:watch')
)
exports.minify = parallel(minifyJs, minifyCss)
exports.lint = lint
exports.archive = archive
exports.json = writePkgJsons
exports.readme = writePkgReadmes
exports.license = writePkgLicenses