bpd-fe-cli
v0.1.0
Published
cli-new
Downloads
21
Readme
bpd-fe-cli
The new template cli
使用
安装
npm i -g bpd-fe-cli
初始化模板
bpd-fe
安装依赖
pnpm install
开发模式
# 执行 dev 命令,开启实时编译
pnpm run dev
开发模式下命令会自动watch文件的变化进行实施编译,主要用于本地调试
在项目中调试,链接本地命令
通过pnpm link 命令链接本地包
pnpm link /$PATH .
发布包
pnpm publish
打包注意
因为脚手架默认只编译打包src,比如模板templates是和src同级,我们可以配置package.json files
"files": [
"dist",
"templates"
],
此时可以将templates打包进dist产物,其他文件类同