Title: Specify multiple default collections · Issue #12157 · angular/angular-cli · GitHub
Open Graph Title: Specify multiple default collections · Issue #12157 · angular/angular-cli
X Title: Specify multiple default collections · Issue #12157 · angular/angular-cli
Description: From @jeffbcross on October 31, 2017 22:4 Bug Report or Feature Request (mark with an x) - [ ] bug report -> please search issues before submitting - [x] feature request Area - [] devkit - [x] schematics Desired functionality It'd be nic...
Open Graph Description: From @jeffbcross on October 31, 2017 22:4 Bug Report or Feature Request (mark with an x) - [ ] bug report -> please search issues before submitting - [x] feature request Area - [] devkit - [x] sche...
X Description: From @jeffbcross on October 31, 2017 22:4 Bug Report or Feature Request (mark with an x) - [ ] bug report -> please search issues before submitting - [x] feature request Area - [] devkit - [x] s...
Opengraph URL: https://github.com/angular/angular-cli/issues/12157
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Specify multiple default collections","articleBody":"_From @jeffbcross on October 31, 2017 22:4_\n\n\u003c!--\r\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION YOUR ISSUE MIGHT BE CLOSED WITHOUT INVESTIGATING\r\n-->\r\n### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [ ] bug report -> please search issues before submitting\r\n- [x] feature request\r\n```\r\n\r\n### Area\r\n```\r\n- [] devkit\r\n- [x] schematics\r\n```\r\n\r\n### Desired functionality\r\nIt'd be nice to have multiple collections configured in my CLI project instead of a single default collection. I.e. I'd like to have a project that gives preference to `nrwl/schematics` but will fall back to `angular/schematics` if I try to generate something not provided by `nrwl/schematics`. This would make it easier to publish many focused schematics without requiring the user to specify the collection each time they're generating something new. My naive suggestion is to change the `.angular-cli.json` schema from a single `collection` value to a cascading array of `collections` like so:\r\n\r\n```json\r\n\"defaults\": {\r\n \"collection\": \"nrwl/schematics\"\r\n}\r\n```\r\n\r\n```json\r\n\"defaults\": {\r\n \"collections\": [\r\n \"nrwl/schematics\",\r\n \"angular/schematics\"\r\n ]\r\n}\r\n```\r\n\r\nThen when calling `ng generate`, schematics would use the first collection that provides a matching schematic.\r\n\r\nThis issue seems cross-cutting between CLI and Schematics, so I thought this repository was the most appropriate place to open it, but lmk if I should open it on angular/angular-cli.\r\n\r\n(This may seem similar to #34, but it's more focused on end user experience than schematics author experience).\r\n\n\n_Copied from original issue: angular/devkit#249_","author":{"url":"https://github.com/alexeagle","@type":"Person","name":"alexeagle"},"datePublished":"2018-09-05T00:21:39Z","url":"https://github.com/angular/angular-cli/issues/12157"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d3824349-1ec2-ad01-b54b-709b4bf11730 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D66E:1D8AA1:14CBB69:1B5AB7A:6B011F65 |
| html-safe-nonce | 7631417f499e86900d0e4cb3954bafad57bf0b489f81ea8bb45fe0e2d5803d9f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjZFOjFEOEFBMToxNENCQjY5OjFCNUFCN0E6NkIwMTFGNjUiLCJ2aXNpdG9yX2lkIjoiMjIyMjcyMDM3MDAzNTcyODIyOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ad88db7aa4bc7e4475df878807b20c32129a3a88f85d0c803687394c7a79f7a9 |
| hovercard-subject-tag | issue:357021436 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/12157/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9f229728f85acff1e8b44f2991d06fda986189e75e62b672a1551190b12c83ec/angular/angular-cli/issues/12157 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9f229728f85acff1e8b44f2991d06fda986189e75e62b672a1551190b12c83ec/angular/angular-cli/issues/12157 |
| og:image:alt | From @jeffbcross on October 31, 2017 22:4 Bug Report or Feature Request (mark with an x) - [ ] bug report -> please search issues before submitting - [x] feature request Area - [] devkit - [x] sche... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | alexeagle |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width