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

@tech4good/angular-schematics

v18.0.4

Published

A set of schematics for generating modules, containers, components, and entities

Downloads

81

Readme

Angular Schematics

This repository is used to generate modules, containers, components, and entities for Angular projects.

Usage

  1. Run npm install @tech4good/angular-schematics.
  2. Set the schematics to be the default using: ng config cli.defaultCollection @tech4good/angular-schematics
  3. Change directories to the directory you want to generate the files and run ng generate <schematic> <name>, where schematic = module, container, component, or entity (or if you did not make it the default, use ng generate @tech4good/angular-schematics:<schematic> <name>)

Setting up a new repository

  1. Create a new Angular repo using the CLI,
  2. Use ng generate init to add our base files to the new repo,
  3. Then add database configuration parameters:
  • Update the environments files with your firebase configs
  • Update .firebaserc with the firebase projects you're deploying to

Developing

  1. Clone this repository.
  2. Run npm install -g @angular-devkit/schematics-cli to install globally
  3. Run npm install, npm run build & npm link
  4. Run npm link @tech4good/angular-schematics in the Angular project directory
  5. Run ng generate @tech4good/angular-schematics:<schematic> to generate files (schematic = module, container, component, or entity)
  6. To test/debug new changes, run npm run build again before ng generate ...

Testing

To test, install the repo directly from github into another local repo to test your schematic.

npm install  https://github.com/tech4good-lab/angular-schematics.git#your-branch-name
npm link @tech4good/angular-schematics
ng generate @tech4good/angular-schematics:<schematic>

Unit Testing

npm run test will run the unit tests, using Jasmine as a runner and test framework.

Publishing

To publish, simply do:

npm run build
npm publish # will ask for a OTP (see Google Authenticator: npm)

That's it!

You can also use npm version <version> to update the version before publishing.

  • Don't forget to also update src/init/files/package.json.template so that the latest version of @tech4good/anguar-schematics is being used in the dependencies.