Skip to content

Commit

Permalink
feat: Make CLI available without install
Browse files Browse the repository at this point in the history
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 #3126
  • Loading branch information
Meligy authored and filipesilva committed Dec 8, 2016
1 parent a1ccf23 commit 761e86f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/angular-cli/blueprints/ng2/files/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"license": "MIT",
"angular-cli": {},
"scripts": {
"ng": "ng",
"start": "ng serve",
"lint": "tslint \"<%= sourceDir %>/**/*.ts\"",
"test": "ng test",
Expand Down

0 comments on commit 761e86f

Please sign in to comment.