-
Notifications
You must be signed in to change notification settings - Fork 78
/
gulpfile.js
44 lines (41 loc) · 1.94 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
const { parallel, series } = require('gulp');
const { buildLegacy } = require('./gulpTasks/legacy');
const { doc } = require('./gulpTasks/doc');
const { setNodeProdEnv } = require('./gulpTasks/nodeEnv');
const { fileTypes } = require('./gulpTasks/filetypes');
const { fonts } = require('./gulpTasks/fonts');
const { iconList } = require('./gulpTasks/iconList');
const { buildStrings, testString } = require('./gulpTasks/strings');
const { setup } = require('./gulpTasks/setup');
const { templates } = require('./gulpTasks/templates');
const { compile, compileTSOnly, minimize, analyze } = require('./gulpTasks/compile');
const { definitions, validateDefs } = require('./gulpTasks/definition');
const { dev, devTest, devAccessibilityTest } = require('./gulpTasks/dev');
const { zipForGitReleases } = require('./gulpTasks/zip');
const { coverage, uploadCoverage, unitTests, accessibilityTests } = require('./gulpTasks/test');
const { docsitemap } = require('./gulpTasks/docsitemap');
const { injectVersion } = require('./gulpTasks/injectVersion');
const del = require('del');
const cleanBin = () => del(['./bin']);
const src = series(compile, definitions);
const build = series(setNodeProdEnv, parallel(fonts, iconList, setup, templates), src);
const defaultTask = series(cleanBin, fileTypes, buildStrings, parallel(buildLegacy, build, doc));
exports.default = defaultTask;
exports.compileTSOnly = compileTSOnly;
exports.minimize = minimize;
exports.analyze = analyze;
exports.validateDefs = validateDefs;
exports.dev = dev;
exports.devTest = devTest;
exports.devAccessibilityTest = devAccessibilityTest;
exports.zipForGitReleases = zipForGitReleases;
exports.coverage = coverage;
exports.uploadCoverage = uploadCoverage;
exports.docsitemap = docsitemap;
exports.doc = doc;
exports.injectVersion = injectVersion;
exports.testString = testString;
exports.unitTests = unitTests;
exports.accessibilityTests = accessibilityTests;
exports.templates = templates;
exports.strings = buildStrings;