diff options
Diffstat (limited to 'gulpfile.babel.js')
-rw-r--r-- | gulpfile.babel.js | 40 |
1 files changed, 24 insertions, 16 deletions
diff --git a/gulpfile.babel.js b/gulpfile.babel.js index f87958a77..21b2e3d3b 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js | |||
@@ -149,6 +149,12 @@ export function mvLernaPackages() { | |||
149 | return gulp.src(['packages/**']).pipe(gulp.dest(`${paths.dest}/packages`)); | 149 | return gulp.src(['packages/**']).pipe(gulp.dest(`${paths.dest}/packages`)); |
150 | } | 150 | } |
151 | 151 | ||
152 | export function mvPostinstallScript() { | ||
153 | return gulp | ||
154 | .src(['./scripts/postinstall.js']) | ||
155 | .pipe(gulp.dest(`${paths.dest}/scripts`)); | ||
156 | } | ||
157 | |||
152 | export function exportBuildInfo() { | 158 | export function exportBuildInfo() { |
153 | const buildInfoData = { | 159 | const buildInfoData = { |
154 | timestamp: buildInfo.timestamp, | 160 | timestamp: buildInfo.timestamp, |
@@ -208,12 +214,7 @@ export function styles() { | |||
208 | 214 | ||
209 | export function processJavascripts() { | 215 | export function processJavascripts() { |
210 | return gulp | 216 | return gulp |
211 | .src( | 217 | .src([paths.javascripts.src], { since: gulp.lastRun(processJavascripts) }) |
212 | [ | ||
213 | paths.javascripts.src, | ||
214 | ], | ||
215 | { since: gulp.lastRun(processJavascripts) }, | ||
216 | ) | ||
217 | .pipe( | 218 | .pipe( |
218 | babel({ | 219 | babel({ |
219 | comments: false, | 220 | comments: false, |
@@ -226,15 +227,9 @@ export function processJavascripts() { | |||
226 | 227 | ||
227 | export function processTypescripts() { | 228 | export function processTypescripts() { |
228 | return gulp | 229 | return gulp |
229 | .src( | 230 | .src([paths.typescripts.src], { since: gulp.lastRun(processTypescripts) }) |
230 | [ | ||
231 | paths.typescripts.src, | ||
232 | ], | ||
233 | { since: gulp.lastRun(processTypescripts) }, | ||
234 | ) | ||
235 | .pipe(tsProject()) | 231 | .pipe(tsProject()) |
236 | .js | 232 | .js.pipe( |
237 | .pipe( | ||
238 | babel({ | 233 | babel({ |
239 | comments: false, | 234 | comments: false, |
240 | }), | 235 | }), |
@@ -275,8 +270,21 @@ export function recipeInfo() { | |||
275 | 270 | ||
276 | const build = gulp.series( | 271 | const build = gulp.series( |
277 | clean, | 272 | clean, |
278 | gulp.parallel(mvSrc, mvPackageJson, mvLernaPackages, exportBuildInfo), | 273 | gulp.parallel( |
279 | gulp.parallel(html, processJavascripts, processTypescripts, styles, recipes, recipeInfo), | 274 | mvSrc, |
275 | mvPackageJson, | ||
276 | mvLernaPackages, | ||
277 | mvPostinstallScript, | ||
278 | exportBuildInfo, | ||
279 | ), | ||
280 | gulp.parallel( | ||
281 | html, | ||
282 | processJavascripts, | ||
283 | processTypescripts, | ||
284 | styles, | ||
285 | recipes, | ||
286 | recipeInfo, | ||
287 | ), | ||
280 | ); | 288 | ); |
281 | export { build }; | 289 | export { build }; |
282 | 290 | ||