npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

angular-spec-creator

v1.7.0

Published

Create angular spec files based on file tree and directory

Downloads

19

Readme

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.