1.1.0 • Published 8 months ago

action-cli v1.1.0

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

Action-cli

NPM Version NPM Downloads

NPM GitHub

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

⚡ Installation

# global install
npm install -g action-cli

🚀 Usage

Create

Create a new project:

# create a new project
action create demo

Your can create a new project with the template of your choice:

# create a new project with the react template
action create demo --template react
# or
action create demo --template https://github.com/demo/react-admin-template.git

You can use the web-based UI to create a new project:

# open the web-based UI
action ui

Template

Show available templates:

# list available templates
action list

Add or remove a template:

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

# remove an existing template
action remove vue-ts

Update

When a new version is detected, you can use this command to update the scaffolding. update action-cli:

# update action-cli
action update

Help

show help:

# show help
action help

# show help for command
action help create

✨ Changelog

  • Refactor the create command

  • Add features to the create command including branching, package manager, automatic execution, and custom commands

  • Refactor the list command

  • Refactor the template command

  • Add the update command, which supports detecting scaffolding version updates

  • Optimize packaging

✨ Features

commanddescriptionoptiondescription
create \Create a project-t, --template template-nametemplate or git-url(string)
-f, --forceOverwrite target directory if it exists
-b, --branch branch-nameSpecify a branch to clone
-r, --runRun the project after creation
-c, --command commandSpecify a command to run
-pm, --packageManager package-managerSpecify a package manager to use
listList available templates--
add \ \Add a new template--
remove \Remove an existing template--
updateUpdate the cli to the latest version--
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
 ...---

Screenshots

p1 p2 p3

Repository

Topskys/action-cli

🛠️ Run

Development

# clone repo
git clone https://github.com/Topskys/action-cli.git

# install dependencies
pnpm install

# transform
pnpm run build

# global link
pnpm link

# todo
action create demo

Blog

实现一个自定义前端脚手架_前端自定义脚手架-CSDN博客

Thanks

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

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

【nebula-cli-frontend】

1.1.0

8 months ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago