ci(custom): 增加小程序ci持续集成
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
# 开发版appid
|
# 开发版appid
|
||||||
TARO_APP_ID='wx7b3322daa2cf9c88'
|
TARO_APP_ID='wx7b3322daa2cf9c88'
|
||||||
|
|
||||||
|
# 开发版appkey
|
||||||
|
TARO_APP_KEY='1234567890'
|
||||||
|
|
||||||
# API接口
|
# API接口
|
||||||
TARO_APP_API='https://test.wanzhuanyongcheng.cn/app'
|
TARO_APP_API='https://test.wanzhuanyongcheng.cn/app'
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
# 正式版版appid
|
# 正式版版appid
|
||||||
TARO_APP_ID='wxdd00d46fa6f07974'
|
TARO_APP_ID='wxdd00d46fa6f07974'
|
||||||
|
|
||||||
|
# 开发版appkey
|
||||||
|
TARO_APP_KEY='private.wxdd00d46fa6f07974.key'
|
||||||
|
|
||||||
# API接口
|
# API接口
|
||||||
TARO_APP_API='https://www.wanzhuanyongcheng.cn/app'
|
TARO_APP_API='https://www.wanzhuanyongcheng.cn/app'
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
# 开发版appid
|
# 开发版appid
|
||||||
TARO_APP_ID='wx7b3322daa2cf9c88'
|
TARO_APP_ID='wx7b3322daa2cf9c88'
|
||||||
|
|
||||||
|
# 开发版appkey
|
||||||
|
TARO_APP_KEY='private.wx7b3322daa2cf9c88.key'
|
||||||
|
|
||||||
# API接口
|
# API接口
|
||||||
TARO_APP_API='https://test.wanzhuanyongcheng.cn/app'
|
TARO_APP_API='https://test.wanzhuanyongcheng.cn/app'
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,22 @@
|
|||||||
import Components from "unplugin-vue-components/webpack";
|
import Components from "unplugin-vue-components/webpack";
|
||||||
import NutUIResolver from "@nutui/nutui-taro/dist/resolver";
|
import NutUIResolver from "@nutui/nutui-taro/dist/resolver";
|
||||||
import { join } from "node:path";
|
import { join } from "node:path";
|
||||||
|
import { argv } from "yargs";
|
||||||
|
|
||||||
|
const { robot = 1, desc } = argv;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @typedef { import("@tarojs/plugin-mini-ci").CIOptions } CIOptions
|
||||||
|
* @type {CIOptions}
|
||||||
|
*/
|
||||||
|
const CIPluginOpt = {
|
||||||
|
weapp: {
|
||||||
|
appid: process.env.TARO_APP_ID,
|
||||||
|
privateKeyPath: process.env.TARO_APP_KEY,
|
||||||
|
robot,
|
||||||
|
},
|
||||||
|
desc,
|
||||||
|
};
|
||||||
|
|
||||||
const config = {
|
const config = {
|
||||||
projectName: "taroApp",
|
projectName: "taroApp",
|
||||||
@@ -20,7 +36,7 @@ const config = {
|
|||||||
},
|
},
|
||||||
sourceRoot: "src",
|
sourceRoot: "src",
|
||||||
outputRoot: "dist",
|
outputRoot: "dist",
|
||||||
plugins: ["@tarojs/plugin-html"],
|
plugins: ["@tarojs/plugin-html", ["@tarojs/plugin-mini-ci", CIPluginOpt]],
|
||||||
defineConstants: {},
|
defineConstants: {},
|
||||||
copy: {
|
copy: {
|
||||||
patterns: [],
|
patterns: [],
|
||||||
|
|||||||
221
package.json
221
package.json
@@ -1,110 +1,115 @@
|
|||||||
{
|
{
|
||||||
"name": "taroApp",
|
"name": "jdt-user",
|
||||||
"version": "1.0.0",
|
"version": "3.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "",
|
"description": "",
|
||||||
"templateInfo": {
|
"templateInfo": {
|
||||||
"name": "vue3-NutUI4",
|
"name": "jdt-user",
|
||||||
"typescript": true,
|
"typescript": true,
|
||||||
"css": "sass"
|
"css": "sass"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"taroConfig": {
|
||||||
"build:weapp": "taro build --type weapp",
|
"version": "3.0.0"
|
||||||
"build:test": "taro build --type weapp --mode test",
|
},
|
||||||
"build:swan": "taro build --type swan",
|
"scripts": {
|
||||||
"build:alipay": "taro build --type alipay",
|
"build:weapp": "taro build --type weapp",
|
||||||
"build:tt": "taro build --type tt",
|
"build:test": "taro build --type weapp --mode test",
|
||||||
"build:h5": "taro build --type h5",
|
"build:swan": "taro build --type swan",
|
||||||
"build:rn": "taro build --type rn",
|
"build:alipay": "taro build --type alipay",
|
||||||
"build:qq": "taro build --type qq",
|
"build:tt": "taro build --type tt",
|
||||||
"build:jd": "taro build --type jd",
|
"build:h5": "taro build --type h5",
|
||||||
"build:quickapp": "taro build --type quickapp",
|
"build:rn": "taro build --type rn",
|
||||||
"dev:weapp": "taro build --type weapp --watch",
|
"build:qq": "taro build --type qq",
|
||||||
"dev:swan": "npm run build:swan -- --watch",
|
"build:jd": "taro build --type jd",
|
||||||
"dev:alipay": "npm run build:alipay -- --watch",
|
"build:quickapp": "taro build --type quickapp",
|
||||||
"dev:tt": "npm run build:tt -- --watch",
|
"dev:weapp": "taro build --type weapp --watch",
|
||||||
"dev:h5": "npm run build:h5 -- --watch",
|
"dev:swan": "npm run build:swan -- --watch",
|
||||||
"dev:rn": "npm run build:rn -- --watch",
|
"dev:alipay": "npm run build:alipay -- --watch",
|
||||||
"dev:qq": "npm run build:qq -- --watch",
|
"dev:tt": "npm run build:tt -- --watch",
|
||||||
"dev:jd": "npm run build:jd -- --watch",
|
"dev:h5": "npm run build:h5 -- --watch",
|
||||||
"dev:quickapp": "npm run build:quickapp -- --watch",
|
"dev:rn": "npm run build:rn -- --watch",
|
||||||
"lint": "eslint --ext .ts,.vue .",
|
"dev:qq": "npm run build:qq -- --watch",
|
||||||
"lint:fix": "eslint --fix --ext .ts,.vue .",
|
"dev:jd": "npm run build:jd -- --watch",
|
||||||
"lint:staged": "lint-staged",
|
"dev:quickapp": "npm run build:quickapp -- --watch",
|
||||||
"prepare": "husky install",
|
"lint": "eslint --ext .ts,.vue .",
|
||||||
"preview": "vite preview",
|
"lint:fix": "eslint --fix --ext .ts,.vue .",
|
||||||
"cz": "cz",
|
"lint:staged": "lint-staged",
|
||||||
"lf": "npx prettier --write --end-of-line lf ."
|
"prepare": "husky install",
|
||||||
},
|
"preview": "vite preview",
|
||||||
"browserslist": [
|
"cz": "cz",
|
||||||
"last 3 versions",
|
"lf": "npx prettier --write --end-of-line lf .",
|
||||||
"Android >= 4.1",
|
"build:weapp:prod:upload": "taro build --type weapp --upload --robot=1 --desc='正式环境'",
|
||||||
"ios >= 8"
|
"build:weapp:test:upload": "taro build --type weapp --upload --robot=2 --desc='测试环境' --mode test"
|
||||||
],
|
},
|
||||||
"author": "",
|
"browserslist": [
|
||||||
"lint-staged": {
|
"last 3 versions",
|
||||||
"*.{ts,vue}": [
|
"Android >= 4.1",
|
||||||
"eslint --ext .ts,.vue .",
|
"ios >= 8"
|
||||||
"npx prettier --write --end-of-line lf ."
|
],
|
||||||
]
|
"author": "",
|
||||||
},
|
"lint-staged": {
|
||||||
"config": {
|
"*.{ts,vue}": [
|
||||||
"commitizen": {
|
"eslint --ext .ts,.vue .",
|
||||||
"path": "node_modules/cz-customizable"
|
"npx prettier --write --end-of-line lf ."
|
||||||
}
|
]
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"config": {
|
||||||
"@babel/runtime": "^7.23.2",
|
"commitizen": {
|
||||||
"@nutui/icons-vue-taro": "^0.0.9",
|
"path": "node_modules/cz-customizable"
|
||||||
"@nutui/nutui-taro": "^4.2.0",
|
}
|
||||||
"@qiun/vue-ucharts": "2.5.0-20230101",
|
},
|
||||||
"@tarojs/components": "3.6.19",
|
"dependencies": {
|
||||||
"@tarojs/helper": "3.6.19",
|
"@babel/runtime": "^7.23.2",
|
||||||
"@tarojs/plugin-framework-vue3": "3.6.19",
|
"@nutui/icons-vue-taro": "^0.0.9",
|
||||||
"@tarojs/plugin-html": "3.6.19",
|
"@nutui/nutui-taro": "^4.2.0",
|
||||||
"@tarojs/plugin-platform-alipay": "3.6.19",
|
"@qiun/vue-ucharts": "2.5.0-20230101",
|
||||||
"@tarojs/plugin-platform-h5": "3.6.19",
|
"@tarojs/components": "3.6.19",
|
||||||
"@tarojs/plugin-platform-jd": "3.6.19",
|
"@tarojs/helper": "3.6.19",
|
||||||
"@tarojs/plugin-platform-qq": "3.6.19",
|
"@tarojs/plugin-framework-vue3": "3.6.19",
|
||||||
"@tarojs/plugin-platform-swan": "3.6.19",
|
"@tarojs/plugin-html": "3.6.19",
|
||||||
"@tarojs/plugin-platform-tt": "3.6.19",
|
"@tarojs/plugin-platform-alipay": "3.6.19",
|
||||||
"@tarojs/plugin-platform-weapp": "3.6.19",
|
"@tarojs/plugin-platform-h5": "3.6.19",
|
||||||
"@tarojs/runtime": "3.6.19",
|
"@tarojs/plugin-platform-jd": "3.6.19",
|
||||||
"@tarojs/shared": "3.6.19",
|
"@tarojs/plugin-platform-qq": "3.6.19",
|
||||||
"@tarojs/taro": "3.6.19",
|
"@tarojs/plugin-platform-swan": "3.6.19",
|
||||||
"dayjs": "^1.11.10",
|
"@tarojs/plugin-platform-tt": "3.6.19",
|
||||||
"pinia": "^2.1.7",
|
"@tarojs/plugin-platform-weapp": "3.6.19",
|
||||||
"sentry-miniapp": "^0.12.0",
|
"@tarojs/runtime": "3.6.19",
|
||||||
"vue": "^3.3.8"
|
"@tarojs/shared": "3.6.19",
|
||||||
},
|
"@tarojs/taro": "3.6.19",
|
||||||
"devDependencies": {
|
"dayjs": "^1.11.10",
|
||||||
"@babel/core": "^7.23.3",
|
"pinia": "^2.1.7",
|
||||||
"@commitlint/cli": "^18.2.0",
|
"vue": "^3.3.8"
|
||||||
"@commitlint/config-conventional": "^18.1.0",
|
},
|
||||||
"@tarojs/cli": "3.6.19",
|
"devDependencies": {
|
||||||
"@tarojs/taro-loader": "3.6.19",
|
"@babel/core": "^7.23.3",
|
||||||
"@tarojs/webpack5-runner": "3.6.19",
|
"@commitlint/cli": "^18.2.0",
|
||||||
"@types/node": "^18.18.9",
|
"@commitlint/config-conventional": "^18.1.0",
|
||||||
"@types/webpack-env": "^1.18.4",
|
"@tarojs/cli": "3.6.19",
|
||||||
"@typescript-eslint/eslint-plugin": "^6.10.0",
|
"@tarojs/plugin-mini-ci": "^3.6.20",
|
||||||
"@typescript-eslint/parser": "^6.10.0",
|
"@tarojs/taro-loader": "3.6.19",
|
||||||
"@vue/babel-plugin-jsx": "^1.1.5",
|
"@tarojs/webpack5-runner": "3.6.19",
|
||||||
"@vue/compiler-sfc": "^3.3.8",
|
"@types/node": "^18.18.9",
|
||||||
"babel-preset-taro": "3.6.19",
|
"@types/webpack-env": "^1.18.4",
|
||||||
"commitizen": "^4.3.0",
|
"@typescript-eslint/eslint-plugin": "^6.10.0",
|
||||||
"css-loader": "3.4.2",
|
"@typescript-eslint/parser": "^6.10.0",
|
||||||
"cz-customizable": "^7.0.0",
|
"@vue/babel-plugin-jsx": "^1.1.5",
|
||||||
"eslint": "^8.53.0",
|
"@vue/compiler-sfc": "^3.3.8",
|
||||||
"eslint-config-taro": "3.6.19",
|
"babel-preset-taro": "3.6.19",
|
||||||
"eslint-plugin-vue": "^9.18.1",
|
"commitizen": "^4.3.0",
|
||||||
"husky": "^8.0.3",
|
"css-loader": "3.4.2",
|
||||||
"lint-staged": "^15.0.2",
|
"cz-customizable": "^7.0.0",
|
||||||
"style-loader": "1.3.0",
|
"eslint": "^8.53.0",
|
||||||
"stylelint": "9.3.0",
|
"eslint-config-taro": "3.6.19",
|
||||||
"ts-node": "^10.9.1",
|
"eslint-plugin-vue": "^9.18.1",
|
||||||
"typescript": "^4.9.5",
|
"husky": "^8.0.3",
|
||||||
"unplugin-vue-components": "^0.23.0",
|
"lint-staged": "^15.0.2",
|
||||||
"vue-loader": "^17.3.1",
|
"style-loader": "1.3.0",
|
||||||
"webpack": "^5.89.0"
|
"stylelint": "9.3.0",
|
||||||
}
|
"ts-node": "^10.9.1",
|
||||||
|
"typescript": "^4.9.5",
|
||||||
|
"unplugin-vue-components": "^0.23.0",
|
||||||
|
"vue-loader": "^17.3.1",
|
||||||
|
"webpack": "^5.89.0"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
4069
pnpm-lock.yaml
generated
4069
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
27
private.wx7b3322daa2cf9c88.key
Normal file
27
private.wx7b3322daa2cf9c88.key
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
-----BEGIN RSA PRIVATE KEY-----
|
||||||
|
MIIEpAIBAAKCAQEAqSpzKeiW3x8pHNgPNxnhx4wb5gyM21cJcwE5N+82iX0qMH2f
|
||||||
|
QcU8WVyHvuYDK9d7kuzDFSbFNsUUeUB/Mqt2rzZcrGyO/6cRUaV8hjXClf4vZGvK
|
||||||
|
gzMEExNzSIxwu+XYAur9FKm2h4J300PvmGD6zPGyr7pqYyzkSpltadRVsQebU1Cb
|
||||||
|
f+gCmyzQSDY+dk+0cNmPeSJxXdbj6PJpmU+PVe9CoWmfapRqV3aEDWhTlOvTUQwf
|
||||||
|
8bOoZn5r8a6H2W0HdNu0flMnoYWX/WNSTOF4izlaKOq7oRLnfjaefEO+WOUctzPE
|
||||||
|
HpWw/k/LyMZJCiGZVdczfVSkR2Jq4iMC4arrDwIDAQABAoIBABeCgsbMQEt59SjB
|
||||||
|
DjxGKI6m9imejOTez71f6ifP4vBwqLBchQmK87wnk+X/6WjqZY4hwWrrHHVkJlhD
|
||||||
|
kmnkUnY/Q9nirGzzNwD10ryENCrMTKHUKSzapjJQfbETc4dphf/B0LJSc7+ZbjW6
|
||||||
|
N04iDDj3TjIF4ksuLfwAHqiajd4wSpmiPFzwNFJSgNl86d3VuqnylPKDE0wG5yBf
|
||||||
|
54AXkxrnzhL+cGCBazE+mYQoSihpDt0JP4zGb8W1AoWmXNoTlbP5AiTcf/1nza92
|
||||||
|
HOd1IJN89YBgm707yEvY7pVsM5ftx8HlUtGopZq3DEBar3dTRT9+tGnLoOVyvbEF
|
||||||
|
dvgV/oECgYEA0dNsZvHuAXIG62dgj+hLTtqxbdi0BaqChj2Y/bhLBbzjlScfiCJ/
|
||||||
|
hczTSUMj1XAuYzZLXFHwEd7tZnXhhWOfALsFzodVoO6Zt5Y5lQ0Ed5d9GAg/JsDe
|
||||||
|
Z1nn6WMH5c7+1gfpN+dzZVK/AWYZgYhIiaVFeiC5XxE4/mfFClIT0HECgYEAzmRv
|
||||||
|
csA3WuuR9hSAl238g0bcDFjQS5I2tWJMRVDpA9m5A9tNCCIkh2Azn3LcGAnkPwbZ
|
||||||
|
mCt0/Ck3hZPV7v9nuPAP9uOUC0+nGIaJSxcbZpH944meiVs3J+VQGcS4ubrEcaQ+
|
||||||
|
KRT4fisnXI85/qc1r7XaziWgtCX7dvDHNFRQM38CgYEAuR2ZBp2siDPsbOTQaUXc
|
||||||
|
ot4IKUxFTrZm3z4a6sUb0x0Zf657gCRHc2kIgxsr0xNcqYTuKa3Uaj/OHFYluAPy
|
||||||
|
9LcLYXE+l3PJxBFSDfDlHwlUgM5NwMfpry6/jsUi45midHuYQwz8XskI4JgOKpxs
|
||||||
|
uptH135lbL0KFlDAouFUv9ECgYADsa6A+knDWdYJ9oH6s+BCJUGJAwnvYFWUV4cP
|
||||||
|
8ovJItt54zH0xE+tEJ676t1fnMW2DxRT8estHDu/K0838OBVYg6XF6mtriZKfRX1
|
||||||
|
/xrhchl+OhdZVAWftC4D2A6KXHppokvuhk6QS4tvz6x1D18ZnwKkj+3Za5idn1+h
|
||||||
|
YyTwVwKBgQCscqYudlBUyIuCnhxaaHNSwVDRvkYcncwIFGv8KMc9UChWehSj9mzb
|
||||||
|
qmrsA1iifR1SW0vrGzNnzDo67BYNYhme3uNs5cfv6jmeMDj79eOIABJtYICSzHx2
|
||||||
|
kzLzBtO804Q2CygVHae7qadf592Ex7b4CKfVVs4ZpqnknuoDKTWEGw==
|
||||||
|
-----END RSA PRIVATE KEY-----
|
||||||
27
private.wxdd00d46fa6f07974.key
Normal file
27
private.wxdd00d46fa6f07974.key
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
-----BEGIN RSA PRIVATE KEY-----
|
||||||
|
MIIEowIBAAKCAQEA5MJntNKGXv+0z6Imaz0P/uZM57LiQwwmv6fLNsE8EzsW5JPC
|
||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Up0XV7Zp0yUtvehI8ex31U5Zc2nKfr3+ILhRS2b
|
||||||
|
ZfoKX/3vQvItfpJfRlSZSpgt1Kl9XXE+O550eiiLAoGAXA2mt8y+oTtDJgE1n1eW
|
||||||
|
ipnnYlfLfbK4824kcwebyxIUhO4Kd8XjY8Th1u6an/GQYU4JUxOjTcsoJhZhicQa
|
||||||
|
I9fZpNlVS0DLsVuETH31MufrBdXUUXbSnVd7TeyFDKyPtneAuATxGjO0oqU2VonQ
|
||||||
|
OHuKXorMs+t4VeiQyNuWSIsCgYBtjF4ADHBzZtehncEr6o589BxOyw0M7hTd9B3V
|
||||||
|
xJxA4caR7/kMES/O/sj2rBjVyBCzhcL1OOb+/21TkSv7bP3VxOw2ppzFUXC4rRkQ
|
||||||
|
bRLIgp95KK0ASU0G2KKJkqCXFNQ7SRERyUMr5i85XyV6y/y3u+YDBOX9xiAPkjMn
|
||||||
|
YDgXrwKBgBlBiQxGI/JrzXgAoGox8sBmQcGplgnUL/QTJIiKugTbzfNA9STyW0E0
|
||||||
|
j+Zcp2vf4wLZwOUMD74gGhtAUDMhOB+RlOUTFSHcyOAJ+Se9pZPNcaY6tqiZNeVS
|
||||||
|
WsRqHJtoQkcUU2k+tCYXz2tib4R/FHgoL5QK/OkHRS61H481eWeZ
|
||||||
|
-----END RSA PRIVATE KEY-----
|
||||||
Reference in New Issue
Block a user