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

@dynatrace/ngx-groundhog-devkit

v0.1.1

Published

DevKit for the ngx-groundhog

Downloads

5

Readme

Angular Groundhog DevKit

Generating a new component in your ngx-groundhog lib project

You can use the ng generate (or just ng g) command to generate ngx-groundhog components:

ng generate groundhog-component my-new-component --collection @dynatrace/ngx-groundhog-devkit 
ng g ghc my-new-component --collection @dynatrace/ngx-groundhog-devkit # using the alias

You can find all possible blueprints in the table below:

Scaffold | Usage --- | --- Component | ng g groundhog-component my-new-component

Angular Groundhog - component

You can run the groundhog-component schematic with the following command inside the ngx-groundhog project

ng generate groundhog-component my-new-component --collection @dynatrace/ngx-groundhog-devkit 
ng g ghc my-new-component --collection @dynatrace/ngx-groundhog-devkit # using the alias

This will generate the following for you

  1. Add a folder inside src/lib with my-new-component as it's name and add the following files
    1. my-new-component-module.ts containing the NgModule definition with the exports and declarations
    2. my-new-component.ts containing your components definition
    3. my-new-component.html
    4. my-new-component.scss
    5. index.ts with the export for the public-api
    6. public-api.ts with the export for the module and the component
    7. tsconfig-build.json with the correct flatModuleId set
  2. Add a folder inside the src/demo-app with my-new-component as it's name and add the following files
    1. my-new-component-demo.ts containing the Demo component that display your component inside the demo app
    2. my-new-component-demo.html
    3. my-new-component-demo.scss
  3. Adds an export to the public-api.ts in the library root
  4. Adds the necessary declarations for the new component in the demo-groundhog-module.ts file
  5. Adds the demo declarations to routes.ts for the new component
  6. Adds a new navItem to the navItems collection in demo-app.ts to show the new component in the navItems
  7. Adds declarations to the demo-app-module.ts
  8. Adds mappings to the system-config.ts file