2.0.1 • Published 9 years ago
quickstart-cli v2.0.1
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-cliUsage
qs --helpGenerating and serving an Angular2 project
qs --new PROJECT_NAME
cd PROJECT_NAME
npm startNavigate 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 aliasYou 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