GeezerVison is showing github.com — Use Solution Style tsconfig.json Files · Issue #17758 · angular/angular-cli
Use Solution Style tsconfig.json Files #17758Description
🚀 Feature request
Command (mark with an x)
- new
- build
- serve
- test
- e2e
- generate
- add
- update
- lint
- xi18n
- run
- config
- help
- version
- doc
Description
Current, we can use describe, it, test, expect in app. Because we use "types": ["jasmine","node"] in tsconfig.json. And this is for tsconfig.spec.json, not for tsconfig.app.json.
In order to get a better IDE experience, we can use “Solution Style” tsconfig.json Files in TypeScript 3.9
// tsconfig.json
{
"files": [],
"references": [
{ "path": "./tsconfig.app.json" },
{ "path": "./tsconfig.spec.json" },
]
}
{
// tsconfig.app.json
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"module": "es2020",
"moduleResolution": "node",
"importHelpers": true,
"target": "es2015",
"lib": [
"es2018",
"dom"
],
"types": []
},
"files": [
"src/main.ts",
"src/polyfills.ts"
],
"include": [
"src/**/*.d.ts"
]
}
{
//tsconfig.spec.json
"extends": "./tsconfig.app.json",
"compilerOptions": {
"outDir": "./out-tsc/spec",
"types": [
"jasmine",
"node"
]
},
"files": [
"src/test.ts",
"src/polyfills.ts"
],
"include": [
"src/**/*.spec.ts",
"src/**/*.d.ts"
]
} Activityalan-agius4 commented on May 19, 2020 Hi @xiaoxiangmoe,
Kindly search for open issues and PRs, before opening a new one.
There is already a PR for this #17586 and is very close to get landed.
Thanks. Reacted by ZHAO Jin-Xiang angular-automatic-lock-bot commented on Jun 19, 2020 This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|