User Tools

Site Tools


dev:angular_dev_best_practices

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
dev:angular_dev_best_practices [2024/09/14 11:14] – Add more details about ng lint sandbergjadev:angular_dev_best_practices [2024/09/15 13:03] (current) – [Running ng lint] add info about prerequisites sandbergja
Line 42: Line 42:
  
 You should run ng lint early and often in the development process, as it can help you avoid certain bugs.  Definitely run it before submitting your code for community review, or before committing any Angular code to the Evergreen repository. You should run ng lint early and often in the development process, as it can help you avoid certain bugs.  Definitely run it before submitting your code for community review, or before committing any Angular code to the Evergreen repository.
 +
 +== Preparing to run ng lint ==
 +
 +Ng lint does not require a running Evergreen system.  You just need to install a few dependencies before running it for the first time.
 +
 +  - [[newdevs:git:install|Install git and clone the Evergreen git repository]]
 +  - [[https://nodejs.org/en/download/package-manager|Install NodeJS using one of the options on their download page]].
 +  - In a new terminal, cmd, or powershell window, use the cd command to navigate to the Open-ILS/src/eg2 directory within the Evergreen git repository
 +  - Run the command ''npm install''
 +  - Optionally, install the Angular cli globally with ''npm install -g @angular/cli@^15'' (replace 15 with the version of Angular that Evergreen currently uses, which you can find in the file Open-ILS/src/extras/install/Makefile.common).
 +
 +
 +== Running the ng lint command ==
 +
  
   * If you have the Angular cli installed, you can run the following command from the eg2 directory: ''ng lint''   * If you have the Angular cli installed, you can run the following command from the eg2 directory: ''ng lint''
dev/angular_dev_best_practices.txt · Last modified: 2024/09/15 13:03 by sandbergja

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

© 2008-2022 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a U.S. 501(c)3 non-profit organization.