build: update release script

This commit is contained in:
chenjiahan 2021-04-11 16:22:38 +08:00 committed by neverland
parent 2417219266
commit edae2e3ad1
4 changed files with 6 additions and 18 deletions

1
.gitignore vendored
View File

@ -4,6 +4,7 @@
.idea
.vscode
node_modules
site
docs/dist
example/dist
.history

View File

@ -1,10 +0,0 @@
#!/usr/bin/env sh
rm -rf docs/dist
npx cross-env NODE_ENV=production webpack --config build/webpack.doc.prd.js
superman-cdn /vant-weapp ./docs/dist/*.js
rm -rf docs/dist/*.js
gh-pages -d docs/dist --add

View File

@ -36,4 +36,7 @@ then
git checkout dev
git rebase master
git push origin dev
# changelog
vant-cli changelog
fi

View File

@ -13,7 +13,7 @@
"lint": "eslint ./packages --ext .js,.ts --fix && stylelint \"packages/**/*.less\" --fix",
"prepare": "husky install",
"release": "sh build/release.sh",
"release:site": "sh build/release-site.sh",
"release:site": "vant-cli build-site && gh-pages -d site --add",
"build:lib": "yarn && npx gulp -f build/compiler.js --series buildEs buildLib",
"build:changelog": "vant-cli changelog",
"upload:weapp": "node build/upload.js"
@ -40,19 +40,14 @@
"devDependencies": {
"@vant/cli": "^3.10.0",
"@vant/icons": "1.5.2",
"cross-env": "^7.0.0",
"cssnano": "^4.1.10",
"gh-pages": "^3.0.0",
"gulp": "^4.0.2",
"gulp-insert": "^0.5.0",
"gulp-less": "^4.0.1",
"gulp-postcss": "^9.0.0",
"gulp-rename": "^2.0.0",
"less": "^3.9.0",
"lint-staged": "^10.0.0",
"miniprogram-api-typings": "^3.1.6",
"miniprogram-ci": "^1.0.27",
"prettier": "^2.0.5",
"tscpaths": "^0.0.9",
"vue": "^3.0.0",
"@vue/compiler-sfc": "^3.0.0"
@ -65,6 +60,5 @@
"Chrome >= 53",
"ChromeAndroid >= 53",
"iOS >= 8"
],
"dependencies": {}
]
}