Socket
Socket
Sign inDemoInstall

angular-spec-generator

Package Overview
Dependencies
9
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    angular-spec-generator

generate exist angular file spec by cli.


Version published
Maintainers
1
Install size
175 kB
Created

Changelog

Source

1.1.0

Feature

  • Add configuration with generate types: now we can set --type to configuration which types want to generate.
  • Add configuration with replace switch: now we can set --force to replace exist spec files.
  • Clear spec: now we can set --clear to clear spec files.

Readme

Source

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

FAQs

Last updated on 03 Mar 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc