Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/peaceiris/hugo-theme-iris.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeaceiris <30958501+peaceiris@users.noreply.github.com>2022-04-24 04:11:16 +0300
committerpeaceiris <30958501+peaceiris@users.noreply.github.com>2022-04-24 04:11:16 +0300
commitf4a242a81f76ea3425f76bf0b0803ba7d3408c58 (patch)
treec4e5f80d9b951c90f23d63541cc5a89b71d84475
parent50048b8cf401b15f51ac4980f7b7e408c76f3143 (diff)
Revert "chore: remove npm-ci task"
This reverts commit 50048b8cf401b15f51ac4980f7b7e408c76f3143.
-rw-r--r--Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 1a4617d1..750207b9 100644
--- a/Makefile
+++ b/Makefile
@@ -35,19 +35,24 @@ docker-test: docker-npm-ci
export HUGO_VERSION=$(shell make get-hugo-version) && \
$(DOCKER_COMPOSE) run --rm --entrypoint=hugo hugo $(opt)
+.PHONY: npm-ci
+npm-ci: fetch-fonts
+ cd ./exampleSite && \
+ npm ci
+
.PHONY: dev
-dev: fetch-fonts
+dev: npm-ci
cd ./exampleSite && \
hugo server --renderStaticToDisk --navigateToChanged --buildDrafts
.PHONY: test
-test: fetch-fonts
+test: npm-ci
cd ./exampleSite && \
hugo --minify --renderToMemory --printPathWarnings --debug \
--templateMetrics --templateMetricsHints
.PHONY: build-staging
-build-staging: fetch-fonts
+build-staging: npm-ci
cd ./exampleSite && \
hugo --minify --cleanDestinationDir \
--environment "staging" \
@@ -55,7 +60,7 @@ build-staging: fetch-fonts
--templateMetrics --templateMetricsHints
.PHONY: build-prod
-build-prod: fetch-fonts
+build-prod: npm-ci
cd ./exampleSite && \
hugo --minify --cleanDestinationDir --printPathWarnings && \
wget -O ./public/report.html ${BASE_URL}/report.html || true