-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
40 lines (30 loc) · 1.14 KB
/
Makefile
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
39
40
.PHONY: dist test
default: help
install:
npm install
install-cn:
npm install --registry=http://registry.npm.taobao.org
new:
node build/bin/new.js $(filter-out $@,$(MAKECMDGOALS))
node build/bin/build-entry.js
dev:
npm run dev
dist:
npm run dist
commit:
npm run commit
pub:
npm run pub
# deploy:
# # npm run deploy
test:
npm run test:ui
help:
@echo " \033[35m make\033[0m \033[1m命令使用说明:\033[0m"
@echo " \033[35m make install\033[0m\t\033[0m\t\033[0m\t\033[0m\t--- 安装依赖"
@echo " \033[35m make install-cn\033[0m\t\033[0m\t\033[0m\t\033[0m\t--- 安装依赖"
@echo " \033[35m make new <component-name> [组件中文名]\033[0m\t--- 创建新组件(组件英文名用中横线)例如 'make new button-group 按钮'"
@echo " \033[35m make dev\033[0m\t\033[0m\t\033[0m\t\033[0m\t\033[0m\t--- 启动开发"
@echo " \033[35m make test\033[0m\t\033[0m\t\033[0m\t\033[0m\t\033[0m\t--- 运行测试"
@echo " \033[35m make dist\033[0m\t\033[0m\t\033[0m\t\033[0m\t\033[0m\t--- 编译项目,构建目标文件"
@echo " \033[35m make pub\033[0m\t\033[0m\t\033[0m\t\033[0m\t\033[0m\t--- 发布到 npm 上"