0.5.0 • Published 8 years ago

ng2-cli v0.5.0

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

Angular 2 CLI

Build Status

Vorpal & Webpack based CLI for Angular2 applications.

Installation

npm i ng2-cli -g

Usage

Start cli with the ng2 command.

Available Commands

new

Creates new project and steps into directory.

new my-awesome-project

Available options

  • name - name of your project (required)
  • path - path where project will be created
  • skip-npm - skips the npm dependencies installation
  • skip-git - skips git initialization

generate

Generates Angular2 component.

ScaffoldUsage
Componentgenerate component my-new-component
Directivegenerate directive my-new-directive
Pipegenerate pipe my-new-pipe
Servicegenerate service my-new-service
Classgenerate class my-new-class
Interfacegenerate interface my-new-interface

All generated components are automatically imported into main AppModule and injected in declarations.

server

Serves your application.

server

build

Builds your project. You must be in project directory to build your project.

build

clear

Clears the terminal window.

clear

info

Prints the info of the current project.

info

find

Searches for projects in current directory.

find

pwd

Prints current working directory.

pwd

cd

Changes current working directory.

cd /Users/jan/Desktop/app