dp-easy-storage
v0.0.5
Published
Localized persistent storage
Downloads
6
Readme
easy-storage
项目介绍
基于 TypeScript
的前端数据缓存&持久化工具库。其中包含:
Rollup
进行库文件打包Karma + Jasmin
进行单元测试Webpack
进行demo开发Vuepress
进行文档编写
Quick start
Install Dependencies
$ npm i
Build
$ npm run build
- 使用
Rollup
构建Typescript
源代码,生成UMD、ESM标准bundle
Release
$ npm run release
- 自动打包构建
- 自动提交文件到git,并生成相对应的release-tag
- 自动发布代码到npm仓库
Unit test
$ npm run test
- 使用
Karma + Webpack + Jasmin
构建Typescript
单元测试 - 直接使用
Typescript
编写单元测试 - 只有以
*.test.ts
的测试代码会被执行
Demo debug
$ npm run start
- 使用
Webpack
构建的一个Web App
Demo,可以进行快速开发和调试
Docs
$ npm run docs
- 使用
Vuepress
编写文档
Directory structure
|- demo
| |- src/
| |- index.html
|- docs
| |- README.md
│ |- .vuepress
│ |- config.js
|- script/
| |- build.js
| |- release.js
| |- utils.js
|- src/
|- tests/
|- tsconfig.json
|- karma.conf.js
|- webpack.config.js
|- package.json
demo
: Demo页面目录src
: Demo页面源码index.html
: 入口页面
docs
: 文档目录README.md
: 文档介绍.vuepress
: 配置
script
: 工具脚本build.js
: 构建脚本release.js
: 发布脚本utils
: shell 工具
src
: 项目源码tests
: 单元测试目录tsconfig.json
: typescript配置文件karma.conf.js
:karma
配置文件,用于单元测试webpack.config.js
:webpack
配置文件,用于运行或构建demo
项目