0.1.1 • Published 3 years ago

@zhengxs/common-algorithm v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@zhengxs/common-algorithm

lang code style: prettier npm version Downloads

常用算法,支持 nodejs 与浏览器,使用 TypeScript 重构

安装

npm install @zhengxs/common-algorithm --save

启动工程

推荐使用 yarncnpm 来管理依赖。

# 安装依赖
$ npm install

# 启动文件监听,用于和 npm link 配合
$ npm run watch

# 构建源码
$ npm run build

# 构建后生成分析报告
# 生成的文件在 dist/bundle-analyzer-report.html
$ npm run build --analyse

# 生成 api 文档
$ npm run doc

更多 npm version 的命令可使用 npm version --help 查看

运行单元测试

# 单元测试
$ npm test

# 生成测试覆盖率报告
$ npm run cov

发布版本

# 更新版本
$ npm version <newversion|major|minor|patch>

# 发布代码
$ npm publish
0.1.1

3 years ago

0.1.0

4 years ago

0.0.1-1

4 years ago

0.0.1-0

4 years ago

0.0.0

4 years ago