Skip to content

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

Notifications You must be signed in to change notification settings

niklas-dahl/global-angular-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

❗ Deprecated.

The angular-cli team decreased the install time drastically and the approch taken here would not work with future versions of the cli.

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: ~50KB

This project addresses the problem described in angular/angular-cli#1263. This is pretty much a proof of concept until the angular-cli team creates a real solution (or adapts this, who knows..).

Usage

npm i -g global-angular-cli

// to create a new angular-cli project
ngg new projectA
cd projectA

// 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 project folder and locally installs the real angular-cli and proxies a ng init to 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 initialize a git repository (use git init) (ng init strangely does not do that..)
  • does not recognize ng new command flags like --sytle=sass (set it by hand in angular-cli.json) (coming soon..)

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published