Skip to content

Commit

Permalink
feat: - 优化项目,开启代码压缩
Browse files Browse the repository at this point in the history
  • Loading branch information
唐道勇 authored and 唐道勇 committed Apr 8, 2022
1 parent 676bf0a commit acbc58f
Show file tree
Hide file tree
Showing 17 changed files with 272 additions and 352 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,6 @@ yarn.lock
pnpm-lock.yaml
scripts/

*.sh
*.sh
# build文件
build*
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: matiastang
* @Date: 2021-12-13 10:12:56
* @LastEditors: matiastang
* @LastEditTime: 2022-04-02 14:10:15
* @LastEditTime: 2022-04-08 18:25:38
* @FilePath: /matias-pinia-persisted-state/README.md
* @Description: datumwealth-vue-components
-->
Expand Down Expand Up @@ -63,9 +63,13 @@ export const useTestStore = defineStore('pinia/test', {

## 版本

### 0.1.6

* 开启代码压缩

### 0.1.5

* 代码压缩
* 目录结构调整

### 0.1.4

Expand Down
8 changes: 2 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
* @Author: your name
* @Date: 2021-10-15 15:43:39
* @LastEditTime: 2022-03-31 15:26:27
* @LastEditTime: 2022-04-08 17:42:25
* @LastEditors: matiastang
* @Description: In User Settings Edit
* @FilePath: /matias-pinia-persisted-state/index.html
Expand All @@ -11,7 +11,7 @@
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0, user-scalable=no" />
<link rel="icon" href="./public/favicon.ico" />
<meta name="renderer" content="webkit" />
<meta https-equiv="X-Frame-Options" content="deny" />
Expand Down Expand Up @@ -111,10 +111,6 @@
</div>
</div>
</div>
<!-- iconfont symbol document: https://www.iconfont.cn/help/detail?spm=a313x.7781069.1998910419.d8cf4382a&helptype=code -->
<!-- <script src="//datumwealth.oss-cn-chengdu.aliyuncs.com/dw/icon/font.js"></script> -->
<script type="module" src="./src/main.ts"></script>
<script src="https://cdn.bootcss.com/vConsole/3.2.2/vconsole.min.js"></script>
<script>var vConsole = new VConsole();</script>
</body>
</html>
8 changes: 8 additions & 0 deletions loadenv.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* @Author: matiastang
* @Date: 2021-12-24 13:46:01
* @LastEditors: matiastang
* @LastEditTime: 2022-04-08 17:46:23
* @FilePath: /matias-pinia-persisted-state/loadenv.ts
* @Description: 读取配置文件
*/
import { existsSync, readFileSync } from 'fs'

/** 读取环境变量文件 */
Expand Down
16 changes: 10 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "matias-pinia-persisted-state",
"version": "0.1.4",
"version": "0.1.6",
"description": "pinia状态持久化",
"main": "./dist/index.umd.js",
"files": [
"dist"
],
"module": "./dist/index.es.js",
"types": "./dist/piniaPersistedState.d.ts",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.es.js",
Expand All @@ -22,8 +22,12 @@
],
"scripts": {
"dev": "vite",
"build": "vite --config vite.build.config.ts build --mode production && cp src/@types/src/pinia/piniaPersistedState.d.ts dist",
"push:npm:package": "gulp versionPatch && gulp npmPackagePush"
"ts:build": "tsc --build src/plugin/tsconfig.json",
"build": "vite --config vite.build.config.ts build --mode production",
"cp:type": "cp src/plugin/buildTypes/index.d.ts dist",
"plugin:build": "pnpm run ts:build && pnpm run build && pnpm run cp:type",
"push:npm:package": "gulp versionPatch && gulp npmPackagePush",
"plugin:build:push:npm:package": "pnpm run plugin:build && pnpm run push:npm:package"
},
"repository": {
"type": "git",
Expand All @@ -39,7 +43,7 @@
},
"homepage": "https://github.com/matiastang/vue-scaffold#readme",
"dependencies": {
"vue": "^3.2.20"
"pinia": "^2.0.13"
},
"devDependencies": {
"@element-plus/icons": "^0.0.11",
Expand Down Expand Up @@ -85,7 +89,6 @@
"object-hash": "^2.2.0",
"ora": "5.4.0",
"path": "^0.12.7",
"pinia": "^2.0.12",
"prettier": "^2.4.1",
"rollup": "^2.63.0",
"rollup-plugin-terser": "^7.0.2",
Expand All @@ -107,6 +110,7 @@
"vite-plugin-compression": "^0.3.6",
"vite-plugin-dts": "^0.9.7",
"vite-plugin-imagemin": "^0.4.6",
"vue": "^3.2.31",
"vue-clipboard3": "^1.0.1",
"vue-router": "^4.0.12",
"vue-tsc": "^0.30.2",
Expand Down
Loading

0 comments on commit acbc58f

Please sign in to comment.