Skip to content

Commit

Permalink
fixup! ci(compiler-cli): run compiler-cli tests in bazel
Browse files Browse the repository at this point in the history
  • Loading branch information
chuckjaz committed Mar 26, 2018
1 parent a0dbd97 commit 6934782
Showing 1 changed file with 17 additions and 34 deletions.
51 changes: 17 additions & 34 deletions packages/compiler-cli/test/extract_i18n_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,23 +113,6 @@ describe('extract_i18n command line', () => {
if (isInBazel()) {
const support = setup();
write = (fileName: string, content: string) => { support.write(fileName, content); };
write('tsconfig-base.json', `{
"compilerOptions": {
"experimentalDecorators": true,
"skipLibCheck": true,
"noImplicitAny": true,
"types": [],
"outDir": "built",
"rootDir": ".",
"baseUrl": ".",
"declaration": true,
"target": "es5",
"module": "es2015",
"moduleResolution": "node",
"lib": ["es6", "dom"],
"typeRoots": ["node_modules/@types"]
}
}`);
basePath = support.basePath;
outDir = path.join(basePath, 'built');
} else {
Expand All @@ -142,23 +125,6 @@ describe('extract_i18n command line', () => {
}
fs.writeFileSync(path.join(basePath, fileName), content, {encoding: 'utf-8'});
};
write('tsconfig-base.json', `{
"compilerOptions": {
"experimentalDecorators": true,
"skipLibCheck": true,
"noImplicitAny": true,
"types": [],
"outDir": "built",
"rootDir": ".",
"baseUrl": ".",
"declaration": true,
"target": "es5",
"module": "es2015",
"moduleResolution": "node",
"lib": ["es6", "dom"],
"typeRoots": ["node_modules/@types"]
}
}`);
outDir = path.resolve(basePath, 'built');
const ngRootDir = getNgRootDir();
const nodeModulesPath = path.resolve(basePath, 'node_modules');
Expand All @@ -169,6 +135,23 @@ describe('extract_i18n command line', () => {
fs.symlinkSync(
path.resolve(ngRootDir, 'node_modules', 'rxjs'), path.resolve(nodeModulesPath, 'rxjs'));
}
write('tsconfig-base.json', `{
"compilerOptions": {
"experimentalDecorators": true,
"skipLibCheck": true,
"noImplicitAny": true,
"types": [],
"outDir": "built",
"rootDir": ".",
"baseUrl": ".",
"declaration": true,
"target": "es5",
"module": "es2015",
"moduleResolution": "node",
"lib": ["es6", "dom"],
"typeRoots": ["node_modules/@types"]
}
}`);
});

function writeSources() {
Expand Down

0 comments on commit 6934782

Please sign in to comment.