-
Notifications
You must be signed in to change notification settings - Fork 5
/
gulpfile.js
105 lines (84 loc) · 2.44 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
let gulp = require('gulp');
let sb = require('./browser/tasks/gulp-samples.js')
// NOTE run "gulp updateBrowser" before running "npm run start"
exports.updateBrowser = updateBrowser = gulp.series(
sb.logPackages,
sb.findSamples,
sb.copySamples,
sb.updateCodeViewer,
sb.updateReadme,
);
exports.findSamples = findSamples = gulp.series(
sb.findSamples,
);
exports.lintSamples = lintSamples = gulp.series(
sb.lintSamples,
);
exports.updateSamples = updateSamples = gulp.series(
// sb.lintSamples,
sb.findSamples,
sb.updateReadme,
// sb.updateSamplePackages,
// sb.updateSampleIndex,
sb.updateSampleStyles,
// sb.updateSampleResources,
sb.updateSampleCodeFiles
);
exports.updateReadme = updateReadme = gulp.series(
sb.findSamples,
sb.updateReadme,
);
// exports.updateSamplePackages = updatePackages = gulp.series(
// sb.findSamples,
// sb.updateSamplePackages,
// );
exports.updateSampleWebpackConfigs = updateSampleWebpackConfigs = gulp.series(
sb.findSamples,
sb.updateSampleWebpackConfigs,
);
// exports.updateSampleResources = updateSampleResources = gulp.series(
// sb.findSamples,
// sb.updateSampleResources,
// );
// exports.updateSampleStyles = updateReadme = gulp.series(
// sb.findSamples,
// sb.updateSampleStyles,
// );
// exports.copySamplesToBrowser = copySamplesToBrowser = gulp.series(
// sb.findSamples,
// sb.copySamples,
// // sb.copyPackageJson,
// );
exports.logSamples = logSamples = gulp.series(
sb.findSamples,
sb.logSamples,
);
// // exports.default = updateBrowser;
// exports.logPublicFiles = sb.logPublicFiles;
// exports.logSourceFiles = sb.logSourceFiles;
// exports.logUniqueFiles = sb.logUniqueFiles;
// exports.logRootFiles = sb.logRootFiles;
// exports.lintSamples = sb.lintSamples;
exports.logPackages = sb.logPackages;
exports.logSampleNames = sb.logSampleNames;
exports.logRoutes = logRoutes = gulp.series(
sb.findSamples,
sb.logRoutes,
);
exports.logSandboxUrls = logSandboxUrls = gulp.series(
sb.findSamples,
sb.logSandboxUrls,
);
exports.updateCodeViewer = updateCodeViewer = gulp.series(
sb.findSamples,
sb.updateCodeViewer
);
exports.simplifySamples = simplifySamples = gulp.series(
sb.findSamples,
sb.simplifySamples,
);
exports.updateIG = sb.updateIG;
exports.updateWebpackConfigs = updateWebpackConfigs = gulp.series(
sb.findSamples,
sb.updateSampleWebpackConfigs,
);