pulumi-hugo-cn/Makefile

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

76 lines
1.4 KiB
Makefile
Raw Permalink Normal View History

2022-05-03 21:23:32 -07:00
default: ensure build serve
2021-04-06 07:36:14 -07:00
.PHONY: clean
clean:
./scripts/clean.sh
.PHONY: ensure
ensure:
2021-04-06 07:36:14 -07:00
./scripts/ensure.sh
.PHONY: lint
lint:
./scripts/lint.sh
.PHONY: format
format:
yarn prettier --write .
2021-04-06 07:36:14 -07:00
.PHONY: build
build:
./scripts/build.sh
.PHONY: ci-build-full-site
ci-build-full-site:
./scripts/ci/build-full-site.sh
2021-04-06 07:36:14 -07:00
.PHONY: serve
serve:
./scripts/serve.sh
.PHONY: serve-assets
serve-assets:
yarn --cwd ./themes/default/theme run start
.PHONY: serve-all
serve-all:
./node_modules/.bin/concurrently --kill-others -r "./scripts/serve.sh" "yarn --cwd ./themes/default/theme run start"
.PHONY: build-assets
build-assets:
yarn --cwd ./themes/default/theme run build
.PHONY: ci-await
ci-await:
node ./scripts/ci/await-in-progress.js
2021-04-06 07:36:14 -07:00
.PHONY: ci-pull-request
ci-pull-request: ensure lint
2021-04-06 07:36:14 -07:00
./scripts/ci/pull-request.sh
.PHONY: ci-pull-request-closed
ci-pull-request-closed:
./scripts/ci/pull-request-closed.sh
.PHONY: ci-scheduled
ci-scheduled:
./scripts/ci/scheduled.sh
.PHONY: new-blog-post
new-blog-post:
2022-02-02 13:11:53 -08:00
hugo new --kind blog-post --contentDir themes/default/content \
"blog/$(shell bash -c 'read -p "Slug (e.g., 'my-new-post'): " slug; echo $$slug')"
2021-07-09 08:16:55 -07:00
.PHONY: new-learn-module
new-learn-module:
./scripts/content/new-learn-module.sh
.PHONY: new-learn-topic
new-learn-topic:
./scripts/content/new-learn-topic.sh
2022-09-19 11:07:39 -07:00
.PHONY: new-template
new-template:
./scripts/content/new-template.sh