dyi-cli

1.0.0-beta.1 • Public • Published

一个由 typescript + esbuild 构建的的自定义cli脚手架

通过命令行可快速创建react项目模版

#1 安装全局依赖

$ npm install dyi-cli -g

#2 检查是否安装成功

➜  Desktop dyi-cli
Usage: dyi-cli <command> [option]

Options:
  -V, --version                    output the version number
  -h, --help                       display help for command

Commands:
  create [options] <project-name>  create a new project
  help [command]                   display help for command

 _ .-') _                    .-') _
( (  OO) )                  ( OO ) )
 \     .'_  .-'),-----. ,--./ ,--,'  ,----.       ,--.   ,--. ,-.-')
 ,`'--..._)( OO'  .-.  '|   \ |  |\ '  .-./-')     \  `.'  /  |  |OO)
 |  |  \  '/   |  | |  ||    \|  | )|  |_( O- )  .-')     /   |  |  \
 |  |   ' |\_) |  |\|  ||  .     |/ |  | .--, \ (OO  \   /    |  |(_/
 |  |   / :  \ |  | |  ||  |\    | (|  | '. (_/  |   /  /\_  ,|  |_.'
 |  '--'  /   `'  '-'  '|  | \   |  |  '--'  |.-.`-./  /.__)(_|  |
 `-------'      `-----' `--'  `--'   `------' `-'  `--'       `--'

 Run dyi <command> --help to understand the details

#3 执行 dyi-cli create my-project 创建项目

$ dyi-cli create my-project
➜  Desktop dyi-cli create my-project
✔ fetch template, please waiting...
? 请选择一个项目模版进行创建 react-base-project
✔ downloading template...

 Successfully created project my-project

 cd my-project
npm run dev

#4【npm install】 and 【npm run start】

$ cd my-project

$ npm i

& npm run start

注意:这里我们只实现脚手架,react项目模板长时间没有更改而暂不能使用!!!! 后续会从0-1搭建react模版项目

Readme

Keywords

none

Package Sidebar

Install

npm i dyi-cli

Weekly Downloads

1

Version

1.0.0-beta.1

License

ISC

Unpacked Size

9.42 kB

Total Files

8

Last publish

Collaborators

  • dong.yi