angular-template-generator
generate angular files
Last updated a year ago by uittorio .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install angular-template-generator -g
SYNC missed versions from official npm registry.

angular-template-generator

generate files for an angular application

generate angular files

generate folder with files component, html, scss, stub, spec and interface for an angular application

Usage

Install with npm

npm i angular-template-generator -g

component generator

angular-template-generator type=component filename=nameOfComponent prefix?=nameOfPrefix

this will generate a folder with:

--nameOfComponent.component.ts
--nameOfComponent.component.spec.ts
--nameOfComponent.component.interface.ts
--nameOfComponent.component.stub.ts
--nameOfComponent.component.html
--nameOfComponent.component.scss

with a prefix defined it will add it to the selector and to the css class name (nameOfPrefixNameOfComponent)

directive generator

angular-template-generator type=directive filename=nameOfDirective prefix?=nameOfPrefix

this will generate a folder with

--nameOfDirective.directive.ts
--nameOfDirective.directive.spec.ts
--nameOfDirective.directive.interface.ts
--nameOfDirective.directive.stub.ts

with a prefix defined it will add it to the selector (nameOfPrefixNameOfDirective)

service generator

angular-template-generator type=service filename=nameOfService

this will generate a folder with

--nameOfService.ts
--nameOfService.spec.ts
--nameOfService.stub.ts
--nameOfService.interface.ts

Current Tags

  • 2.1.0                                ...           latest (a year ago)

22 Versions

  • 2.1.0                                ...           a year ago
  • 2.0.4                                ...           a year ago
  • 2.0.3                                ...           2 years ago
  • 2.0.2                                ...           2 years ago
  • 2.0.1                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 0.0.61                                ...           2 years ago
  • 0.0.60                                ...           2 years ago
  • 0.0.59                                ...           2 years ago
  • 0.0.58                                ...           3 years ago
  • 0.0.58-np                                ...           3 years ago
  • 0.0.56                                ...           3 years ago
  • 0.0.55                                ...           3 years ago
  • 0.0.54                                ...           3 years ago
  • 0.0.53                                ...           3 years ago
  • 0.0.5                                ...           3 years ago
  • 0.0.4                                ...           3 years ago
  • 0.0.31                                ...           3 years ago
  • 0.0.3                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 23
Last Day 0
Last Week 23
Last Month 2
Dependencies (4)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |