chore(gulp): remove worker tasks

This commit is contained in:
Adam Bradley
2016-12-12 09:43:39 -06:00
parent 534e47be7c
commit 7c70bdff15
5 changed files with 0 additions and 206 deletions

View File

@ -12,4 +12,3 @@ import './tasks/snapshot';
import './tasks/test';
import './tasks/polyfill';
import './tasks/polyfill.source';
import './tasks/workers';

View File

@ -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) {

View File

@ -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',

View File

@ -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);
});