dnhyxc
v0.0.13
Published
dnhyxc 自定义脚手架
Downloads
21
Readme
安装方式
全局安装 dnhyxc
:
npm install dnhyxc -g
全局安装创建项目
运行 dnhyxc-cli create <projectName>
创建项目,可以加上 -t
参数来自定义设置模版,-f
参数强制覆盖本地同名项目,-d
参数指定项目目录。
dnhyxc create <projectName>
# 示例
dnhyxc create my-project
局部安装 dnhyxc
npm install dnhyxc -D
局部安装创建项目
运行 npx dnhyxc create <projectName>
创建项目,可以加上 -t
参数来自定义设置模版,-f
参数强制覆盖本地同名项目,-d
参数指定项目目录。
或者不使用 npm install dnhyxc -D
在局部安装,直接使用 npx dnhyxc create <projectName>
命令创建项目,此时 npx
会自动安装 dnhyxc
模块。
npx dnhyxc create <projectName>
# 示例
npx dnhyxc create my-project
具体命令说明
dnhyxc -h
或dnhyxc --help
查看帮助。dnhyxc -v
或dnhyxc --version
查看版本。dnhyxc list
查看所有可用模板。dnhyxc create <projectName>
创建项目。dnhyxc create <projectName> -t <templateName>
根据输入的模版创建项目。dnhyxc create <projectName> -f
强制覆盖本地同名项目。