-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Commit fdb9d8d
feat(@angular/cli): add fallback support for packages without direct
When a user tries to `ng add` a package that doesn't provide its own `ng-add` schematic, the command will now check for a built-in schematic to use as a fallback.
This improves the user experience for popular packages that do not have native Angular CLI support. The first package supported is `tailwindcss`.ng add
functionality1 parent 4c551e9 commit fdb9d8d
File tree
2 files changed
+47
-2
lines changed- packages/angular/cli/src/commands/add
- tests/legacy-cli/e2e/tests/commands/add
2 files changed
+47
-2
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
78 | + | ||
79 | + | ||
80 | + | ||
81 | + | ||
82 | + | ||
83 | + | ||
84 | + | ||
85 | + | ||
86 | + | ||
87 | + | ||
88 | + | ||
78 | 89 |
| |
79 | 90 |
| |
80 | 91 |
| |
| |||
229 | 240 |
| |
230 | 241 |
| |
231 | 242 |
| |
243 | + | ||
244 | + | ||
245 | + | ||
246 | + | ||
247 | + | ||
248 | + | ||
249 | + | ||
250 | + | ||
251 | + | ||
252 | + | ||
253 | + | ||
254 | + | ||
255 | + | ||
256 | + | ||
257 | + | ||
258 | + | ||
259 | + | ||
260 | + | ||
261 | + | ||
232 | 262 |
| |
233 | 263 |
| |
234 | 264 |
| |
| |||
561 | 591 |
| |
562 | 592 |
| |
563 | 593 |
| |
564 | - | ||
594 | + | ||
565 | 595 |
| |
566 | 596 |
| |
567 | 597 |
| |
| |||
572 | 602 |
| |
573 | 603 |
| |
574 | 604 |
| |
605 | + | ||
575 | 606 |
| |
576 | 607 |
| |
577 | 608 |
| |
578 | 609 |
| |
579 | 610 |
| |
580 | - | ||
611 | + | ||
581 | 612 |
| |
582 | 613 |
| |
583 | 614 |
| |
|
Lines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + |
0 commit comments