1.0.7 • Published 2 months ago

action-cli v1.0.7

Weekly downloads
-
License
ISC
Repository
github
Last release
2 months ago

Action-cli

NPM GitHub

Action-cli is a CLI focused on powering the start of developer's web project.

Features:

commanddescriptionoptiondescription
create \Create a project-f,--forceOverwrite target directory if it exists
--template template or git-url(string)
listList available templates--
add \ \Add a new template--
remove \Remove an existing template--
uiOpen the web-based UI-p, --port portSpecify port (number)
---h, --host hostSpecify hostname (string)
---V,--versionDisplay version number
---h,--helpDisplay available CLI options
help commandDisplay help for command--helpDisplay help for command
 ...---

⚡ Installation

# global install
npm install -g action-cli

🚀 Usage

# create a new project
action create demo -f --template react+ts
# or
action create demo -f --template https://github.com/demo/react-admin-template.git

# list available templates
action list

# add a new template
action add vue+ts https://github.com/demo/vue-admin-template.git

# remove an existing template
action remove vue+ts

# open the web-based UI
action ui

# display help for command
action help

# ...

Pictures

Action-cli

Example

🛠️ Run

Development

# install dependencies
pnpm install
# transform
pnpm run build
# global link
pnpm link
# todo
action create demo

NPM

# login(https://registry.npmjs.org/) 
npm login
# publish
npm publish

Blog

CSDN

Git 提交规范参考

  • feat 增加新的业务功能
  • fix 修复业务问题/BUG
  • perf 优化性能
  • style 更改代码风格, 不影响运行结果
  • refactor 重构代码
  • revert 撤销更改
  • test 测试相关, 不涉及业务代码的更改
  • docs 文档和注释相关
  • chore 更新依赖/修改脚手架配置等琐事
  • workflow 工作流改进
  • ci 持续集成相关
  • types 类型定义文件更改
  • wip 开发中

Thanks

【前端脚手架】实现一个自己的脚手架

【手把手教你实现前端脚手架】

【nebula-cli-frontend】