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

create-infi-angular-create

v0.0.1

Published

The scaffold of angular web application

Downloads

26

Readme

{{capital name space=true}} Web Application

{{description}}

Usage

$ npm init infi-angular-create <your-project-name> # Recommends using lower kebab-case as project name
Need to install the following packages:
  create-infi-angular-create
Ok to proceed? (y) 
? description #<Your description>
? author name #<Your name>
? author email #<Your email address>
? license MIT
? choose your fave os macOS

Creating a new package in ~/workshop/<your-project-name>

Initializing a git repository
> git init
Installing dependencies using npm
> npm install

Successfully created ~/workshop/<your-project-name>

Congratulation! your INFI project has been created.


$ cd #<your-project-name>
$ code . # Launch VSCode

The Directory structure

.
├── dist                          # Build directory
└── src                           # Source directory
    ├── app                       # Application directory
    │   ├──  auth                 # Authentication module
    │   ├──  item                 # An example module of Item CRUD
    │   ├──  main                 # The home page module
    │   ├──  models               # Data models
    │   ├──  services             # The WebAPI calls services
    │   ├──  store                # A global state management
    ├── test                      # The unit test codes.              
    └── types                     # Type declarations
    ...

Dependencies

typescript 4.6.2

angular 13.3.0 & angular/cli 13.3.8


npm install -g @angular/cli@13

ng new {{name}} --minimal --skip-install --skip-git --commit -s false -t false

cd {{name}}

npm install

npm install [email protected] --save

ng-zorro-antd 13.3.2


ng add [email protected]

ngxs 3.7.4


npm install @ngxs/{store,logger-plugin,router-plugin,storage-plugin}@3.7.4 --save

npm install @ngxs/[email protected] --save

npm install @ngxs/[email protected] --save

auth0/angular-jwt 5.0.2

faker-js/faker 7.3.0

Code generating commands

Creating main module


ng g m main -m app --route=main --routing

Creating auth module


ng g m auth -m app

ng g c auth -m auth --change-detection OnPush -t false --skip-tests

Creating services


ng g s services/InMemoryData

ng g s services/auth

Creating item module and compoments


ng g m item -m main --route=main --routing

ng g c item/item-list -m item --change-detection OnPush -t false -s --skip-tests
ng g c item/item-list/item-list-table -m item --change-detection OnPush -t false -s --flat --skip-tests

ng g c item/item-desc -m item --change-detection OnPush -t false -s --skip-tests
ng g c item/item-desc/item-desc-fields -m item --change-detection OnPush -t false -s --flat --skip-tests

ng g c item/item-create -m item --change-detection OnPush -t false -s --skip-tests
ng g c item/item-create/item-create-form -m item --change-detection OnPush -t false -s --flat --skip-tests

ng g c item/item-edit -m item --change-detection OnPush -t false -s --skip-tests
ng g c item/item-edit/item-edit-form -m item --change-detection OnPush -t false -s --flat --skip-tests

ng g c item/item-dup -m item --change-detection OnPush -t false -s --skip-tests
ng g c item/item-dup/item-dup-form -m item --change-detection OnPush -t false -s --flat --skip-tests

ng g r item/item-resolve --skip-tests

Command templates


ng new <project_name> --minimal --skip-install --skip-git --commit -s false -t false --package-manager yarn


ng g m <module_name> -m app --route=<module_route> --routing

ng g c <module_path>/<component_name> -m <module_name> --change-detection OnPush -t false --skip-tests
ng g c <module_path>/<component_folder>/<component_name> -m <module_name> --change-detection OnPush -t false --flat --skip-tests

ng g g path/to/<guard_name> --implements=CanActivate

ng g s path/to/<service_name>

ng g r path/to/<resolver_name> --skip-tests

ng g interceptor path/to/<interceptor_name> --skip-tests

Build


ng build --base-href /{{name}}/

docker build -f docker/Dockerfile . -t {image_registry_url}/{image_name}:{image_tag}

docker push {image_registry_url}/{image_name}:{image_tag}

Serve


ng serve --open

Mock user: [email protected], pass: bar

References