-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathgulpfile.js
More file actions
49 lines (36 loc) · 935 Bytes
/
Copy pathgulpfile.js
File metadata and controls
49 lines (36 loc) · 935 Bytes
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
const gulp = require('gulp');
const del = require('del');
const bldApi = require('./build-api');
const bldPaths = require('./build-scripts/build-paths');
const macOsClrTasks = require('./build-scripts/macos-clr-tasks');
const svgTasks = require('./build-scripts/svg-tasks');
const tsTasks = require('./build-scripts/ts-tasks');
const gravityStyleDictionary = require('./build-scripts/style-dictionary/config');
function clean() {
return del([
bldApi.distPath('**', '*'),
bldPaths.tmpPath('**', '*')
]);
}
function cleanBin() {
return del([
bldPaths.tmpBinPath('**', '*')
]);
}
function styleDictionary(done) {
gravityStyleDictionary.buildAllPlatforms();
done();
}
const build = gulp.series(
styleDictionary,
gulp.parallel(
macOsClrTasks.convertToClr,
tsTasks.processTs,
svgTasks.cleanAndOptimiseSvgs,
),
);
module.exports = {
default: build,
clean,
'clean-bin': cleanBin
};