hyapp-deploly/Makefile
2026-05-20 16:49:19 +08:00

19 lines
384 B
Makefile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

NPM ?= npm
DEPLOY_API_PORT ?= 29200
export DEPLOY_API_PORT
.PHONY: build up serve
# `build` 生成生产环境 dist等价于 npm run build。
build:
$(NPM) run build
# `up` 一键构建并启动 deploy server同时托管 dist 和 /deploy/api/*。
up: build
$(NPM) run deploy:serve
# `serve` 直接使用已有 dist 启动 deploy server。
serve:
$(NPM) run deploy:serve