Skip to content

Commit dec419f

Browse files
committed
Refactored webui* rules
* part of nicolargo#2906 * output is unchanged. ``` $ git log --oneline -n1 --pretty=short commit f2f97e2f (HEAD -> makefile) Author: Ariel Otilibili <[email protected]> Refactored `webui*` rules $ make webui -n >> /tmp/makefile; echo $? 0 $ make webui-audit -n >> /tmp/makefile; echo $? 0 $ make webui-audit-fix -n >> /tmp/makefile; echo $? 0 $ git switch develop Switched to branch 'develop' Your branch is up to date with 'origin/develop'. $ git log --oneline -n1 --pretty=short commit 24c8725 (HEAD -> develop, origin/develop, origin/HEAD) Merge: 42af55b fa7fc5b Author: Nicolas Hennion <[email protected]> Merge pull request nicolargo#2941 from ariel-anieli/refactor-alert $ make webui -n >> /tmp/develop; echo $? 0 $ make webui-audit -n >> /tmp/develop; echo $? 0 $ make webui-audit-fix -n >> /tmp/develop; echo $? 0 $ diff /tmp/develop /tmp/makefile; echo $? 0 ``` Signed-off-by: Ariel Otilibili <[email protected]>
1 parent 24c8725 commit dec419f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Makefile

+5-3
Original file line numberDiff line numberDiff line change
@@ -203,14 +203,16 @@ install: ## Open a Web Browser to the installation procedure
203203
# Follow ./glances/outputs/static/README.md for more information
204204
# ===================================================================
205205

206+
webui webui%: DIR = glances/outputs/static/
207+
206208
webui: ## Build the Web UI
207-
cd glances/outputs/static/ && npm ci && npm run build
209+
cd $(DIR) && npm ci && npm run build
208210

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

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

215217
# ===================================================================
216218
# Packaging

0 commit comments

Comments
 (0)