mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
chore(gulp): remove worker tasks
This commit is contained in:
@ -12,4 +12,3 @@ import './tasks/snapshot';
|
||||
import './tasks/test';
|
||||
import './tasks/polyfill';
|
||||
import './tasks/polyfill.source';
|
||||
import './tasks/workers';
|
||||
|
@ -31,7 +31,6 @@ function e2eBuild(done: (err: any) => void) {
|
||||
runSequence(
|
||||
'e2e.clean',
|
||||
'e2e.build',
|
||||
'e2e.workers',
|
||||
'e2e.polyfill',
|
||||
'e2e.copyExternalDependencies',
|
||||
'e2e.sass',
|
||||
@ -204,10 +203,6 @@ task('e2e.watch', ['e2e'], function () {
|
||||
watch('src/components/*/test/**/*', function (file) {
|
||||
start('e2e.build');
|
||||
});
|
||||
|
||||
watch('scripts/workers/**/*', function (file) {
|
||||
start('e2e.workers');
|
||||
});
|
||||
});
|
||||
|
||||
function watchTask(task) {
|
||||
|
@ -106,7 +106,6 @@ task('release.copyProdVersion', () => {
|
||||
task('release.prepareReleasePackage', (done: (err: any) => void) => {
|
||||
runSequence('clean',
|
||||
'release.polyfill',
|
||||
'release.workers',
|
||||
'compile.release',
|
||||
'release.copyTemplates',
|
||||
'release.copyNpmInfo',
|
||||
|
@ -1,21 +0,0 @@
|
||||
import { task, src, dest } from 'gulp';
|
||||
import { join } from 'path';
|
||||
import { DIST_E2E_ROOT, DIST_BUILD_ROOT, WORKERS_SRC } from '../constants';
|
||||
|
||||
const WORKER_FILES = join(WORKERS_SRC, '**', '*.js');
|
||||
|
||||
|
||||
task('release.workers', (done: Function) => {
|
||||
const uglify = require('gulp-uglify');
|
||||
const workersDesc = join(DIST_BUILD_ROOT, 'workers');
|
||||
return src(WORKER_FILES)
|
||||
.pipe(uglify())
|
||||
.pipe(dest(workersDesc), done);
|
||||
});
|
||||
|
||||
|
||||
task('e2e.workers', (done: Function) => {
|
||||
const workersDesc = join(DIST_E2E_ROOT, 'workers');
|
||||
return src(WORKER_FILES)
|
||||
.pipe(dest(workersDesc), done);
|
||||
});
|
Reference in New Issue
Block a user