Skip to content

WIP:Feat/extends angular cli questionnaire#21627

Closed
fstodulski wants to merge 3 commits intoangular:masterfrom
fstodulski:feat/extends-angular-cli-questionnaire
Closed

WIP:Feat/extends angular cli questionnaire#21627
fstodulski wants to merge 3 commits intoangular:masterfrom
fstodulski:feat/extends-angular-cli-questionnaire

Conversation

@fstodulski
Copy link
Copy Markdown

Extend AngularCLI Questionnaire

Current behaviour:
Currently Angular CLI asks only few questions during creating new application.

  1. Name
  2. Routing
  3. Styles

Rest of configuration has to be done after project is created.

Based on VueCLI I would like to extend CLI questionnaire with some additional options. In my opinion, they would speed up a little generating new Workspace.

Expected behaviour:
ng new triggers Angular CLI schematics.
User has to answer to few more questions before new workspace will be created.

  1. Name (duh)
  2. Would you like to have Inline Styles? (y/N) by default it's False
  3. Would you like to have Inline Template? (y/N) by default is' False - this one is often used for small components. Personal choice
  4. Which Change Detection Strategy would you like to use? OnPush / Default. Currently developer has to manually edit angular.json to include this option for newly created components
  5. Prefix for selectors (app) - by default is 'app', but sometimes we need to change it in case of having multiple projects + library
  6. Would you like to add Angular routing? (y/N) - default one. Nothing has changed.
  7. Which stylesheet format would you like to use? - default one. Nothing has changed.

add changeDetection property for newly created component
updated schema.json with additional x-prompts, forcing user to choose
between given options
Forced user to answer about inline template/styles, changeDetection
strategy
@google-cla google-cla bot added the cla: yes label Aug 23, 2021
@alan-agius4
Copy link
Copy Markdown
Collaborator

Thanks for your contribution. However, at this point in time we'd like to limit the number of prompts to show during ng-new.

In future ideally before taking on a feature, open an issue to discuss this.

Thanks.

@angular-automatic-lock-bot
Copy link
Copy Markdown

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Oct 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants