Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zouyoushun/angular-spec-generator
Angular spec generator, onec generate all spec file by sample cli.
https://github.com/zouyoushun/angular-spec-generator
angular cli spec
Last synced: about 1 month ago
JSON representation
Angular spec generator, onec generate all spec file by sample cli.
- Host: GitHub
- URL: https://github.com/zouyoushun/angular-spec-generator
- Owner: ZouYouShun
- License: mit
- Created: 2017-12-22T15:24:16.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-03T10:00:05.000Z (over 5 years ago)
- Last Synced: 2024-04-27T04:42:48.418Z (7 months ago)
- Topics: angular, cli, spec
- Language: TypeScript
- Size: 32.2 KB
- Stars: 14
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[![NPM version](https://badge.fury.io/js/angular-spec-generator.svg)](http://badge.fury.io/js/angular-spec-generator)
# 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 ```
|type|alias|
|---|---|
|guard|`g` or `guard`|
|component|`c` or `component`|
|service|`s` or `service`|
|directive|`d` or `directive`|
|pipe|`p` or `pipe`|### Force
It will force replace exist spec files
```--force ```
### Clear
It will clear select spec with type
```--clear```