2016-07-27 14:15:02 +08:00
|
|
|
.PHONY: dist
|
|
|
|
default: help
|
|
|
|
|
|
|
|
# build all theme
|
2016-09-22 13:53:46 +08:00
|
|
|
build-theme:
|
2016-09-06 11:51:08 +08:00
|
|
|
npm run build:theme
|
2016-07-27 14:15:02 +08:00
|
|
|
|
|
|
|
install:
|
2016-10-15 15:39:05 +08:00
|
|
|
npm install
|
2016-09-09 13:49:20 +08:00
|
|
|
|
|
|
|
install-cn:
|
2016-10-15 15:39:05 +08:00
|
|
|
npm install --registry=http://registry.npm.taobao.org
|
2016-07-27 14:15:02 +08:00
|
|
|
|
2016-09-06 11:51:08 +08:00
|
|
|
dev:
|
2016-07-27 14:15:02 +08:00
|
|
|
npm run dev
|
|
|
|
|
|
|
|
new:
|
2016-10-17 15:57:50 +08:00
|
|
|
node build/bin/new.js $(filter-out $@,$(MAKECMDGOALS))
|
2016-07-27 14:15:02 +08:00
|
|
|
|
2016-09-07 01:15:39 +08:00
|
|
|
dist: install
|
2016-07-27 14:15:02 +08:00
|
|
|
npm run dist
|
|
|
|
|
|
|
|
dist-all:
|
2016-09-06 11:51:08 +08:00
|
|
|
npm run dist:all
|
2016-07-27 14:15:02 +08:00
|
|
|
|
2016-09-18 15:28:39 +08:00
|
|
|
deploy:
|
2016-07-27 14:15:02 +08:00
|
|
|
@npm run deploy
|
|
|
|
|
|
|
|
pub:
|
|
|
|
./node_modules/.bin/kp $(filter-out $@,$(MAKECMDGOALS))
|
|
|
|
|
2016-09-06 11:51:08 +08:00
|
|
|
pub-all:
|
|
|
|
npm run pub:all
|
2016-07-27 14:15:02 +08:00
|
|
|
|
2016-10-20 08:50:40 +08:00
|
|
|
test:
|
|
|
|
npm run test:watch
|
|
|
|
|
2016-07-27 14:15:02 +08:00
|
|
|
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 new <component-name> [中文名]\033[0m\t--- 创建新组件 package. 例如 'make new button 按钮'"
|
|
|
|
@echo " \033[35mmake dev\033[0m\t\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 dist-all\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--- 部署 demo"
|
|
|
|
@echo " \033[35mmake pub\033[0m\t\033[0m\t\033[0m\t\033[0m\t--- 发布到 npm 上"
|
|
|
|
@echo " \033[35mmake pub-all\033[0m\t\033[0m\t\033[0m\t\033[0m\t--- 发布各组件到 npm 上"
|