1.7.0 • Published 2 years ago

angular-spec-creator v1.7.0

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

NPM version

Angular Spec Creator

Description

Creates spec files for all angular entities. Such as components, services, directives, interceptors, guards, pipes, and resolvers.

Install

Global install (Recommended)

You can install angular-spec-creator globally by npm i -g angular-spec-creator command and use it inside any project.

Local install

You can install angular-spec-creator locally by running npm i angular-spec-creator in your project's root path. But then you will, can use angular-spec-generator only inside this project.

How to use

From needed directory (Recommended)

You can open a directory with entities of angular for which you would like to create the spec file in a terminal and run angular-spec-creator ./ command. Then you will see a notification about the successful creation of files with their names in the terminal.

First example. You have such structure:

  • some-feature
    • components
      • some-component(without spec file)
    • services
      • some-service(without spec file)

If you open in a terminal such path root/.../some-feature/ and run angular-spec-creator ./, then you get two spec files. First for component and second for service. If you open in a terminal such path root/.../some-feature/some-component/ and run angular-spec-creator ./, then you get only one spec file for component.

Second example. You have such structure:

  • some-feature
    • components
      • some-component(without spec file)
    • services
      • some-service(with spec file)

If you open in a terminal such path root/.../some-feature/ and run angular-spec-creator ./, then you get only one spec file for component, because service already have spec file. If you open in a terminal such path root/.../some-feature/some-service/ and run angular-spec-creator ./, then you won't get any new spec files, because service already have spec file.

From any place with an indication of the exact path in the command

You can open a terminal in any path and indicate in command the exact path angular-spec-creator ./some-folder/

For example, you have such structure:

  • features
    • some-feature
      • components
        • some-component(without spec file)
      • services
        • some-service(without spec file)

If you open in a terminal such path root/.../features/ and run angular-spec-creator ./some-feature, then you get two spec files. First for component and second for service. If you open in a terminal such path root/.../features/ and run angular-spec-creator ./some-feature/components, then you get only one spec file for component.

1.7.0

2 years ago

1.6.0

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago