0.0.6 • Published 4 years ago

ncfx v0.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

ncfx

该项目主要功能用户方便项目开发,提供一些方便快捷的命令行功能。

安装

安装在全局环境下即可,无需安装为项目依赖。

移除老版本:
npm remove ncfx -g

安装最新版本:
cnpm install ncfx -g 或 cnpm install ncfx@latest -g

功能介绍

功能名称参数
copy拷贝目标路径,目的地址,过滤参数
zip压缩目标路径,目的地址,过滤参数
backup备份目标路径,目的地址,过滤参数
product发布目标路径,目的地址,过滤参数
merge合并目标路径,过滤参数
generate生成文件文件类型,文件名,文件路径

测试案例

copy:

ncfx copy ./src ./build --f='!**/*.ts'  
ncfx copy ./src ./build --f='!**/*.ts,!**/*.map'  
ncfx copy ./src ./build --f='**/*.map'  
ncfx copy ./src./build --f='**/repository/**,!**/*.ts'  

zip

.ncfx zip  
.ncfx zip D:\\temp

backup:

ncfx backup D:\\workflow D:\\backup

product:

ncfx product D:\\workflow D:\\product   

merge:

ncfx merge D:\\test\\package.json  
ncfx merge D:\\test\\package.json --filter='!**/*.map'  

generate

ncfx generate D:\\common index  
ncfx generate class xx.ts