mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
fix(watch): update task paths
This commit is contained in:
12
gulpfile.js
12
gulpfile.js
@ -83,13 +83,13 @@ gulp.task('watch', function(done) {
|
|||||||
if (file.event === "unlink") {
|
if (file.event === "unlink") {
|
||||||
deleteFile(file);
|
deleteFile(file);
|
||||||
} else {
|
} else {
|
||||||
gulp.start('bundle');
|
gulp.start('bundle.system');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
watch('ionic/components/*/test/**/*', function(file) {
|
watch('ionic/components/*/test/**/*', function(file) {
|
||||||
gulp.start('e2e');
|
gulp.start('e2e.build');
|
||||||
});
|
});
|
||||||
|
|
||||||
watch('ionic/**/*.scss', function() {
|
watch('ionic/**/*.scss', function() {
|
||||||
@ -111,7 +111,7 @@ gulp.task('watch', function(done) {
|
|||||||
remember.forget('no-typecheck', file.history[0]);
|
remember.forget('no-typecheck', file.history[0]);
|
||||||
|
|
||||||
del([filePath, typingPath], function(){
|
del([filePath, typingPath], function(){
|
||||||
gulp.start('bundle');
|
gulp.start('bundle.system');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -174,7 +174,9 @@ gulp.task('bundle.system', function(){
|
|||||||
|
|
||||||
gulp.task('transpile', ['transpile.no-typecheck']);
|
gulp.task('transpile', ['transpile.no-typecheck']);
|
||||||
|
|
||||||
gulp.task('bundle', ['transpile'], function(done){
|
gulp.task('bundle', ['bundle.cjs', 'bundle.system']);
|
||||||
|
|
||||||
|
gulp.task('bundle.cjs', ['transpile'], function(done){
|
||||||
//TODO
|
//TODO
|
||||||
// if (flags.animations == 'polyfill') {
|
// if (flags.animations == 'polyfill') {
|
||||||
// prepend.push('window.Element.prototype.animate=undefined;');
|
// prepend.push('window.Element.prototype.animate=undefined;');
|
||||||
@ -277,7 +279,7 @@ gulp.task('e2e.build', function() {
|
|||||||
var sep = path.sep;
|
var sep = path.sep;
|
||||||
file.dirname = file.dirname.replace(sep + 'test' + sep, sep);
|
file.dirname = file.dirname.replace(sep + 'test' + sep, sep);
|
||||||
}))
|
}))
|
||||||
.pipe(gulp.dest('dist/e2e/'));
|
.pipe(gulp.dest('dist/e2e/'))
|
||||||
|
|
||||||
function createIndexHTML() {
|
function createIndexHTML() {
|
||||||
return through2.obj(function(file, enc, next) {
|
return through2.obj(function(file, enc, next) {
|
||||||
|
Reference in New Issue
Block a user