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-project-generator

v9.1.32

Published

Angular Project Generator

Downloads

23

Readme

Angular Project Generator (apg)

npm-badge-url License

Setup a complete PWA based on angular and material design

###Command line interface (CLI) for angular 9.

Project generator based on angular-cli with best practices. It helps you to generate an robust angular project seed. To get help just type:

apg new --help

The generated app will have a lot of common features like:

  • Based on angular material UI library
  • Predefined pages/routes (Imprint, Login, ...)
  • Responsive layout
  • Basic PWA support
    • It contains manifest file and service worker configuration.
  • Dynamic routes with AuthGuardCanActivate
  • Global data store via facade services (BehaviorSubject, Local Storage support)
  • Usefull helpers like:
    • AutofocusDirective
    • typesafe FormGroup
    • Version Indicator (shows build date)
    • Couterdown & countup component (for session timeout, ...)
  • Gherkin E2E test setup: chai, cucumber, jasmine, karma, protractor and predefined base steps (given, when, then)
  • Integrated jest for better and faster unit testing
  • Theme switcher for light and dark
  • Predefined npm scripts
  • A complete starter template: example app structure tailored for scalability, with examples and boilerplate code for every common thing needed in enterprise projects, such as unit tests, routing & authentication.

Coming soon:

  • Better description of used patterns
  • More Demo pages
  • Generator für common services (REST, Store, ...)
  • Generator for dialog patterns (list & detail dialogs, drill down dialogs, ...)
  • Predefined Deutsche Bahn and Deutsche Bank SCSS according to the company style guides

Prerequisites

Both the CLI and generated project have dependencies that require Node 8.9 or higher, together with NPM 5.5.1 or higher.

Install apg

npm i -g angular-project-generator@latest

Show help

apg --help 
apg new --help
apg generate --help

Updating npm, angular cli

apg update 

Generating app:

apg new -a MyApp -p app -cp ma

# Deutsche Bahn developer:
apg new -a click-n-ride -p app -cp cr -l deutschebahn -f

# Deutsche Bank developer:
apg new -a TradeFinder -p app -cp tf -l deutschebank

The created app shell has a lot of complexity, which is not required for every project. After generating the app:

  • configure the behaviour in environment.ts
  • delete unnecessary routes, modules and mock data

E2E

E2E tests can be written in Gherkin notation.

@homepage
Feature: 001 Login
  The login page allows the users to log in.

  @goto @happy
  Scenario: Home Page
    Given I am on the "anmelden" page
    When I do nothing
    Then I should see the page title "Anmelden"

  @login @happy
  Scenario: The login button should be disabled when I enter the login page
    Given I am on the "anmelden" page
    Then The button "anmelden-login-button" should be disabled

Screenshots

Welcome dialog

Login dialog

Demo page / css classes

Demo page / company colors

License

MIT