CI: NPM script tweaks (#2700)
This commit is contained in:
parent
ac12c982c4
commit
cb79cce6c8
2
Makefile
2
Makefile
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue