-
Notifications
You must be signed in to change notification settings - Fork 12k
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
feat(ng new): Make CLI available without install #3126
Conversation
this small change will allow consumers of the CLI to have their projects shared with anyone, even if they don't have the CLI installed. They just clone, and run `npm install`, and then they can all interesting stuff they want directly from the CLI by using `npm run ng -- ` instead of `ng`. It also helps people who may have multiple projects created by the CLI not all upgraded to the latest version, matching their global install.
I use it this way in several projects on Mac and Windows and been doing so for months (it's the first change I make after Note that this is how |
I'm okay with this, although this will break in the future when we actually remove the CLI from dependencies of projects. @filipesilva @Brocco do either of you have a problem with this change? |
I am ok with it. |
This small change will allow consumers of the CLI to have their projects shared with anyone, even if they don't have the CLI installed. They just clone, and run `npm install`, and then they can all interesting stuff they want directly from the CLI by using `npm run ng -- ` instead of `ng`. It also helps people who may have multiple projects created by the CLI not all upgraded to the latest version, matching their global install. Close angular#3126
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This small change will allow consumers of the CLI to have their projects shared with anyone, even if they don't have the CLI installed.
They just clone, and run
npm install
, and then they can all interesting stuff they want directly from the CLI by usingnpm run ng --
instead ofng
.It also helps people who may have multiple projects created by the CLI not all upgraded to the latest version, matching their global install.