mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-05 19:41:45 +08:00
build(ci): use miniprogram-ci to upload example
This commit is contained in:
parent
8c31d81080
commit
00d16130d9
1
.gitignore
vendored
1
.gitignore
vendored
@ -9,3 +9,4 @@ example/dist
|
|||||||
.history
|
.history
|
||||||
changelog.generated.md
|
changelog.generated.md
|
||||||
package-lock.json
|
package-lock.json
|
||||||
|
build/private.wx1c01b35002d3ba14.key
|
||||||
|
19
build/upload.js
Normal file
19
build/upload.js
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
const ci = require('miniprogram-ci');
|
||||||
|
const path = require('path');
|
||||||
|
const config = require('../example/project.config.json');
|
||||||
|
const package = require('../package.json');
|
||||||
|
|
||||||
|
const project = new ci.Project({
|
||||||
|
appid: config.appid,
|
||||||
|
type: 'miniProgram',
|
||||||
|
projectPath: path.join(__dirname, '../example'),
|
||||||
|
privateKeyPath: path.join(__dirname, './private.wx1c01b35002d3ba14.key'),
|
||||||
|
ignores: ['node_modules/**/*'],
|
||||||
|
});
|
||||||
|
|
||||||
|
ci.upload({
|
||||||
|
project,
|
||||||
|
version: package.version,
|
||||||
|
desc: package.description,
|
||||||
|
setting: config.setting,
|
||||||
|
});
|
@ -14,7 +14,8 @@
|
|||||||
"release": "sh build/release.sh",
|
"release": "sh build/release.sh",
|
||||||
"release:site": "sh build/release-site.sh",
|
"release:site": "sh build/release-site.sh",
|
||||||
"build:lib": "yarn && npx gulp -f build/compiler.js --series buildEs buildLib",
|
"build:lib": "yarn && npx gulp -f build/compiler.js --series buildEs buildLib",
|
||||||
"build:changelog": "vant changelog --tag v1.1.0 ./docs/markdown/changelog.generated.md"
|
"build:changelog": "vant changelog --tag v1.1.0 ./docs/markdown/changelog.generated.md",
|
||||||
|
"upload:weapp": "node build/upload.js"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"dist",
|
"dist",
|
||||||
@ -68,6 +69,7 @@
|
|||||||
"less-loader": "^5.0.0",
|
"less-loader": "^5.0.0",
|
||||||
"lint-staged": "^10.0.0",
|
"lint-staged": "^10.0.0",
|
||||||
"miniprogram-api-typings": "2.10.4",
|
"miniprogram-api-typings": "2.10.4",
|
||||||
|
"miniprogram-ci": "^1.0.27",
|
||||||
"postcss-loader": "^3.0.0",
|
"postcss-loader": "^3.0.0",
|
||||||
"prettier": "^2.0.5",
|
"prettier": "^2.0.5",
|
||||||
"progress-bar-webpack-plugin": "^1.11.0",
|
"progress-bar-webpack-plugin": "^1.11.0",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user