-
Notifications
You must be signed in to change notification settings - Fork 10
/
gulpfile.js
125 lines (99 loc) · 2.81 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
/* eslint-disable no-undef */
/* eslint-disable @typescript-eslint/no-var-requires */
let gulp = require('gulp');
function log(msg) {
console.log('GULP ' + msg);
}
var sb = require('./tasks/gulp-samples.js')
exports.getSamples = getSamples = gulp.series(
sb.getSamples,
);
exports.updateReadme = updateReadme = gulp.series(
sb.getSamples,
sb.updateReadme,
);
exports.updateSamples = updateSamples = gulp.series(
// sb.lintSamples,
sb.getSamples,
sb.updateReadme,
// sb.updatePackages,
// sb.updateIndex,
sb.updateSharedFiles,
sb.updateDataFiles,
);
exports.lintSamples = lintSamples = gulp.series(
// sb.makeSamplesWritable,
sb.getSamples,
sb.lintSamples,
sb.saveSamples,
);
exports.lintRazorFiles = lintRazorFiles = gulp.series(
// sb.makeSamplesWritable,
sb.getSamples,
sb.lintRazorFiles,
sb.saveSamples,
);
// exports.updateReadme = updateReadme = gulp.series(
// sb.getSamples,
// sb.updateReadme,
// );
exports.updateProjects = updateProjects = gulp.series(
// sb.getSamples,
sb.updateProjects,
);
// exports.updateSharedFiles = updateSharedFiles = gulp.series(
// sb.getSamples,
// sb.updateSharedFiles,
// );
exports.updateCodeViewer = updateCodeViewer = gulp.series(
sb.getSamples,
sb.updateCodeViewer,
);
exports.updateIG = updateIG = gulp.series(
sb.updateIG,
);
exports.copySamplesToServer = copySamplesToServer = gulp.series(
// sb.updateVersion,
sb.getSamples,
sb.copySamplesToServer,
);
exports.copySamplesToClient = copySamplesToClient = gulp.series(
// sb.updateVersion,
sb.getSamples,
sb.copySamplesToClient,
sb.updateCodeViewer,
sb.updateReadme,
);
exports.updateBrowser = updateBrowser = copySamplesToClient;
exports.cleanupSampleBrowsers = cleanupSampleBrowsers = gulp.series(
sb.cleanupSampleBrowsers,
);
exports.logSampleNames = sb.logSampleNames;
exports.removeSamplePages = sb.removeSamplePages;
exports.renameProjects = sb.renameProjects;
exports.convert = getSamples = gulp.series(
sb.getSamples,
sb.convertSamples,
);
// exports.updateVersion = updateVersion = sb.updateVersion;
// // exports.default = updateBrowser;
// exports.logPublicFiles = sb.logPublicFiles;
// exports.logSourceFiles = sb.logSourceFiles;
// exports.logUniqueFiles = sb.logUniqueFiles;
// exports.logRootFiles = sb.logRootFiles;
exports.logRoutes = logRoutes = gulp.series(
sb.getSamples,
sb.logRoutes,
);
// exports.logSandboxUrls = logSandboxUrls = gulp.series(
// sb.getSamples,
// sb.logSandboxUrls,
// );
exports.copyTemplates = copyTemplates = gulp.series(
sb.copyTemplates,
);
var gt = require('./tasks/gulp-tests.js')
exports.testSampleFiles = testSampleFiles = gulp.series(
gt.testSampleFiles,
);
exports.cleanupSamples = cleanupSamples = sb.cleanupSamples;