Prechádzať zdrojové kódy

build(package.json): 新增jy-version资源替换工具

zhangyuhan 5 rokov pred
rodič
commit
775b2926e2
7 zmenil súbory, kde vykonal 1050 pridanie a 249 odobranie
  1. 1 0
      .eslintignore
  2. 4 4
      .gitignore
  3. 35 0
      ch2version.config.json
  4. 692 0
      ch2version.version.json
  5. 8 2
      package.json
  6. 4 6
      vue.config.js
  7. 306 237
      yarn.lock

+ 1 - 0
.eslintignore

@@ -1 +1,2 @@
 /vue.config.js
+/public/js/commonForVue.js

+ 4 - 4
.gitignore

@@ -1,6 +1,8 @@
 .DS_Store
-node_modules
-/dist
+/node_modules
+/online
+/page_partner
+/dist*
 
 # local env files
 .env.local
@@ -20,5 +22,3 @@ pnpm-debug.log*
 *.njsproj
 *.sln
 *.sw?
-online
-page_partner

+ 35 - 0
ch2version.config.json

@@ -0,0 +1,35 @@
+{
+    "language": "cn",
+    "mode": "update",
+    "version": "8000",
+    "inDir": "./page_partner",
+    "outDir": "./dist-version",
+    "config": "./ch2version.config.json",
+    "outVersion": "./ch2version.version.json",
+    "git": true,
+    "clear": true,
+    "rewrite": true,
+    "prompt": false,
+    "ignore": [
+        ".git/"
+    ],
+    "replaceDomain": {
+        "readPath": "dist-version",
+        "baseURL": "/page_partner/",
+        "urlLocal": "/jyapp/local",
+        "output": [
+            {
+                "origin": "res://app-i1.jianyu360.com",
+                "fileName": "index_i1.html"
+            },
+            {
+                "origin": "res://app2-jytest.jianyu360.cn",
+                "fileName": "index_app2.html"
+            },
+            {
+                "origin": "",
+                "fileName": "index_local.html"
+            }
+        ]
+    }
+}

+ 692 - 0
ch2version.version.json

@@ -0,0 +1,692 @@
+{
+    "css": {
+        "404.css": {
+            "name": "404.css",
+            "hash": "1e09bda24e",
+            "version": "8000",
+            "md5": "17c945b44cf7726f5f038adfc58c23df",
+            "git": {
+                "name": "Gogs",
+                "email": "gogs@fake.local",
+                "date": "2020-08-21T07:44:43.000Z",
+                "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                "commit": "e3f5aec",
+                "branch": "feature/version-add"
+            }
+        },
+        "app.css": {
+            "name": "app.css",
+            "hash": "4a8da4e0cf",
+            "version": "8000",
+            "md5": "1deddfb69dd7f5d171eea0d07a204415",
+            "git": {
+                "name": "Gogs",
+                "email": "gogs@fake.local",
+                "date": "2020-08-21T07:44:43.000Z",
+                "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                "commit": "e3f5aec",
+                "branch": "feature/version-add"
+            }
+        },
+        "auth.css": {
+            "name": "auth.css",
+            "hash": "0f1f1ae928",
+            "version": "8000",
+            "md5": "ca7fb99d8f5570a082bd6f55dac76fdd",
+            "git": {
+                "name": "Gogs",
+                "email": "gogs@fake.local",
+                "date": "2020-08-21T07:44:43.000Z",
+                "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                "commit": "e3f5aec",
+                "branch": "feature/version-add"
+            }
+        },
+        "auth~main.css": {
+            "name": "auth~main.css",
+            "hash": "235947c0b0",
+            "version": "8000",
+            "md5": "e95ad792806933063313037b6c09230d",
+            "git": {
+                "name": "Gogs",
+                "email": "gogs@fake.local",
+                "date": "2020-08-21T07:44:43.000Z",
+                "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                "commit": "e3f5aec",
+                "branch": "feature/version-add"
+            }
+        },
+        "chunk-vendors.css": {
+            "name": "chunk-vendors.css",
+            "hash": "4ab2a0fac8",
+            "version": "8000",
+            "md5": "41751fd5600af86321dd80cbf274ecda",
+            "git": {
+                "name": "Gogs",
+                "email": "gogs@fake.local",
+                "date": "2020-08-21T07:44:43.000Z",
+                "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                "commit": "e3f5aec",
+                "branch": "feature/version-add"
+            }
+        },
+        "home.css": {
+            "name": "home.css",
+            "hash": "9529606582",
+            "version": "8000",
+            "md5": "c0910ed4da024ac1a71ef15f91225b65",
+            "git": {
+                "name": "Gogs",
+                "email": "gogs@fake.local",
+                "date": "2020-08-21T07:44:43.000Z",
+                "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                "commit": "e3f5aec",
+                "branch": "feature/version-add"
+            }
+        },
+        "main.css": {
+            "name": "main.css",
+            "hash": "ae93616549",
+            "version": "8000",
+            "md5": "90aa8e31b846ac79691f7de40bf620b6",
+            "git": {
+                "name": "Gogs",
+                "email": "gogs@fake.local",
+                "date": "2020-08-21T07:44:43.000Z",
+                "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                "commit": "e3f5aec",
+                "branch": "feature/version-add"
+            }
+        },
+        "record.css": {
+            "name": "record.css",
+            "hash": "d9f155611d",
+            "version": "8000",
+            "md5": "8740f467d69295a820531d99c9c4d67a",
+            "git": {
+                "name": "Gogs",
+                "email": "gogs@fake.local",
+                "date": "2020-08-21T07:44:43.000Z",
+                "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                "commit": "e3f5aec",
+                "branch": "feature/version-add"
+            }
+        },
+        "test.css": {
+            "name": "test.css",
+            "hash": "5b26df3696",
+            "version": "8000",
+            "md5": "673b767b2d2d47b0547b825de984596b",
+            "git": {
+                "name": "Gogs",
+                "email": "gogs@fake.local",
+                "date": "2020-08-21T07:44:43.000Z",
+                "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                "commit": "e3f5aec",
+                "branch": "feature/version-add"
+            }
+        },
+        "withdrawal.css": {
+            "name": "withdrawal.css",
+            "hash": "b1c0e37c53",
+            "version": "8000",
+            "md5": "1aaf81633c64320a6dc7eb2627553955",
+            "git": {
+                "name": "Gogs",
+                "email": "gogs@fake.local",
+                "date": "2020-08-21T07:44:43.000Z",
+                "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                "commit": "e3f5aec",
+                "branch": "feature/version-add"
+            }
+        }
+    },
+    "favicon.ico": {
+        "name": "favicon.ico",
+        "hash": "",
+        "version": "8000",
+        "md5": "52c992b5ec4cd2d487fd7d4a1d55ff7d",
+        "git": {
+            "name": "Gogs",
+            "email": "gogs@fake.local",
+            "date": "2020-08-21T07:44:43.000Z",
+            "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+            "commit": "e3f5aec",
+            "branch": "feature/version-add"
+        }
+    },
+    "img": {
+        "chaojidingyue.png": {
+            "name": "chaojidingyue.png",
+            "hash": "07fdcedb",
+            "version": "8000",
+            "md5": "9d52025e0b6a6576cc11b0a78fe62348",
+            "git": {
+                "name": "Gogs",
+                "email": "gogs@fake.local",
+                "date": "2020-08-21T07:44:43.000Z",
+                "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                "commit": "e3f5aec",
+                "branch": "feature/version-add"
+            }
+        },
+        "empty.png": {
+            "name": "empty.png",
+            "hash": "b176b285",
+            "version": "8000",
+            "md5": "0805e8ba9ad0151a1e6e8e186ccc67d4",
+            "git": {
+                "name": "Gogs",
+                "email": "gogs@fake.local",
+                "date": "2020-08-21T07:44:43.000Z",
+                "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                "commit": "e3f5aec",
+                "branch": "feature/version-add"
+            }
+        },
+        "hbjh_1.png": {
+            "name": "hbjh_1.png",
+            "hash": "32409433",
+            "version": "8000",
+            "md5": "2c6c0f9fd6c09b22599f1e4edc1cc658",
+            "git": {
+                "name": "Gogs",
+                "email": "gogs@fake.local",
+                "date": "2020-08-21T07:44:43.000Z",
+                "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                "commit": "e3f5aec",
+                "branch": "feature/version-add"
+            }
+        },
+        "hbjh_2.png": {
+            "name": "hbjh_2.png",
+            "hash": "b2f95a25",
+            "version": "8000",
+            "md5": "fa131f0d5c3671b45cf6287aca223d77",
+            "git": {
+                "name": "Gogs",
+                "email": "gogs@fake.local",
+                "date": "2020-08-21T07:44:43.000Z",
+                "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                "commit": "e3f5aec",
+                "branch": "feature/version-add"
+            }
+        },
+        "hbjh_3.png": {
+            "name": "hbjh_3.png",
+            "hash": "59425c71",
+            "version": "8000",
+            "md5": "3c9dae971aa24e34e6f67722a25827de",
+            "git": {
+                "name": "Gogs",
+                "email": "gogs@fake.local",
+                "date": "2020-08-21T07:44:43.000Z",
+                "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                "commit": "e3f5aec",
+                "branch": "feature/version-add"
+            }
+        },
+        "hbjh_bg.png": {
+            "name": "hbjh_bg.png",
+            "hash": "d16a6bad",
+            "version": "8000",
+            "md5": "547628efd5fdf1d45328b5c4acab9637",
+            "git": {
+                "name": "Gogs",
+                "email": "gogs@fake.local",
+                "date": "2020-08-21T07:44:43.000Z",
+                "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                "commit": "e3f5aec",
+                "branch": "feature/version-add"
+            }
+        },
+        "income.png": {
+            "name": "income.png",
+            "hash": "6c4ff790",
+            "version": "8000",
+            "md5": "ba590abca8790d41eda68a5b072f60a2",
+            "git": {
+                "name": "Gogs",
+                "email": "gogs@fake.local",
+                "date": "2020-08-21T07:44:43.000Z",
+                "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                "commit": "e3f5aec",
+                "branch": "feature/version-add"
+            }
+        },
+        "real-name.png": {
+            "name": "real-name.png",
+            "hash": "71b6a954",
+            "version": "8000",
+            "md5": "772c6235ff3b72dd6dc16338f67b9c3a",
+            "git": {
+                "name": "Gogs",
+                "email": "gogs@fake.local",
+                "date": "2020-08-21T07:44:43.000Z",
+                "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                "commit": "e3f5aec",
+                "branch": "feature/version-add"
+            }
+        },
+        "shujubaogao.png": {
+            "name": "shujubaogao.png",
+            "hash": "065d051f",
+            "version": "8000",
+            "md5": "355e6c70f8ed701f9d7acb4b7860fe01",
+            "git": {
+                "name": "Gogs",
+                "email": "gogs@fake.local",
+                "date": "2020-08-21T07:44:43.000Z",
+                "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                "commit": "e3f5aec",
+                "branch": "feature/version-add"
+            }
+        },
+        "shujudaochu.png": {
+            "name": "shujudaochu.png",
+            "hash": "6aff231e",
+            "version": "8000",
+            "md5": "d97f7a5a6934628e09f10528c7d4a2e1",
+            "git": {
+                "name": "Gogs",
+                "email": "gogs@fake.local",
+                "date": "2020-08-21T07:44:43.000Z",
+                "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                "commit": "e3f5aec",
+                "branch": "feature/version-add"
+            }
+        },
+        "uploader.png": {
+            "name": "uploader.png",
+            "hash": "83690774",
+            "version": "8000",
+            "md5": "e7e9d0eb4c3b1660590f0e619094e988",
+            "git": {
+                "name": "Gogs",
+                "email": "gogs@fake.local",
+                "date": "2020-08-21T07:44:43.000Z",
+                "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                "commit": "e3f5aec",
+                "branch": "feature/version-add"
+            }
+        },
+        "working.gif": {
+            "name": "working.gif",
+            "hash": "d7ab2ce2",
+            "version": "8000",
+            "md5": "7ba8c9ba906684cb91a8fba792289686",
+            "git": {
+                "name": "Gogs",
+                "email": "gogs@fake.local",
+                "date": "2020-08-21T07:44:43.000Z",
+                "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                "commit": "e3f5aec",
+                "branch": "feature/version-add"
+            }
+        },
+        "xianshangkecheng.png": {
+            "name": "xianshangkecheng.png",
+            "hash": "387d9672",
+            "version": "8000",
+            "md5": "8dafbf514eb0dd8d82c8b287f04620e2",
+            "git": {
+                "name": "Gogs",
+                "email": "gogs@fake.local",
+                "date": "2020-08-21T07:44:43.000Z",
+                "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                "commit": "e3f5aec",
+                "branch": "feature/version-add"
+            }
+        }
+    },
+    "index.html": {
+        "name": "index.html",
+        "hash": "",
+        "version": "8000",
+        "md5": "77f6fbd2268101b3f6b66debab07a166",
+        "git": {
+            "name": "Gogs",
+            "email": "gogs@fake.local",
+            "date": "2020-08-21T07:44:43.000Z",
+            "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+            "commit": "e3f5aec",
+            "branch": "feature/version-add"
+        }
+    },
+    "js": {
+        "404.js": {
+            "name": "404.js",
+            "hash": "5495653d5a",
+            "version": "8000",
+            "md5": "339aee8ee988ac9cc48111d3adcb0d0e",
+            "git": {
+                "name": "Gogs",
+                "email": "gogs@fake.local",
+                "date": "2020-08-21T07:44:43.000Z",
+                "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                "commit": "e3f5aec",
+                "branch": "feature/version-add"
+            }
+        },
+        "app.js": {
+            "name": "app.js",
+            "hash": "9d013fd2a3",
+            "version": "8000",
+            "md5": "08ef821c477f47d2564c4a46cda115a1",
+            "git": {
+                "name": "Gogs",
+                "email": "gogs@fake.local",
+                "date": "2020-08-21T07:44:43.000Z",
+                "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                "commit": "e3f5aec",
+                "branch": "feature/version-add"
+            }
+        },
+        "auth.js": {
+            "name": "auth.js",
+            "hash": "c5f8f732fb",
+            "version": "8000",
+            "md5": "90cc01227c01fb8edfd348bcef62a18f",
+            "git": {
+                "name": "Gogs",
+                "email": "gogs@fake.local",
+                "date": "2020-08-21T07:44:43.000Z",
+                "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                "commit": "e3f5aec",
+                "branch": "feature/version-add"
+            }
+        },
+        "auth~main.js": {
+            "name": "auth~main.js",
+            "hash": "2ead5655af",
+            "version": "8000",
+            "md5": "8b4a5968fd830e05b87c06458ab3a57a",
+            "git": {
+                "name": "Gogs",
+                "email": "gogs@fake.local",
+                "date": "2020-08-21T07:44:43.000Z",
+                "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                "commit": "e3f5aec",
+                "branch": "feature/version-add"
+            }
+        },
+        "chunk-vendors.js": {
+            "name": "chunk-vendors.js",
+            "hash": "9e2860ed76",
+            "version": "8000",
+            "md5": "2e54492eb2f0e4959c41ed2caaf69e1e",
+            "git": {
+                "name": "Gogs",
+                "email": "gogs@fake.local",
+                "date": "2020-08-21T07:44:43.000Z",
+                "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                "commit": "e3f5aec",
+                "branch": "feature/version-add"
+            }
+        },
+        "commonForVue.js": {
+            "name": "commonForVue.js",
+            "hash": "",
+            "version": "8000",
+            "md5": "286e7faf6d8bd29ee78e81fa9cef40c3",
+            "git": {
+                "name": "Gogs",
+                "email": "gogs@fake.local",
+                "date": "2020-08-21T07:44:43.000Z",
+                "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                "commit": "e3f5aec",
+                "branch": "feature/version-add"
+            }
+        },
+        "home.js": {
+            "name": "home.js",
+            "hash": "a48e763aae",
+            "version": "8000",
+            "md5": "0b7dae48b32253a5b0fe69f478ef688d",
+            "git": {
+                "name": "Gogs",
+                "email": "gogs@fake.local",
+                "date": "2020-08-21T07:44:43.000Z",
+                "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                "commit": "e3f5aec",
+                "branch": "feature/version-add"
+            }
+        },
+        "main.js": {
+            "name": "main.js",
+            "hash": "d740f505c0",
+            "version": "8000",
+            "md5": "eb23140e32ff8c9e2b933b99f7da010e",
+            "git": {
+                "name": "Gogs",
+                "email": "gogs@fake.local",
+                "date": "2020-08-21T07:44:43.000Z",
+                "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                "commit": "e3f5aec",
+                "branch": "feature/version-add"
+            }
+        },
+        "record.js": {
+            "name": "record.js",
+            "hash": "57df0b98be",
+            "version": "8000",
+            "md5": "29fd5d889ed4d74d44298759da4be838",
+            "git": {
+                "name": "Gogs",
+                "email": "gogs@fake.local",
+                "date": "2020-08-21T07:44:43.000Z",
+                "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                "commit": "e3f5aec",
+                "branch": "feature/version-add"
+            }
+        },
+        "test.js": {
+            "name": "test.js",
+            "hash": "2dab9aece4",
+            "version": "8000",
+            "md5": "5c04d034bb9bab9d895e80ec2861686e",
+            "git": {
+                "name": "Gogs",
+                "email": "gogs@fake.local",
+                "date": "2020-08-21T07:44:43.000Z",
+                "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                "commit": "e3f5aec",
+                "branch": "feature/version-add"
+            }
+        },
+        "withdrawal.js": {
+            "name": "withdrawal.js",
+            "hash": "e7d1fe93ff",
+            "version": "8000",
+            "md5": "aa38240ce297e4c9c9e80d09deb1b299",
+            "git": {
+                "name": "Gogs",
+                "email": "gogs@fake.local",
+                "date": "2020-08-21T07:44:43.000Z",
+                "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                "commit": "e3f5aec",
+                "branch": "feature/version-add"
+            }
+        }
+    },
+    "partner": {
+        "css": {
+            "base.css": {
+                "name": "base.css",
+                "hash": "",
+                "version": "8000",
+                "md5": "85468bc4387bf94b3722be5b68221b88",
+                "git": {
+                    "name": "Gogs",
+                    "email": "gogs@fake.local",
+                    "date": "2020-08-21T07:44:43.000Z",
+                    "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                    "commit": "e3f5aec",
+                    "branch": "feature/version-add"
+                }
+            },
+            "partner.css": {
+                "name": "partner.css",
+                "hash": "",
+                "version": "8000",
+                "md5": "9b8f7db74f6b5c4c2f850246e84eab72",
+                "git": {
+                    "name": "Gogs",
+                    "email": "gogs@fake.local",
+                    "date": "2020-08-21T07:44:43.000Z",
+                    "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                    "commit": "e3f5aec",
+                    "branch": "feature/version-add"
+                }
+            }
+        },
+        "iconfont": {
+            "iconfont.css": {
+                "name": "iconfont.css",
+                "hash": "",
+                "version": "8000",
+                "md5": "4a931e90c9a8b42addd0501770851858",
+                "git": {
+                    "name": "Gogs",
+                    "email": "gogs@fake.local",
+                    "date": "2020-08-21T07:44:43.000Z",
+                    "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                    "commit": "e3f5aec",
+                    "branch": "feature/version-add"
+                }
+            },
+            "iconfont.eot": {
+                "name": "iconfont.eot",
+                "hash": "",
+                "version": "8000",
+                "md5": "d7eb7c0e9eeffbcd59b03e6037707ce5",
+                "git": {
+                    "name": "Gogs",
+                    "email": "gogs@fake.local",
+                    "date": "2020-08-21T07:44:43.000Z",
+                    "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                    "commit": "e3f5aec",
+                    "branch": "feature/version-add"
+                }
+            },
+            "iconfont.ttf": {
+                "name": "iconfont.ttf",
+                "hash": "",
+                "version": "8000",
+                "md5": "fc89f875ca9ae47d66fc931acc2c6e53",
+                "git": {
+                    "name": "Gogs",
+                    "email": "gogs@fake.local",
+                    "date": "2020-08-21T07:44:43.000Z",
+                    "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                    "commit": "e3f5aec",
+                    "branch": "feature/version-add"
+                }
+            },
+            "iconfont.woff": {
+                "name": "iconfont.woff",
+                "hash": "",
+                "version": "8000",
+                "md5": "cc72432b3e7eb5f3caa5e2382ee0f9f3",
+                "git": {
+                    "name": "Gogs",
+                    "email": "gogs@fake.local",
+                    "date": "2020-08-21T07:44:43.000Z",
+                    "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                    "commit": "e3f5aec",
+                    "branch": "feature/version-add"
+                }
+            },
+            "iconfont.woff2": {
+                "name": "iconfont.woff2",
+                "hash": "",
+                "version": "8000",
+                "md5": "e7c0bce808d2e4652ef82f5488e6b702",
+                "git": {
+                    "name": "Gogs",
+                    "email": "gogs@fake.local",
+                    "date": "2020-08-21T07:44:43.000Z",
+                    "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                    "commit": "e3f5aec",
+                    "branch": "feature/version-add"
+                }
+            }
+        },
+        "image": {
+            "partner": {
+                "bg.png": {
+                    "name": "bg.png",
+                    "hash": "",
+                    "version": "8000",
+                    "md5": "34f05c6504cd7e00bbfb7f56482434fc",
+                    "git": {
+                        "name": "Gogs",
+                        "email": "gogs@fake.local",
+                        "date": "2020-08-21T07:44:43.000Z",
+                        "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                        "commit": "e3f5aec",
+                        "branch": "feature/version-add"
+                    }
+                },
+                "default.png": {
+                    "name": "default.png",
+                    "hash": "",
+                    "version": "8000",
+                    "md5": "6ce890f8cd535e6f0c2a6e6255c8ac10",
+                    "git": {
+                        "name": "Gogs",
+                        "email": "gogs@fake.local",
+                        "date": "2020-08-21T07:44:43.000Z",
+                        "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                        "commit": "e3f5aec",
+                        "branch": "feature/version-add"
+                    }
+                },
+                "wz.png": {
+                    "name": "wz.png",
+                    "hash": "",
+                    "version": "8000",
+                    "md5": "41e1f7f22cc91b7f4dd17967095f7ea0",
+                    "git": {
+                        "name": "Gogs",
+                        "email": "gogs@fake.local",
+                        "date": "2020-08-21T07:44:43.000Z",
+                        "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                        "commit": "e3f5aec",
+                        "branch": "feature/version-add"
+                    }
+                }
+            }
+        },
+        "js": {
+            "rem.js": {
+                "name": "rem.js",
+                "hash": "",
+                "version": "8000",
+                "md5": "52f39b68aa83346e750a683698a064e6",
+                "git": {
+                    "name": "Gogs",
+                    "email": "gogs@fake.local",
+                    "date": "2020-08-21T07:44:43.000Z",
+                    "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                    "commit": "e3f5aec",
+                    "branch": "feature/version-add"
+                }
+            }
+        },
+        "partner.html": {
+            "name": "partner.html",
+            "hash": "",
+            "version": "8000",
+            "md5": "506e5c2c36dbdba80e18c78506526062",
+            "git": {
+                "name": "Gogs",
+                "email": "gogs@fake.local",
+                "date": "2020-08-21T07:44:43.000Z",
+                "message": "Merge branch 'feature/cashout' of EFE/jy-partner into test",
+                "commit": "e3f5aec",
+                "branch": "feature/version-add"
+            }
+        }
+    }
+}

+ 8 - 2
package.json

@@ -5,8 +5,12 @@
   "scripts": {
     "serve": "vue-cli-service serve",
     "build": "vue-cli-service build",
+    "build:prod": "npm run build && npm run ch2version-update && npm run ch2version-replace",
     "lint": "vue-cli-service lint",
-    "git-release": "standard-version"
+    "ch2version-update": "ch2version update -lang cn",
+    "ch2version-replace": "ch2version replace",
+    "git-release": "standard-version",
+    "ch2version": "ch2version"
   },
   "dependencies": {
     "axios": "^0.19.2",
@@ -37,6 +41,7 @@
     "autoprefixer": "^9.8.5",
     "commitizen": "^4.1.2",
     "commitlint": "^9.0.1",
+    "contenthash2version": "^0.1.4",
     "cz-conventional-changelog": "3.2.0",
     "eslint": "^6.7.2",
     "eslint-plugin-import": "^2.20.2",
@@ -51,7 +56,8 @@
     "standard-version": "^8.0.1",
     "ts-import-plugin": "^1.6.6",
     "typescript": "~3.9.3",
-    "vue-template-compiler": "^2.6.11"
+    "vue-template-compiler": "^2.6.11",
+    "yarn": "^1.22.4"
   },
   "husky": {
     "hooks": {

+ 4 - 6
vue.config.js

@@ -64,12 +64,10 @@ module.exports = {
     }
   },
   css: {
-    // extract: {
-    //   // filename: `css/[name].css?v=${s_version}`,
-    //   // chunkFilename: `css/[name].css?v=${s_version}`
-    //   filename: 'css/[name].[contenthash:10].css?v=[contenthash:8]',
-    //   chunkFilename: 'css/[name].[contenthash:10].css?v=[contenthash:8]'
-    // },
+    extract: {
+      filename: 'css/[name].[contenthash:10].css?v=[contenthash:8]',
+      chunkFilename: 'css/[name].[contenthash:10].css?v=[contenthash:8]'
+    },
     loaderOptions: {
       sass: {
         prependData: '@import "@/style/_mixin.scss";@import "@/style/_variables.scss";' // 全局引入

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 306 - 237
yarn.lock


Niektoré súbory nie sú zobrazené, pretože je v týchto rozdielových dátach zmenené mnoho súborov