angular-template-generator

2.1.0 • Public • Published

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.1.00latest

Version History

VersionDownloads (Last 7 Days)Published
2.1.00
2.0.40
2.0.30
2.0.20
2.0.10
2.0.01
1.0.00
0.0.610
0.0.600
0.0.590
0.0.580
0.0.58-np0
0.0.560
0.0.550
0.0.540
0.0.530
0.0.50
0.0.40
0.0.310
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i angular-template-generator

Weekly Downloads

1

Version

2.1.0

License

MIT

Unpacked Size

60.1 kB

Total Files

40

Last publish

Collaborators

  • uittorio