mirror of
https://github.com/nicolargo/glances.git
synced 2025-12-23 22:18:31 -05:00
Refactored webui* rules
* part of #2906 * output is unchanged. ``` $ git log --oneline -n1 --pretty=short commit f2f97e2f (HEAD -> makefile) Author: Ariel Otilibili <otilibil@eurecom.fr> 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 commit24c87253(HEAD -> develop, origin/develop, origin/HEAD) Merge:42af55b3fa7fc5bdAuthor: Nicolas Hennion <nicolashennion@gmail.com> Merge pull request #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 <otilibil@eurecom.fr>
This commit is contained in:
8
Makefile
8
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user