angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

feature request(ng new): generate new project base on scaffolding.json and have a tool to generate the scaffolding.json

Open rxjs-space opened this issue 9 years ago • 2 comments

Before running ng new, we can do something like ng scaffolding, it will ask a bunch of questions and generate a scaffolding.json based on user answers, then ng new will generate codes based on the scaffolding.json file.
For example, the scaffolding.json could look like this:

{
  "projectOptions": {
    "nameParam": "bootstrap"
  },
  "rootModule": {
    "name": "__nameParam__",
    "options": {
      "routing": true
    },
    "children": [
      {
        "type": "component",
        "name": "__nameParam__-home",
        "options": {
          "flat": false
        }
      },
      {
        "type": "module",
        "name": "__nameParam__-accordion",
        "options": {...},
        "children": [...]
      }
    ]
  }
}

Then we have something similar like running these commands as:

ng new bootstrap
cd bootstrap
ng g c bootstrap-home --flat=false
ng g m bootstrap-accordion

rxjs-space avatar Dec 29 '16 09:12 rxjs-space

Thanks for the feature request, but we won't follow with this.

Closing because we already have a story for custom blueprints.

hansl avatar Dec 30 '16 01:12 hansl

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.