Skip to content

Add a configuration flag to 'ng-cli' to set the default collection #9084

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Robinyo opened this issue Jan 3, 2018 · 4 comments
Closed

Add a configuration flag to 'ng-cli' to set the default collection #9084

Robinyo opened this issue Jan 3, 2018 · 4 comments

Comments

@Robinyo
Copy link

Robinyo commented Jan 3, 2018

Feature Request

Add a configuration flag tong-cli to set the default collection. For example:

ng set defaults.collection @ionic-angular/schematics --global

Current:

ng new --collection=@ionic-angular/schematics my-app --skip-install

Proposed:

ng new my-app --skip-install

See: Generating and serving an Ionic project

Mention any other details that might be useful (optional)

See:

@clydin
Copy link
Member

clydin commented Jan 3, 2018

There already is one. Give ng set defaults.schematics.collection @ionic-angular/schematics --global a try.

@clydin clydin closed this as completed Jan 3, 2018
@Robinyo
Copy link
Author

Robinyo commented Jan 3, 2018

Awesome, thanks :)

@Robinyo
Copy link
Author

Robinyo commented Jan 3, 2018

@clydin, @hansl

BTW, I still need to work around the Schematics require.resolve issue.

For example:

npm install @ionic-angular/schematics --global
ng set defaults.schematics.collection @ionic-angular/schematics --global
ng new my-app --skip-install
Error: Path "/README.md" does not exist.
Path "/README.md" does not exist.

Work around:

cd /usr/local/lib/node_modules/@angular/cli/node_modules
mkdir @ionic-angular
cp -R /usr/local/lib/node_modules/@ionic-angular/* @ionic-angular/

@angular-automatic-lock-bot
Copy link

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 Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants