mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
chore(gulp): update core task to run done on compile
This commit is contained in:
@ -37,10 +37,10 @@ function buildAngularBinding(isDevAndWatch: boolean, done: Function) {
|
||||
|
||||
ls.stdout.on('data', (data) => {
|
||||
console.log(data.toString().trim());
|
||||
// if (!hasRunDone && data.toString().trim().indexOf('compile, done') > -1) {
|
||||
// hasRunDone = true;
|
||||
// done();
|
||||
// }
|
||||
if (!hasRunDone && data.toString().trim().indexOf('compile, done') > -1) {
|
||||
hasRunDone = true;
|
||||
done();
|
||||
}
|
||||
});
|
||||
|
||||
ls.stderr.on('data', (data) => {
|
||||
@ -48,6 +48,9 @@ function buildAngularBinding(isDevAndWatch: boolean, done: Function) {
|
||||
});
|
||||
|
||||
ls.on('close', (code) => {
|
||||
done();
|
||||
if (!hasRunDone) {
|
||||
hasRunDone = true;
|
||||
done();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user