ng2-cli
v0.5.0
Published
angular-cli alternative made with vorpal
Readme
Angular 2 CLI
Vorpal & Webpack based CLI for Angular2 applications.
Installation
npm i ng2-cli -gUsage
Start cli with the ng2 command.
Available Commands
new
Creates new project and steps into directory.
new my-awesome-projectAvailable options
name- name of your project (required)path- path where project will be createdskip-npm- skips the npm dependencies installationskip-git- skips git initialization
generate
Generates Angular2 component.
Scaffold | Usage
--- | ---
Component | generate component my-new-component
Directive | generate directive my-new-directive
Pipe | generate pipe my-new-pipe
Service | generate service my-new-service
Class | generate class my-new-class
Interface | generate interface my-new-interface
All generated components are automatically imported into main AppModule and injected in declarations.
server
Serves your application.
serverbuild
Builds your project. You must be in project directory to build your project.
buildclear
Clears the terminal window.
clearinfo
Prints the info of the current project.
infofind
Searches for projects in current directory.
findpwd
Prints current working directory.
pwdcd
Changes current working directory.
cd /Users/jan/Desktop/app