refactor(compiler): use new ngc for i18n (#19095)

This also changes ngc to support all tsc command line arguments.
PR Close #19095
This commit is contained in:
Tobias Bosch
2017-09-12 15:53:17 -07:00
committed by Matias Niemelä
parent c8f742e288
commit bf94f878bc
13 changed files with 650 additions and 334 deletions

View File

@ -114,8 +114,7 @@ multi-lines</source>
`;
describe('template i18n extraction output', () => {
const outDir = '';
const genDir = 'out';
const outDir = 'out';
it('should extract i18n messages as xmb', () => {
const xmbOutput = path.join(outDir, 'custom_file.xmb');
@ -139,7 +138,7 @@ describe('template i18n extraction output', () => {
});
it('should not emit js', () => {
const genOutput = path.join(genDir, '');
expect(fs.existsSync(genOutput)).toBeFalsy();
const files = fs.readdirSync(outDir);
files.forEach(f => expect(f).not.toMatch(/\.js$/));
});
});