-
Notifications
You must be signed in to change notification settings - Fork 44
/
Makefile
64 lines (48 loc) · 1.88 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
.PHONY: test build
default: help
new:
node build/bin/new.js $(filter-out $@,$(MAKECMDGOALS))
del:
node build/bin/delete.js $(filter-out $@,$(MAKECMDGOALS))
install:
npm run bootstrap
build-vui:
npm run build:vui
build-css:
npm run build:vui-css
deploy:
npm run deploy
deploy-docs:
npm run deploy:docs
dev:
npm run dev
dist:
npm run dist
lint:
npm run lint
clean:
npm run clean
test:
npm run test
test-coverage:
npm run test:coverage
release:
npm run release
help:
@echo " \033[35m\033[0m \033[1m\033[0m"
@echo " \033[35mmake\033[0m \033[0m\t\033[0m\t\033[0m\t\033[0m\t\033[1m命令使用说明\033[0m"
@echo " \033[35m\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 build-css\033[0m\t\033[0m\t\033[0m\t--- css打包"
@echo " \033[35mmake build-vui\033[0m\t\033[0m\t\033[0m\t--- 压缩打包"
@echo " \033[35mmake deploy\033[0m\t\033[0m\t\033[0m\t\033[0m\t--- gp发布"
@echo " \033[35mmake deploy-docs\033[0m\t\033[0m\t\033[0m\t--- 文档发布打包"
@echo " \033[35mmake dist\033[0m\t\033[0m\t\033[0m\t\033[0m\t--- 集体打包"
@echo " \033[35mmake clean\033[0m\t\033[0m\t\033[0m\t\033[0m\t--- 文件清理"
@echo " \033[35mmake test\033[0m\t\033[0m\t\033[0m\t\033[0m\t--- unit测试"
@echo " \033[35mmake test-coverage\033[0m\t\033[0m\t\033[0m\t--- 打开覆盖率测试页面"
@echo " \033[35mmake release\033[0m\t\033[0m\t\033[0m\t\033[0m\t--- 发布release"
@echo " \033[35mmake new <component-name> [中文名]\033[0m\t--- 创建新全局组件 生成对应文件 例如 'make new button '按钮'"
@echo " \033[35mmake del <component-name> \033[0m\t\033[0m\t--- 删除组件 删除对应文件 例如 'make del button'"
@echo " \033[35mmake dev\033[0m\t\033[0m\t\033[0m\t\033[0m\t--- 开发模式"
@echo " \033[35m\033[0m \033[1m\033[0m"