1.4.0 • Published 8 years ago

global-angular-cli v1.4.0

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

Global angular-cli

npm Build Status

A small helper to avoid installing the awesome but huge angular-cli globally.

angular-cli: ~210MB global-angular-cli: ~146KB

This project addresses the problem described in https://github.com/angular/angular-cli/issues/1263. This is pretty much a proof of concept until the angular-cli team creates a real solution.

Usage

npm i -g global-angular-cli

// to create a new angular-cli project
ngg new projectA
cd projectA
npm i // or yarn

// use every other command like normal
ngg serve
ngg generate component myComp --no-spec
ngg build -prod

What it does

  • ngg new testProj creates the testProj dir and copies a fresh angular-cli project in it
  • ngg <command> <args> proxies the command and args to the locally installed angular-cli (the global version of the real angular-cli does the same)

What it does not

  • does not install your dependencies (so your are free to use yarn)
  • does not initialize a git repository (git init)
  • does not recognize ng new command flags like --sytle=sass (set it by hand in angular-cli.json)
  • does not insert your project name in the following places, so you have to do this by hand
    • angular-cli.json: "name": "project-name"
    • package.json: "name": "project-name"
    • README.md: # project-name
    • e2e/app.po.ts: export class ProjectNamePage
    • e2e/e2e-spec.ts: import, describe
    • src/index.html: <title>project-name</title>
    • src/app/app.component.spec.ts: describe('App: project-name', () => { ..
1.4.0

8 years ago

1.3.0

8 years ago

1.2.2

8 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago