action-cli
v1.0.7
Published
Action-cli is a CLI focused on powering the start of developer's web project.
Downloads
16
Maintainers
Readme
Action-cli
Action-cli is a CLI focused on powering the start of developer's web project.
Features:
| command | description | option | description | | ------------ | ------------ | ------------ | ------------ | | create <project-name> | Create a project | -f,--force |Overwrite target directory if it exists| | | |--template | template or git-url(string)| | list | List available templates | - | - | | add <template-name> <template-url> | Add a new template | - | - | | remove <template-name> | Remove an existing template | - | - | | ui | Open the web-based UI | -p, --port [port] |Specify port (number)| |-| -|-h, --host [host] | Specify hostname (string)| |- |-| -V,--version |Display version number| |-|-|-h,--help |Display available CLI options| | help [command] |Display help for command| --help |Display 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
🛠️ 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
Git 提交规范参考
feat
增加新的业务功能fix
修复业务问题/BUGperf
优化性能style
更改代码风格, 不影响运行结果refactor
重构代码revert
撤销更改test
测试相关, 不涉及业务代码的更改docs
文档和注释相关chore
更新依赖/修改脚手架配置等琐事workflow
工作流改进ci
持续集成相关types
类型定义文件更改wip
开发中