-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·38 lines (27 loc) · 1.1 KB
/
Makefile
File metadata and controls
executable file
·38 lines (27 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
.PHONY: test build
default: help
install:
npm install
install-cn:
npm install --registry=http://registry.npm.taobao.org
build:
npm run build
http:
npm run http
new:
node build/bin/new.js $(filter-out $@,$(MAKECMDGOALS))
del:
node build/bin/delete.js $(filter-out $@,$(MAKECMDGOALS))
dev:
npm run dev
# clean:
# rm ./dist/*.js
help:
@echo " \033[35mmake\033[0m \033[1m命令使用说明\033[0m"
@echo " \033[35mmake install\033[0m\t\033[0m\t\033[0m\t\033[0m\t--- 安装依赖"
@echo " \033[35mmake install-cn\033[0m\t\033[0m\t\033[0m\t--- 安装淘宝镜像"
@echo " \033[35mmake build\033[0m\t\033[0m\t\033[0m\t\033[0m\t--- 脚本打包"
@echo " \033[35mmake new <overwrite-name> [中文名]\033[0m\t--- 创建新重写方法 生成对应文件 例如 'make new test 重写test()'"
@echo " \033[35mmake del <overwrite-name> \033[0m\t\033[0m\t--- 删除重写方法 删除对应文件 例如 'make del test'"
@echo " \033[35mmake dev\033[0m\t\033[0m\t\033[0m\t\033[0m\t--- 开发模式"
@echo " \033[35mmake http\033[0m\t\033[0m\t\033[0m\t\033[0m\t--- 静态服务模式"