From edae2e3ad10edce81a701d9c5ffbc9f2041d4d99 Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Sun, 11 Apr 2021 16:22:38 +0800 Subject: [PATCH] build: update release script --- .gitignore | 1 + build/release-site.sh | 10 ---------- build/release.sh | 3 +++ package.json | 10 ++-------- 4 files changed, 6 insertions(+), 18 deletions(-) delete mode 100644 build/release-site.sh diff --git a/.gitignore b/.gitignore index 407a6458..9378d478 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ .idea .vscode node_modules +site docs/dist example/dist .history diff --git a/build/release-site.sh b/build/release-site.sh deleted file mode 100644 index eec1db68..00000000 --- a/build/release-site.sh +++ /dev/null @@ -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 diff --git a/build/release.sh b/build/release.sh index bf4f3869..75d0b041 100644 --- a/build/release.sh +++ b/build/release.sh @@ -36,4 +36,7 @@ then git checkout dev git rebase master git push origin dev + + # changelog + vant-cli changelog fi diff --git a/package.json b/package.json index 88cc8221..936571d8 100644 --- a/package.json +++ b/package.json @@ -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": {} + ] }