forked from brackets-userland/brackets-electron
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.js
72 lines (64 loc) · 1.46 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
"use strict";
const gulp = require("gulp");
[
"./tasks/copy",
"./tasks/download-default-extensions",
"./tasks/nls-check",
"./tasks/eslint",
"./tasks/format",
"./tasks/npm-install",
"./tasks/test",
"./tasks/watch",
"./tasks/webpack",
"./tasks/write-config",
].forEach((taskfile) => {
require(taskfile);
});
gulp.task(
"install",
gulp.series(
"write-config:dist",
"npm-download-default-extensions",
"npm-install-source",
"webpack-browser-dependencies"
)
);
gulp.task("build", gulp.series("npm-install-dist", "npm-install-extensions-dist"));
// task: optimize - optimize contents of dist folder
gulp.task(
"optimize-common",
gulp.series(
// "eslint:src",
// "clean",
// "targethtml",
// "useminPrepare",
// "htmlmin",
// "requirejs",
// "concat",
// "cssmin",
// "uglify",
// "copy:dist",
// "cleanempty",
// "usemin",
"build-config"
// "clean:node_modules_test_dir"
)
);
// task: optimize
gulp.task(
"optimize",
gulp.series(
// "write-config:dist",
"optimize-common"
)
);
// task: optimize-prerelease
gulp.task(
"optimize-prerelease",
gulp.series(
// "write-config:prerelease",
"optimize-common"
)
);
gulp.task("test", gulp.parallel("eslint", "nls-check", "format-check"));
gulp.task("default", gulp.series("test"));