Commit d6f594f
committed
feat(@schematics/angular): generate applications using TypeScript project references
When generating a project (either via `ng new` or `ng generate application`), the
created TypeScript configuration files (`tsconfig.app.json`/`tsconfig.spec.json`)
will be setup as composite projects and added as project references to in the root
`tsconfig.json`. This transforms the root `tsconfig.json` into a "solution" style
configuration. This allows IDEs to more accurately discover and provide type information
for the varying types of files (test, application, etc.) within each project.
The Angular build process is otherwise unaffected by these changes.1 parent 11d1f2e commit d6f594fCopy full SHA for d6f594f
File tree
Expand file treeCollapse file tree
5 files changed
+36
-9
lines changedOpen diff view settings
Filter options
- packages/schematics/angular
- application
- files/common-files
- workspace/files
Expand file treeCollapse file tree
5 files changed
+36
-9
lines changedOpen diff view settings
Collapse file
packages/schematics/angular/application/files/common-files/tsconfig.app.json.template
Copy file name to clipboardExpand all lines: packages/schematics/angular/application/files/common-files/tsconfig.app.json.template+5-4Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
| 6 | + |
6 | 7 | |
7 | 8 | |
8 | 9 | |
9 | | - |
10 | | - |
11 | | - |
12 | 10 | |
13 | | - |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
14 | 15 | |
15 | 16 | |
Collapse file
packages/schematics/angular/application/files/common-files/tsconfig.spec.json.template
Copy file name to clipboardExpand all lines: packages/schematics/angular/application/files/common-files/tsconfig.spec.json.template+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
| 6 | + |
6 | 7 | |
7 | 8 | |
8 | 9 | |
9 | 10 | |
10 | 11 | |
11 | 12 | |
12 | | - |
13 | | - |
| 13 | + |
14 | 14 | |
15 | 15 | |
Collapse file
packages/schematics/angular/application/index.ts
Copy file name to clipboardExpand all lines: packages/schematics/angular/application/index.ts+20Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
26 | 26 | |
27 | 27 | |
28 | 28 | |
| 29 | + |
29 | 30 | |
30 | 31 | |
31 | 32 | |
32 | 33 | |
33 | 34 | |
34 | 35 | |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
35 | 51 | |
36 | 52 | |
37 | 53 | |
38 | 54 | |
39 | 55 | |
40 | 56 | |
41 | 57 | |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
42 | 62 | |
43 | 63 | |
44 | 64 | |
|
Collapse file
packages/schematics/angular/application/index_spec.ts
Copy file name to clipboardExpand all lines: packages/schematics/angular/application/index_spec.ts+7-2Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
93 | 93 | |
94 | 94 | |
95 | 95 | |
96 | | - |
97 | | - |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
98 | 103 | |
99 | 104 | |
100 | 105 | |
|
Collapse file
packages/schematics/angular/workspace/files/tsconfig.json.template
Copy file name to clipboardExpand all lines: packages/schematics/angular/workspace/files/tsconfig.json.template+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
22 | 22 | |
23 | 23 | |
24 | 24 | |
25 | | - |
| 25 | + |
| 26 | + |
26 | 27 | |
0 commit comments