1.1.3 • Published 7 years ago

generator-ng2-pro v1.1.3

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

A yeoman generator to scaffold an Angular2 application

Build Status DUB npm npm

Installation

First, install Yeoman and generator-ng2-pro using npm (we assume you have pre-installed node.js ).

  • Installing yarn
npm install -g yarn 
npm install -g yo
npm install -g generator-ng2-pro

Then generate your new project:

yo ng2-pro

steps

  • Run yarn start from a terminal
  • Navigate to http://localhost:8080/ The app will automatically reload if you change any of the source files

Features

img img img img img img img

Scaffold Complete Directory Layout

├── /config/                   
    └── /helpers.js
    └── /karma-test-shim.js
    └── /webpack.common.js
    └── /webpack.dev.js
    └── /webpack.test.js
├── /public/                    
    ├── /css
    ├── /images
├── /src/                       
    ├── /app
         └── /app.component.html
         └── /app.component.scss
         └── /app.component.spec.ts
         └── /app.component.ts
         └── /app.module.ts
    ├── /index.html
    └── main.ts
    └── polyfills.ts
    └── vendor.ts
├── /node_modules/             
├── .gitignore                                    
├── .travis.yml                                     
├── karma.conf.js              
├── Readme.md                
├── package.json                
├── typedoc.json                  
├── tsconfig.json              
├── tslint.json               
└── typings.json                
└── webpack.conf.js 

Usage

That'll generate a project with all the common tools setup. This includes: Filled package.json file

Generating Component, Directives, Pipes and Services

You can use yo ng2-pro command to generate Angular Componenet, Directives, Pipes and Services

Scaffold               Usage
Component              yo ng2-pro:component --name [component-name]
Directive              yo ng2-pro:directive --name [directive-name]
Pipe                   yo ng2-pro:pipe --name [pipe-name]
Service                yo ng2-pro:service --name [service-name]
Interface              yo ng2-pro:interface --name [interface-name]

Testing

yarn test

Tslint

Uses the sass-lint npm module to check ts files. you can use this linter by runing following command

yarn tslint

sass-lint

Uses the sass-lint npm module to check scss and sass files. you can use this linter by runing following command

yarn sass-lint

Getting To Know Yeoman

  • Yeoman has a heart of gold.
  • Yeoman is a person with feelings and opinions, but is very easy to work with.
  • Yeoman can be too opinionated at times but is easily convinced not to be.
  • Feel free to learn more about Yeoman.

License

MIT © Erandi

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago