CI: NPM script tweaks (#2700)

This commit is contained in:
Patrice Chalin 2023-05-11 13:28:11 -04:00 committed by GitHub
parent ac12c982c4
commit cb79cce6c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,7 @@ endif
refcache-save: $(LINK_CACHE_FILE_SRC_DIR)/$(LINK_CACHE_FILE)
ifeq (refcache, $(REFCACHE))
cp $(LINK_CACHE_FILE_SRC_DIR)/$(LINK_CACHE_FILE) $(LINK_CACHE_FILE_DEST_DIR)/
npm run format $(LINK_CACHE_FILE_DEST_DIR)/$(LINK_CACHE_FILE)
npm run _prettier:any -- --write $(LINK_CACHE_FILE_DEST_DIR)/$(LINK_CACHE_FILE)
else
@echo "SKIPPING refcache-save"
endif

View File

@ -18,6 +18,7 @@
"_get:submodule": "set -x && git submodule update --init ${DEPTH:- --depth 1}",
"_prebuild": "run-s get:submodule cp:spec",
"_prepare:docsy": "cd themes/docsy && npm install",
"_prettier:any": "npx prettier --ignore-path ''",
"_serve:hugo": "hugo serve -DFE --minify",
"_serve:netlify": "netlify dev -c \"npm run _serve:hugo\"",
"all": "npm-run-all",