1.1.0 • Published 5 years ago

angular-spec-generator v1.1.0

Weekly downloads
554
License
MIT
Repository
github
Last release
5 years ago

NPM version

angular-spec-generator

Angular spec generator, onec generate all spec file by sample cli.

Description

Create All spec file by cli.

Install

npm install -g angular-spec-generator

Usage

angular-spec-generator 'C:\Users\Alan\Desktop\test'

choice directory which you want to generate spec, and then it will generate all Angular spec.

only generate file when spec file not exit, and the component / directive / guard / pipe / service follow the angular-cli file generate name.

Configuration

You can set type to configuration which types you want to generate.

Type

--type=guard,component,service

typealias
guardg or guard
componentc or component
services or service
directived or directive
pipep or pipe

Force

It will force replace exist spec files

--force

Clear

It will clear select spec with type

--clear