Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 1.78 KB

File metadata and controls

47 lines (34 loc) · 1.78 KB

AngularJungleGym

This project was generated with Angular CLI version 15.2.4.

  • ng new <workspace-name> --create-application=false

  • ng generate app <project-name>

  • ng serve <project-name>

  • Update Angular (Local) - https://angular.dev/update-guide

    • ng update @angular/core@20 @angular/cli@20
  • Update Angular (Global) - npm install -g @angular/cli@latest

FNM Fast Node Manager

  • Node.js Installs Path - ~\AppData\Local\fnm_multishells
fnm install <version>
fnm list
fnm use <version>
fnm uninstall <version>
  • In ~/.bashrc:
    • eval "$(fnm env --use-on-cd --shell bash)"
  • In Powershell $PROFILE:
    • fnm env --use-on-cd --shell powershell | Out-String | Invoke-Expression
  • fnm | Github

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

  • Run ng serve for a dev server. Navigate to http://localhost:4200/. The app auto reloads on source file changes.
  • Run ng build to build the project. The build artifacts will be stored in the dist/ directory.
  • Run ng test to execute the unit tests via Karma.
  • Run ng e2e to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.

Useful packages

angular-cli-ghpages