@fanguyun214/fan-tools
v1.0.0
Published
日常基础辅助工具库
Readme
fan-tools
日常基础辅助工具库
安装
npm install fan-tools -g或者
yarn add fan-tools -g本地开发调试
- 克隆仓库
git clone https://github.com/your-repo/fan-tools.git
cd fan-tools- 安装依赖
yarn install- 链接到全局(用于命令行工具测试)
yarn link- 在测试项目中链接
cd /path/to/your/test/project
yarn link "fan-tools"- 开发模式
yarn build --watch命令行工具
查看命令行工具帮助:
ft-info # 查看项目基础信息
ft-info --help # 查看命令行工具帮助作为模块使用
import { ... } from 'fan-tools';发布到 NPM
- 确保已登录 npm 账号
npm login- 构建项目
yarn build- 发布
npm publish系统要求
- Node.js >= 18.0.0
许可证
ISC
