diff --git a/apps/chat/gulpfile.js b/apps/chat/gulpfile.js index 95879d1109..f0dc5cbe6d 100644 --- a/apps/chat/gulpfile.js +++ b/apps/chat/gulpfile.js @@ -115,6 +115,12 @@ gulp.task('js-minify', function () { .pipe(gulp.dest('./urbit/app/chat/js/')); }); +gulp.task('tile-js-minify', function () { + return gulp.src('./urbit/app/chat/js/tile.js') + .pipe(minify()) + .pipe(gulp.dest('./urbit/app/chat/js/')); +}); + gulp.task('js-cachebust', function(cb) { return Promise.resolve( exec('git log', function (err, stdout, stderr) { @@ -139,7 +145,9 @@ gulp.task('urbit-copy', function () { gulp.task('js-bundle-dev', gulp.series('jsx-transform', 'js-imports')); gulp.task('tile-js-bundle-dev', gulp.series('tile-jsx-transform', 'tile-js-imports')); -gulp.task('js-bundle-prod', gulp.series('jsx-transform', 'js-imports', 'js-minify', 'js-cachebust')) +gulp.task('js-bundle-prod', gulp.series('jsx-transform', 'js-imports', 'js-minify')) +gulp.task('tile-js-bundle-prod', + gulp.series('tile-jsx-transform', 'tile-js-imports', 'tile-js-minify')); gulp.task('bundle-dev', gulp.series( @@ -156,7 +164,8 @@ gulp.task('bundle-prod', gulp.series( gulp.parallel( 'css-bundle', - 'js-bundle-prod' + 'js-bundle-prod', + 'tile-js-bundle-prod', ), 'urbit-copy' ) diff --git a/apps/clock/gulpfile.js b/apps/clock/gulpfile.js index d925857402..2639972377 100644 --- a/apps/clock/gulpfile.js +++ b/apps/clock/gulpfile.js @@ -104,6 +104,12 @@ gulp.task('js-minify', function () { .pipe(gulp.dest('./urbit/app/clock/js/')); }); +gulp.task('tile-js-minify', function () { + return gulp.src('./urbit/app/clock/js/tile.js') + .pipe(minify()) + .pipe(gulp.dest('./urbit/app/clock/js/')); +}); + gulp.task('urbit-copy', function () { let ret = gulp.src('urbit/**/*'); @@ -115,6 +121,10 @@ gulp.task('urbit-copy', function () { }); gulp.task('tile-js-bundle-dev', gulp.series('tile-jsx-transform', 'tile-js-imports')); +gulp.task('tile-js-bundle-prod', + gulp.series('tile-jsx-transform', 'tile-js-imports', 'tile-js-minify')); + +gulp.task('bundle-prod', gulp.series('tile-js-bundle-prod', 'urbit-copy')); gulp.task('default', gulp.series('tile-js-bundle-dev', 'urbit-copy')); gulp.task('watch', gulp.series('default', function() { diff --git a/apps/launch/gulpfile.js b/apps/launch/gulpfile.js index 119e1e1a0b..d0ebf02d4c 100644 --- a/apps/launch/gulpfile.js +++ b/apps/launch/gulpfile.js @@ -101,7 +101,7 @@ gulp.task('urbit-copy', function () { }); gulp.task('js-bundle-dev', gulp.series('jsx-transform', 'js-imports')); -gulp.task('js-bundle-prod', gulp.series('jsx-transform', 'js-imports', 'js-minify', 'js-cachebust')) +gulp.task('js-bundle-prod', gulp.series('jsx-transform', 'js-imports', 'js-minify')) gulp.task('bundle-dev', gulp.series( diff --git a/apps/publish/gulpfile.js b/apps/publish/gulpfile.js index bda196a08d..707f57d721 100644 --- a/apps/publish/gulpfile.js +++ b/apps/publish/gulpfile.js @@ -115,6 +115,12 @@ gulp.task('js-minify', function () { .pipe(gulp.dest('./urbit/app/write/js/')); }); +gulp.task('tile-js-minify', function () { + return gulp.src('./urbit/app/write/js/tile.js') + .pipe(minify()) + .pipe(gulp.dest('./urbit/app/write/js/')); +}); + gulp.task('js-cachebust', function(cb) { return Promise.resolve( exec('git log', function (err, stdout, stderr) { @@ -139,7 +145,9 @@ gulp.task('urbit-copy', function () { gulp.task('js-bundle-dev', gulp.series('jsx-transform', 'js-imports')); gulp.task('tile-js-bundle-dev', gulp.series('tile-jsx-transform', 'tile-js-imports')); -gulp.task('js-bundle-prod', gulp.series('jsx-transform', 'js-imports', 'js-minify', 'js-cachebust')) +gulp.task('js-bundle-prod', gulp.series('jsx-transform', 'js-imports', 'js-minify')) +gulp.task('tile-js-bundle-prod', + gulp.series('tile-jsx-transform', 'tile-js-imports', 'tile-js-minify')); gulp.task('bundle-dev', gulp.series( @@ -156,7 +164,8 @@ gulp.task('bundle-prod', gulp.series( gulp.parallel( 'css-bundle', - 'js-bundle-prod' + 'js-bundle-prod', + 'tile-js-bundle-prod', ), 'urbit-copy' ) diff --git a/apps/timer/gulpfile.js b/apps/timer/gulpfile.js index 76d4e82840..93e5a6501f 100644 --- a/apps/timer/gulpfile.js +++ b/apps/timer/gulpfile.js @@ -104,6 +104,12 @@ gulp.task('js-minify', function () { .pipe(gulp.dest('./urbit/app/timer/js/')); }); +gulp.task('tile-js-minify', function () { + return gulp.src('./urbit/app/timer/js/tile.js') + .pipe(minify()) + .pipe(gulp.dest('./urbit/app/timer/js/')); +}); + gulp.task('urbit-copy', function () { let ret = gulp.src('urbit/**/*'); @@ -115,6 +121,10 @@ gulp.task('urbit-copy', function () { }); gulp.task('tile-js-bundle-dev', gulp.series('tile-jsx-transform', 'tile-js-imports')); +gulp.task('tile-js-bundle-prod', + gulp.series('tile-jsx-transform', 'tile-js-imports', 'tile-js-minify')); + +gulp.task('bundle-prod', gulp.series('tile-js-bundle-prod', 'urbit-copy')); gulp.task('default', gulp.series('tile-js-bundle-dev', 'urbit-copy')); gulp.task('watch', gulp.series('default', function() { diff --git a/apps/weather/gulpfile.js b/apps/weather/gulpfile.js index a15a785057..505b262862 100644 --- a/apps/weather/gulpfile.js +++ b/apps/weather/gulpfile.js @@ -104,6 +104,12 @@ gulp.task('js-minify', function () { .pipe(gulp.dest('./urbit/app/weather/js/')); }); +gulp.task('tile-js-minify', function () { + return gulp.src('./urbit/app/weather/js/tile.js') + .pipe(minify()) + .pipe(gulp.dest('./urbit/app/weather/js/')); +}); + gulp.task('urbit-copy', function () { let ret = gulp.src('urbit/**/*'); @@ -115,6 +121,10 @@ gulp.task('urbit-copy', function () { }); gulp.task('tile-js-bundle-dev', gulp.series('tile-jsx-transform', 'tile-js-imports')); +gulp.task('tile-js-bundle-prod', + gulp.series('tile-jsx-transform', 'tile-js-imports', 'tile-js-minify')); + +gulp.task('bundle-prod', gulp.series('tile-js-bundle-prod', 'urbit-copy')); gulp.task('default', gulp.series('tile-js-bundle-dev', 'urbit-copy')); gulp.task('watch', gulp.series('default', function() {