-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Commit 05d567b
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 87ee258 commit 05d567b
File tree
2 files changed
+54
-2
lines changed- packages/angular/cli/src/commands/add
- tests/legacy-cli/e2e/tests/commands/add
2 files changed
+54
-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 |
| |
| |||
234 | 245 |
| |
235 | 246 |
| |
236 | 247 |
| |
248 | + | ||
249 | + | ||
250 | + | ||
251 | + | ||
252 | + | ||
253 | + | ||
254 | + | ||
255 | + | ||
256 | + | ||
257 | + | ||
258 | + | ||
259 | + | ||
260 | + | ||
261 | + | ||
262 | + | ||
263 | + | ||
264 | + | ||
265 | + | ||
266 | + | ||
237 | 267 |
| |
238 | 268 |
| |
239 | 269 |
| |
| |||
566 | 596 |
| |
567 | 597 |
| |
568 | 598 |
| |
569 | - | ||
599 | + | ||
570 | 600 |
| |
571 | 601 |
| |
572 | 602 |
| |
| |||
577 | 607 |
| |
578 | 608 |
| |
579 | 609 |
| |
610 | + | ||
580 | 611 |
| |
581 | 612 |
| |
582 | 613 |
| |
583 | 614 |
| |
584 | 615 |
| |
585 | - | ||
616 | + | ||
586 | 617 |
| |
587 | 618 |
| |
588 | 619 |
| |
|
Lines changed: 21 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 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
20 | + | ||
21 | + |
0 commit comments