Skip to content

Commit

Permalink
refactor: clean tsconfig.json
Browse files Browse the repository at this point in the history
  • Loading branch information
plantain-00 committed Feb 9, 2018
1 parent 63177ab commit 03eaa97
Show file tree
Hide file tree
Showing 24 changed files with 103 additions and 125 deletions.
14 changes: 7 additions & 7 deletions file-size.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"angularDemoAotIndexBundleJs": "443 kB 117 kB",
"angularDemoJitIndexBundleJs": "818 kB 210 kB",
"angularDemoAotIndexBundleJs": "445 kB 118 kB",
"angularDemoJitIndexBundleJs": "820 kB 210 kB",
"coreDemoIndexBundleCss": "39 kB 9.19 kB",
"coreDemoTreeIconPng": "636 B 647 B",
"reactDemoIndexBundleJs": "119 kB 36.2 kB",
"vueDemoIndexBundleJs": "113 kB 38.3 kB",
"packagesAngularDemoAotIndexHtml": "871 B 570 B",
"reactDemoIndexBundleJs": "121 kB 36.6 kB",
"vueDemoIndexBundleJs": "116 kB 38.7 kB",
"packagesAngularDemoAotIndexHtml": "871 B 569 B",
"packagesAngularDemoJitIndexHtml": "871 B 567 B",
"packagesReactDemoIndexHtml": "880 B 573 B",
"packagesVueDemoIndexHtml": "880 B 576 B"
"packagesReactDemoIndexHtml": "880 B 574 B",
"packagesVueDemoIndexHtml": "880 B 572 B"
}

Large diffs are not rendered by default.

This file was deleted.

2 changes: 1 addition & 1 deletion packages/angular/demo/aot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
</style>
</head><body>
<app></app>
<script src="./index.bundle-81e31217846963ad46181a76f8cd14ef.js" crossOrigin="anonymous" integrity="sha256-HybZcwWFxDXKmWTDJlpkMFJE1UdaxMDrHAPNhuknZQM="></script>
<script src="./index.bundle-0f94e693b524102a8bf1e6cc1ed9dcba.js" crossOrigin="anonymous" integrity="sha256-LiiswSdkTvdWmU++liOd68ZYjERjFWGSP3njoNMhMxQ="></script>
</body></html>

This file was deleted.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/angular/demo/jit/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
</style>
</head><body>
<app></app>
<script src="./index.bundle-1c63debf5aa9cb0edd6fc8eac711c863.js" crossOrigin="anonymous" integrity="sha256-e2Zr6pA/aLFLSXBaWWoQZG7wOdTuMdMdNU6u48XkswI="></script>
<script src="./index.bundle-c86ee84fe6bf742fd2a0873255525d81.js" crossOrigin="anonymous" integrity="sha256-7lDTojZhAdPTJgNfdvPWvUpF1r8R7XC26a4Z0Asuhwo="></script>
</body></html>
13 changes: 5 additions & 8 deletions packages/angular/demo/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
"extends": "../../tsconfig.json",
"angularCompilerOptions": {
"strictMetadataEmit": true
},
"compilerOptions": {
"declaration": false
}
}
"extends": "../../tsconfig.json",
"angularCompilerOptions": {
"strictMetadataEmit": true
}
}
19 changes: 10 additions & 9 deletions packages/angular/src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"extends": "../../tsconfig.json",
"angularCompilerOptions": {
"strictMetadataEmit": true
},
"compilerOptions": {
"outDir": "../dist",
"rootDir": "."
}
}
"extends": "../../tsconfig.json",
"angularCompilerOptions": {
"strictMetadataEmit": true
},
"compilerOptions": {
"outDir": "../dist",
"rootDir": ".",
"declaration": true
}
}
13 changes: 5 additions & 8 deletions packages/core/demo/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
"extends": "../../tsconfig.json",
"angularCompilerOptions": {
"strictMetadataEmit": true
},
"compilerOptions": {
"declaration": false
}
}
"extends": "../../tsconfig.json",
"angularCompilerOptions": {
"strictMetadataEmit": true
}
}
17 changes: 9 additions & 8 deletions packages/core/src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"extends": "../../tsconfig.json",
"angularCompilerOptions": {
"strictMetadataEmit": true
},
"compilerOptions": {
"outDir": "../dist"
}
}
"extends": "../../tsconfig.json",
"angularCompilerOptions": {
"strictMetadataEmit": true
},
"compilerOptions": {
"outDir": "../dist",
"declaration": true
}
}

Large diffs are not rendered by default.

This file was deleted.

2 changes: 1 addition & 1 deletion packages/react/demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
</style>
</head><body>
<div id="container"></div>
<script src="./index.bundle-79a0431aebd2222a8f20d5ee473b6c0d.js" crossOrigin="anonymous" integrity="sha256-lOj22ZLKh+mj5M2/nlwrSGmZxwTTn7i13QXsC92/RG0="></script>
<script src="./index.bundle-7726e3b3074e7363a988e4c5c2a2a2cf.js" crossOrigin="anonymous" integrity="sha256-VyUlkIPGYFS/17qkOh580EAR3HJSu5xYHxDOQ/Rg1H0="></script>
</body></html>
7 changes: 2 additions & 5 deletions packages/react/demo/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"declaration": false
}
}
"extends": "../../tsconfig.json"
}
11 changes: 6 additions & 5 deletions packages/react/src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../dist"
}
}
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../dist",
"declaration": true
}
}
29 changes: 5 additions & 24 deletions packages/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,6 @@
{
"compilerOptions": {
"target": "es5",
"declaration": true,

"lib": [
"dom",
"es5",
"es2015.promise"
],

"module": "esnext",
"moduleResolution": "node",
"strict": true,
"noUnusedLocals": true,
"noImplicitReturns": true,
"skipLibCheck": true,
"importHelpers": true,
"jsx": "react",
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"emitDecoratorMetadata": true,
"newLine": "LF"
}
}
"extends": "../tsconfig.base.json",
"compilerOptions": {
"target": "es5"
}
}

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/vue/demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
</style>
</head><body>
<div id="container"></div>
<script src="./index.bundle-2106d740b00c4b86ad7a41736b356bfa.js" crossOrigin="anonymous" integrity="sha256-BsRn6a8YDsadpA/HOAu1gMqDHSyV2SqXC9ZxH53p9x8="></script>
<script src="./index.bundle-1b8edab76d337160dc0c43c2427be23c.js" crossOrigin="anonymous" integrity="sha256-2whG6xJhve7XFJswg5lM8p/QBnOtGi9OhbuCHatoJRA="></script>
</body></html>
7 changes: 2 additions & 5 deletions packages/vue/demo/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"declaration": false
}
}
"extends": "../../tsconfig.json"
}
11 changes: 6 additions & 5 deletions packages/vue/src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../dist"
}
}
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../dist",
"declaration": true
}
}
20 changes: 5 additions & 15 deletions screenshots/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
{
"compilerOptions": {
"target": "esnext",
"module": "commonjs",
"strict": true,
"noUnusedLocals": true,
"noImplicitReturns": true,
"skipLibCheck": true,
"importHelpers": true,
"jsx": "react",
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"downlevelIteration": true,
"newLine": "LF"
}
}
"extends": "../tsconfig.base.json",
"compilerOptions": {
"module": "commonjs"
}
}
23 changes: 5 additions & 18 deletions spec/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
{
"compilerOptions": {
"target": "es5",

"module": "esnext",
"moduleResolution": "node",
"strict": true,
"noUnusedLocals": true,
"noImplicitReturns": true,
"skipLibCheck": true,
"importHelpers": true,
"jsx": "react",
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"downlevelIteration": true,
"emitDecoratorMetadata": true,
"newLine": "LF"
}
}
"extends": "../tsconfig.base.json",
"compilerOptions": {
"target": "es5"
}
}
28 changes: 28 additions & 0 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"lib": [
"dom",
"es5",
"es2015",
"es2016",
"es2017"
],
"jsx": "react",
"importHelpers": true,
"downlevelIteration": true,
"strict": true,
"noUnusedLocals": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"skipLibCheck": true,
"newLine": "LF",
"noImplicitAny": true
}
}

0 comments on commit 03eaa97

Please sign in to comment.