Skip to content

Commit

Permalink
fix: fix gulp create metadata task (#801)
Browse files Browse the repository at this point in the history
  • Loading branch information
infuse89 authored and nnixaa committed Jun 5, 2018
1 parent ca47847 commit 96ad9d2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tools/gulp/tasks/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,13 @@ task(':build:table:inline', sequenceTask(
task(':inline-resources', () => inlineResources(TABLE_DIST_ROOT));

/** Generates metadata.json files for all of the components. */
task(':build:table:ngc', () => {
return task('build:table', execNodeTask(
'@angular/compiler-cli', 'ngc', ['-p', tsconfigPath],
))
});
task(':build:table:ngc',
sequenceTask(['build:table', ':build:table:metadata'])
);

task(':build:table:metadata', execNodeTask(
'@angular/compiler-cli', 'ngc', ['-p', tsconfigPath],
));

/** [Watch task] Rebuilds (ESM output) whenever ts, scss, or html sources change. */
task(':watch:table', () => {
Expand Down

0 comments on commit 96ad9d2

Please sign in to comment.