-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Commit 6713cd1
refactor(@schematics/angular): use new dependency management utilities
Refactors several schematics (`application`, `library`, `service-worker`, and two migrations) to use the new, centralized dependency management utilities (`addDependency`, `removeDependency`, `getDependency`).
This change migrates away from the older, class-based `dependencies.ts` helper and consolidates all dependency logic on the more robust, functional `dependency.ts` utility. This improves consistency and leverages the enhanced features of the new utilities, such as automatic and configurable installation task management.1 parent ff71111 commit 6713cd1
File tree
5 files changed
+83
-97
lines changed- packages/schematics/angular
- application
- library
- migrations
- replace-provide-server-rendering-import
- use-application-builder
- service-worker
5 files changed
+83
-97
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 | - | ||
28 | + | ||
29 | + | ||
30 | + | ||
31 | + | ||
32 | + | ||
33 | + | ||
29 | 34 |
| |
30 | 35 |
| |
31 | 36 |
| |
| |||
130 | 135 |
| |
131 | 136 |
| |
132 | 137 |
| |
133 | - | ||
134 | - | ||
135 | - | ||
136 | - | ||
137 | - | ||
138 | - | ||
139 | - | ||
140 | - | ||
141 | - | ||
142 | - | ||
143 | - | ||
144 | - | ||
145 | - | ||
146 | - | ||
147 | - | ||
148 | - | ||
149 | - | ||
150 | - | ||
151 | - | ||
152 | - | ||
153 | - | ||
154 | - | ||
155 | - | ||
156 | - | ||
157 | - | ||
158 | - | ||
159 | - | ||
138 | + | ||
139 | + | ||
140 | + | ||
141 | + | ||
142 | + | ||
143 | + | ||
144 | + | ||
145 | + | ||
146 | + | ||
147 | + | ||
148 | + | ||
149 | + | ||
150 | + | ||
151 | + | ||
152 | + | ||
153 | + | ||
154 | + | ||
155 | + | ||
160 | 156 |
| |
161 | - | ||
162 | - | ||
163 | - | ||
164 | - | ||
165 | - | ||
166 | - | ||
167 | - | ||
157 | + | ||
158 | + | ||
159 | + | ||
160 | + | ||
161 | + | ||
162 | + | ||
163 | + | ||
164 | + | ||
165 | + | ||
168 | 166 |
| |
169 | - | ||
170 | - | ||
171 | - | ||
167 | + | ||
168 | + | ||
169 | + | ||
170 | + | ||
171 | + | ||
172 | + | ||
173 | + | ||
174 | + | ||
175 | + | ||
172 | 176 |
| |
173 | - | ||
174 | - | ||
177 | + | ||
175 | 178 |
| |
176 | 179 |
| |
177 | 180 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 | - | ||
27 | - | ||
28 | - | ||
29 | - | ||
26 | + | ||
27 | + | ||
28 | + | ||
29 | + | ||
30 | + | ||
30 | 31 |
| |
31 | 32 |
| |
32 | 33 |
| |
| |||
62 | 63 |
| |
63 | 64 |
| |
64 | 65 |
| |
65 | - | ||
66 | - | ||
67 | - | ||
68 | - | ||
69 | - | ||
70 | - | ||
71 | - | ||
72 | - | ||
73 | - | ||
74 | - | ||
75 | - | ||
76 | - | ||
77 | - | ||
78 | - | ||
79 | - | ||
80 | - | ||
81 | - | ||
82 | - | ||
83 | - | ||
84 | - | ||
85 | - | ||
86 | - | ||
87 | - | ||
88 | - | ||
89 | - | ||
90 | - | ||
91 | - | ||
92 | - | ||
93 | - | ||
94 | - | ||
95 | - | ||
96 | - | ||
66 | + | ||
67 | + | ||
68 | + | ||
69 | + | ||
70 | + | ||
71 | + | ||
72 | + | ||
73 | + | ||
74 | + | ||
75 | + | ||
76 | + | ||
77 | + | ||
78 | + | ||
79 | + | ||
80 | + | ||
81 | + | ||
82 | + | ||
83 | + | ||
84 | + | ||
85 | + | ||
86 | + | ||
87 | + | ||
88 | + | ||
97 | 89 |
| |
98 | 90 |
| |
99 | 91 |
| |
| |||
177 | 169 |
| |
178 | 170 |
| |
179 | 171 |
| |
180 | - | ||
172 | + | ||
181 | 173 |
| |
182 | 174 |
| |
183 | 175 |
| |
|
Lines changed: 7 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 | - | ||
11 | - | ||
10 | + | ||
11 | + | ||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
42 | - | ||
42 | + | ||
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
| |||
100 | 100 |
| |
101 | 101 |
| |
102 | 102 |
| |
103 | - | ||
104 | - | ||
105 | - | ||
106 | - | ||
107 | - | ||
108 | - | ||
109 | - | ||
110 | - | ||
111 | - | ||
103 | + | ||
104 | + | ||
112 | 105 |
| |
113 | 106 |
| |
114 | 107 |
| |
108 | + | ||
109 | + | ||
115 | 110 |
| |
116 | 111 |
|
Lines changed: 2 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 | - | ||
19 | 18 |
| |
20 | 19 |
| |
21 | 20 |
| |
22 | - | ||
23 | 21 |
| |
22 | + | ||
24 | 23 |
| |
25 | 24 |
| |
26 | 25 |
| |
| |||
270 | 269 |
| |
271 | 270 |
| |
272 | 271 |
| |
273 | - | ||
274 | - | ||
275 | - | ||
276 | 272 |
| |
277 | 273 |
| |
274 | + | ||
278 | 275 |
| |
279 | - | ||
280 | 276 |
| |
281 | 277 |
| |
282 | 278 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 | - | ||
26 | + | ||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
| |||
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
37 | - | ||
37 | + | ||
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
|
0 commit comments