build: material sources not being watched when developing locally (#12472)

Fixes the Material sources not being rebuilt on changes due to an incorrect pattern.
This commit is contained in:
Kristiyan Kostadinov
2018-08-01 16:31:20 +02:00
committed by Jeremy Elbourn
parent e273a7a415
commit d392a8dc0b
+9 -3
View File
@@ -97,8 +97,14 @@ task('stage-deploy:devapp', ['build:devapp'], () => {
task('deploy:devapp', ['stage-deploy:devapp'], () => {
return firebaseTools.deploy({cwd: projectDir, only: 'hosting'})
// Firebase tools opens a persistent websocket connection and the process will never exit.
.then(() => { console.log('Successfully deployed the demo-app to firebase'); process.exit(0); })
.catch((err: any) => { console.log(err); process.exit(1); });
.then(() => {
console.log('Successfully deployed the demo-app to firebase');
process.exit(0);
})
.catch((err: any) => {
console.log(err);
process.exit(1);
});
});
/*
@@ -119,7 +125,7 @@ task(':watch:devapp', () => {
watchFiles(join(cdkPackage.sourceDir, '**/*'), ['cdk:build-no-bundles']);
// Material package watchers.
watchFiles(join(materialPackage.sourceDir, '**/!(*-theme).scss'), ['material:build-no-bundles']);
watchFiles(join(materialPackage.sourceDir, '**/!(*-theme.scss)'), ['material:build-no-bundles']);
watchFiles(join(materialPackage.sourceDir, '**/*-theme.scss'), [':build:devapp:scss']);
// Moment adapter package watchers