tis-cli前端项目快速搭建命令行工具
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.2 KiB

  1. .PHONY: dist test
  2. default: help
  3. # build all theme
  4. build-theme:
  5. npm run build:theme
  6. install:
  7. npm install
  8. install-cn:
  9. npm install --registry=http://registry.npm.taobao.org
  10. dev:
  11. npm run dev
  12. play:
  13. npm run dev:play
  14. new:
  15. node build/bin/new.js $(filter-out $@,$(MAKECMDGOALS))
  16. new-lang:
  17. node build/bin/new-lang.js $(filter-out $@,$(MAKECMDGOALS))
  18. dist: install
  19. npm run dist
  20. deploy:
  21. @npm run deploy
  22. pub:
  23. npm run pub
  24. test:
  25. npm run test:watch
  26. help:
  27. @echo " \033[35mmake\033[0m \033[1m命令使用说明\033[0m"
  28. @echo " \033[35mmake install\033[0m\t\033[0m\t\033[0m\t\033[0m\t--- 安装依赖"
  29. @echo " \033[35mmake new <component-name> [中文名]\033[0m\t--- 创建新组件 package. 例如 'make new button 按钮'"
  30. @echo " \033[35mmake dev\033[0m\t\033[0m\t\033[0m\t\033[0m\t--- 开发模式"
  31. @echo " \033[35mmake dist\033[0m\t\033[0m\t\033[0m\t\033[0m\t--- 编译项目,生成目标文件"
  32. @echo " \033[35mmake deploy\033[0m\t\033[0m\t\033[0m\t\033[0m\t--- 部署 demo"
  33. @echo " \033[35mmake pub\033[0m\t\033[0m\t\033[0m\t\033[0m\t--- 发布到 npm 上"
  34. @echo " \033[35mmake new-lang <lang>\033[0m\t\033[0m\t\033[0m\t--- 为网站添加新语言. 例如 'make new-lang fr'"