starter-lib-ts
v1.0.0
Published
TypeScript Library starter template, supports ESM and CJS.
Downloads
137
Maintainers
Readme
TypeScript 库启动模板
TypeScript 库启动模板,支持 ESM 和 CJS。
特性
使用方法
从 GitHub 上 创建一个仓库 基于此模板。
git clone <git 远程地址>
安装 npm 依赖。
cd starter-lib-ts # 或者你的项目目录
pnpm i # 如果你没有安装 pnpm,运行:npm install -g pnpm
运行 dev
脚本来构建你的文件。
pnpm dev
要构建库,你可以运行:
pnpm build
如果你想发布库,可以运行:
pnpm release
清理模板
如果你更喜欢手动操作并保持更清晰的 git 历史记录:
npx degit templates-collective/starter-lib-ts starter-lib-ts
cd starter-lib-ts
pnpm i # 如果你没有安装 pnpm,运行:npm install -g pnpm
使用此模板时,请按照以下检查列表正确更新信息:
- [ ] 更改
LICENSE
中的作者姓名。 - [ ] 更改
package.json
中的包名。
许可证
MIT 许可证 © 2024 Kieran Wong