Skip to content

Commit

Permalink
feat(typescript): add typescript project references
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherthielen committed Sep 24, 2021
1 parent f75d51a commit 4407395
Show file tree
Hide file tree
Showing 19 changed files with 168 additions and 139 deletions.
12 changes: 8 additions & 4 deletions packages/amazon/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
{
"extends": "../tsconfig.app.base.json",
"compilerOptions": {
"outDir": "dist",
"rootDir": "./src"
"rootDir": "./src",
"composite": true
},
"include": ["src/**/*.ts", "src/**/*.tsx"],
"exclude": ["**/*.spec.*"]
"exclude": ["**/*.spec.*"],
"extends": "../tsconfig.app.base.json",
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.js"],
"references": [
{ "path": "../core/tsconfig.json" }
]
}
19 changes: 16 additions & 3 deletions packages/app/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,21 @@
"compilerOptions": {
"baseUrl": "./src",
"outDir": "dist",
"rootDir": "./src"
"rootDir": "./src",
"composite": true
},
"include": ["src/**/*.ts", "src/**/*.tsx"],
"exclude": ["**/*.spec.*"]
"exclude": ["**/*.spec.*"],
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.js"],
"references": [
{ "path": "../amazon/tsconfig.json" },
{ "path": "../appengine/tsconfig.json" },
{ "path": "../cloudfoundry/tsconfig.json" },
{ "path": "../core/tsconfig.json" },
{ "path": "../docker/tsconfig.json" },
{ "path": "../ecs/tsconfig.json" },
{ "path": "../google/tsconfig.json" },
{ "path": "../kubernetes/tsconfig.json" },
{ "path": "../oracle/tsconfig.json" },
{ "path": "../titus/tsconfig.json" }
]
}
12 changes: 8 additions & 4 deletions packages/appengine/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
{
"extends": "../tsconfig.app.base.json",
"compilerOptions": {
"outDir": "dist",
"rootDir": "./src"
"rootDir": "./src",
"composite": true
},
"include": ["src/**/*.ts", "src/**/*.tsx"],
"exclude": ["**/*.spec.*"]
"exclude": ["**/*.spec.*"],
"extends": "../tsconfig.app.base.json",
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.js"],
"references": [
{ "path": "../core/tsconfig.json" }
]
}
12 changes: 8 additions & 4 deletions packages/azure/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
{
"extends": "../tsconfig.app.base.json",
"compilerOptions": {
"outDir": "dist",
"rootDir": "./src"
"rootDir": "./src",
"composite": true
},
"include": ["src/**/*.ts", "src/**/*.tsx"],
"exclude": ["**/*.spec.*"]
"exclude": ["**/*.spec.*"],
"extends": "../tsconfig.app.base.json",
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.js"],
"references": [
{ "path": "../core/tsconfig.json" }
]
}
12 changes: 8 additions & 4 deletions packages/cloudfoundry/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
{
"extends": "../tsconfig.app.base.json",
"compilerOptions": {
"outDir": "dist",
"rootDir": "./src"
"rootDir": "./src",
"composite": true
},
"include": ["src/**/*.ts", "src/**/*.tsx"],
"exclude": ["**/*.spec.*"]
"exclude": ["**/*.spec.*"],
"extends": "../tsconfig.app.base.json",
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.js"],
"references": [
{ "path": "../core/tsconfig.json" }
]
}
12 changes: 8 additions & 4 deletions packages/core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
{
"extends": "../tsconfig.app.base.json",
"compilerOptions": {
"outDir": "dist",
"rootDir": "./src"
"rootDir": "./src",
"composite": true
},
"include": ["src/**/*.ts", "src/**/*.tsx"],
"exclude": ["**/*.spec.*", "**/*.stories.*"]
"exclude": ["**/*.spec.*", "**/*.stories.*"],
"extends": "../tsconfig.app.base.json",
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.js"],
"references": [
{ "path": "../presentation/tsconfig.json" }
]
}
13 changes: 9 additions & 4 deletions packages/dcos/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
{
"extends": "../tsconfig.app.base.json",
"compilerOptions": {
"outDir": "dist",
"rootDir": "./src"
"rootDir": "./src",
"composite": true
},
"include": ["src/**/*.ts", "src/**/*.tsx"],
"exclude": ["**/*.spec.*"]
"exclude": ["**/*.spec.*"],
"extends": "../tsconfig.app.base.json",
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.js"],
"references": [
{ "path": "../core/tsconfig.json" },
{ "path": "../docker/tsconfig.json" }
]
}
12 changes: 8 additions & 4 deletions packages/docker/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
{
"extends": "../tsconfig.app.base.json",
"compilerOptions": {
"outDir": "dist",
"rootDir": "./src"
"rootDir": "./src",
"composite": true
},
"include": ["src/**/*.ts", "src/**/*.tsx"],
"exclude": ["**/*.spec.*"]
"exclude": ["**/*.spec.*"],
"extends": "../tsconfig.app.base.json",
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.js"],
"references": [
{ "path": "../core/tsconfig.json" }
]
}
14 changes: 10 additions & 4 deletions packages/ecs/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
{
"extends": "../tsconfig.app.base.json",
"compilerOptions": {
"outDir": "dist",
"rootDir": "./src"
"rootDir": "./src",
"composite": true
},
"include": ["src/**/*.ts", "src/**/*.tsx"],
"exclude": ["**/*.spec.*"]
"exclude": ["**/*.spec.*"],
"extends": "../tsconfig.app.base.json",
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.js"],
"references": [
{ "path": "../amazon/tsconfig.json" },
{ "path": "../core/tsconfig.json" },
{ "path": "../docker/tsconfig.json" }
]
}
4 changes: 2 additions & 2 deletions packages/eslint-plugin/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"compilerOptions": {
"allowJs": true,
"allowSyntheticDefaultImports": true,
"downlevelIteration": true,
"esModuleInterop": true,
"lib": ["ES2020"],
"module": "CommonJS",
"noEmit": true,
"lib": ["ES2020"],
"skipLibCheck": true,
"downlevelIteration": true,
"types": ["node", "jest"]
},
"include": ["rules/**/*.ts", "utils/**/*.ts"],
Expand Down
12 changes: 8 additions & 4 deletions packages/google/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
{
"extends": "../tsconfig.app.base.json",
"compilerOptions": {
"outDir": "dist",
"rootDir": "./src"
"rootDir": "./src",
"composite": true
},
"include": ["src/**/*.ts", "src/**/*.tsx"],
"exclude": ["**/*.spec.*"]
"exclude": ["**/*.spec.*"],
"extends": "../tsconfig.app.base.json",
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.js"],
"references": [
{ "path": "../core/tsconfig.json" }
]
}
12 changes: 8 additions & 4 deletions packages/huaweicloud/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
{
"extends": "../tsconfig.app.base.json",
"compilerOptions": {
"outDir": "dist",
"rootDir": "./src"
"rootDir": "./src",
"composite": true
},
"include": ["src/**/*.ts", "src/**/*.tsx"],
"exclude": ["**/*.spec.*"]
"exclude": ["**/*.spec.*"],
"extends": "../tsconfig.app.base.json",
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.js"],
"references": [
{ "path": "../core/tsconfig.json" }
]
}
12 changes: 8 additions & 4 deletions packages/kubernetes/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
{
"extends": "../tsconfig.app.base.json",
"compilerOptions": {
"outDir": "dist",
"rootDir": "./src"
"rootDir": "./src",
"composite": true
},
"include": ["src/**/*.ts", "src/**/*.tsx"],
"exclude": ["**/*.spec.*"]
"exclude": ["**/*.spec.*"],
"extends": "../tsconfig.app.base.json",
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.js"],
"references": [
{ "path": "../core/tsconfig.json" }
]
}
12 changes: 8 additions & 4 deletions packages/oracle/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
{
"extends": "../tsconfig.app.base.json",
"compilerOptions": {
"outDir": "dist",
"rootDir": "./src"
"rootDir": "./src",
"composite": true
},
"include": ["src/**/*.ts", "src/**/*.tsx"],
"exclude": ["**/*.spec.*"]
"exclude": ["**/*.spec.*"],
"extends": "../tsconfig.app.base.json",
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.js"],
"references": [
{ "path": "../core/tsconfig.json" }
]
}
6 changes: 3 additions & 3 deletions packages/pluginsdk/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"extends": "../tsconfig.tools.base.json",
"exclude": ["scaffold", "dist"],
"compilerOptions": {
"outDir": "dist",
"rootDir": "src",
"strict": true
}
},
"exclude": ["scaffold", "dist"],
"extends": "../tsconfig.tools.base.json"
}
9 changes: 5 additions & 4 deletions packages/presentation/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"extends": "../tsconfig.tools.base.json",
"exclude": ["dist"],
"compilerOptions": {
"outDir": "dist",
"rootDir": "src",
"strict": true
}
"strict": true,
"composite": true
},
"exclude": ["dist"],
"extends": "../tsconfig.tools.base.json"
}
12 changes: 8 additions & 4 deletions packages/tencentcloud/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
{
"extends": "../tsconfig.app.base.json",
"compilerOptions": {
"outDir": "dist",
"rootDir": "./src"
"rootDir": "./src",
"composite": true
},
"include": ["src/**/*.ts", "src/**/*.tsx"],
"exclude": ["**/*.spec.*"]
"exclude": ["**/*.spec.*"],
"extends": "../tsconfig.app.base.json",
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.js"],
"references": [
{ "path": "../core/tsconfig.json" }
]
}
14 changes: 10 additions & 4 deletions packages/titus/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
{
"extends": "../tsconfig.app.base.json",
"compilerOptions": {
"outDir": "dist",
"rootDir": "./src"
"rootDir": "./src",
"composite": true
},
"include": ["src/**/*.ts", "src/**/*.tsx"],
"exclude": ["**/*.spec.*"]
"exclude": ["**/*.spec.*"],
"extends": "../tsconfig.app.base.json",
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.js"],
"references": [
{ "path": "../amazon/tsconfig.json" },
{ "path": "../core/tsconfig.json" },
{ "path": "../docker/tsconfig.json" }
]
}
Loading

0 comments on commit 4407395

Please sign in to comment.