quickstart-cli

2.0.1 • Public • Published

quickstart-cli

A command line tool for creating initial files to quickstart Angular2 projects.

Based on Angular2 Quickstart tutorial: https://angular.io/docs/ts/latest/quickstart.html

Prerequisites

The generated project has dependencies that require Node 4.x.x and NPM 3.x.x.

Installation

BEFORE YOU INSTALL: please read the prerequisites

npm install -g quickstart-cli

Usage

qs --help

Generating and serving an Angular2 project

qs --new PROJECT_NAME
cd PROJECT_NAME
npm start

Navigate to http://localhost:3000/. The app will automatically reload if you change any of the source files.

Generating Components, Directives, Pipes and Services

You can use the qs --generate (or just qs -g) command to generate Angular components:

qs --generate component my-new-component
qs -g component my-new-component # using the alias

You can find all possible blueprints in the table below:

Scaffold Usage
Component qs -g component my-new-component
Directive qs -g directive my-new-directive
Pipe qs -g pipe my-new-pipe
Service qs -g service my-new-service

After generating features, it is automatically declared/ inserted on your app/app/module.ts.

@TODO

@ngModules and @Routes

Readme

Keywords

none

Package Sidebar

Install

npm i quickstart-cli

Weekly Downloads

2

Version

2.0.1

License

ISC

Last publish

Collaborators

  • shiftescape