Skip to content

Commit

Permalink
Merge pull request #2954 from ariel-anieli/makefile
Browse files Browse the repository at this point in the history
Refactored `webui*` rules
  • Loading branch information
nicolargo authored Oct 2, 2024
2 parents 24c8725 + dec419f commit 7ab8a39
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -203,14 +203,16 @@ install: ## Open a Web Browser to the installation procedure
# Follow ./glances/outputs/static/README.md for more information
# ===================================================================

webui webui%: DIR = glances/outputs/static/

webui: ## Build the Web UI
cd glances/outputs/static/ && npm ci && npm run build
cd $(DIR) && npm ci && npm run build

webui-audit: ## Audit the Web UI
cd glances/outputs/static/ && npm audit
cd $(DIR) && npm audit

webui-audit-fix: ## Fix audit the Web UI
cd glances/outputs/static/ && npm audit fix && npm ci && npm run build
cd $(DIR) && npm audit fix && npm ci && npm run build

# ===================================================================
# Packaging
Expand Down

0 comments on commit 7ab8a39

Please sign in to comment.