chore: rename tsconfigs for IDEs (#1524)

This commit is contained in:
Jeremy Elbourn
2016-10-18 17:52:34 -07:00
committed by GitHub
parent 6df29dcd5b
commit 80186c144f
4 changed files with 17 additions and 17 deletions
@@ -5,7 +5,7 @@
"experimentalDecorators": true,
"lib": ["es6", "es2015", "dom"],
"mapRoot": "",
"module": "commonjs",
"module": "es2015",
"moduleResolution": "node",
"noEmitOnError": true,
"noImplicitAny": true,
@@ -15,18 +15,18 @@
"target": "es5",
"inlineSources": true,
"stripInternal": true,
"baseUrl": "",
"paths": {
},
"typeRoots": [
"../../node_modules/@types"
],
"types": [
"jasmine"
]
},
"exclude": [
"**/*.spec.*",
"system-config-spec.ts"
],
"angularCompilerOptions": {
"genDir": "../../dist",
"genDir": "../../dist/@angular/material",
"skipTemplateCodegen": true,
"debug": true
}
+6 -6
View File
@@ -5,7 +5,7 @@
"experimentalDecorators": true,
"lib": ["es6", "es2015", "dom"],
"mapRoot": "",
"module": "es2015",
"module": "commonjs",
"moduleResolution": "node",
"noEmitOnError": true,
"noImplicitAny": true,
@@ -15,18 +15,18 @@
"target": "es5",
"inlineSources": true,
"stripInternal": true,
"baseUrl": "",
"paths": {
},
"typeRoots": [
"../../node_modules/@types"
],
"types": [
"jasmine"
]
},
"exclude": [
"**/*.spec.*",
"system-config-spec.ts"
],
"angularCompilerOptions": {
"genDir": "../../dist/@angular/material",
"genDir": "../../dist",
"skipTemplateCodegen": true,
"debug": true
}
+3 -3
View File
@@ -34,11 +34,11 @@ function _globify(maybeGlob: string, suffix = '**/*') {
/** Create a TS Build Task, based on the options. */
export function tsBuildTask(tsConfigPath: string) {
export function tsBuildTask(tsConfigPath: string, tsConfigName = 'tsconfig.json') {
let tsConfigDir = tsConfigPath;
if (fs.existsSync(path.join(tsConfigDir, 'tsconfig.json'))) {
if (fs.existsSync(path.join(tsConfigDir, tsConfigName))) {
// Append tsconfig.json
tsConfigPath = path.join(tsConfigDir, 'tsconfig.json');
tsConfigPath = path.join(tsConfigDir, tsConfigName);
} else {
tsConfigDir = path.dirname(tsConfigDir);
}
+2 -2
View File
@@ -40,10 +40,10 @@ task(':watch:components:spec', () => {
/** Builds component typescript only (ESM output). */
task(':build:components:ts', tsBuildTask(componentsDir));
task(':build:components:ts', tsBuildTask(componentsDir, 'tsconfig-srcs.json'));
/** Builds components typescript for tests (CJS output). */
task(':build:components:spec', tsBuildTask(path.join(componentsDir, 'tsconfig-spec.json')));
task(':build:components:spec', tsBuildTask(componentsDir));
/** Copies assets (html, markdown) to build output. */
task(':build:components:assets', copyTask([