From b5532f888b2c4bff32c52b21cd12104b24902dc1 Mon Sep 17 00:00:00 2001 From: cl199793 Date: Thu, 30 May 2019 11:07:28 +0800 Subject: [PATCH] Chore: update build script --- build/bin/version.js | 4 ++-- build/deploy-ci.sh | 2 +- build/deploy-faas.sh | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build/bin/version.js b/build/bin/version.js index 8b130271ce..87971fcf51 100644 --- a/build/bin/version.js +++ b/build/bin/version.js @@ -1,6 +1,6 @@ var fs = require('fs'); var path = require('path'); var version = process.env.VERSION || require('../../package.json').version; -var content = { '1.4.13': '1.4', '2.0.11': '2.0', '2.1.0': '2.1', '2.2.2': '2.2', '2.3.9': '2.3', '2.4.11': '2.4', '2.5.4': '2.5', '2.6.3': '2.6', '2.7': '2.7.2' }; -if (!content[version]) content[version] = '2.8'; +var content = { '1.4.13': '1.4', '2.0.11': '2.0', '2.1.0': '2.1', '2.2.2': '2.2', '2.3.9': '2.3', '2.4.11': '2.4', '2.5.4': '2.5', '2.6.3': '2.6', '2.7.2': '2.7', '2.8.2': '2.8' }; +if (!content[version]) content[version] = '2.9'; fs.writeFileSync(path.resolve(__dirname, '../../examples/versions.json'), JSON.stringify(content)); diff --git a/build/deploy-ci.sh b/build/deploy-ci.sh index a0fcb0b872..a4487f9858 100644 --- a/build/deploy-ci.sh +++ b/build/deploy-ci.sh @@ -40,7 +40,7 @@ if [ "$TRAVIS_TAG" ]; then # build sub folder echo $TRAVIS_TAG - SUB_FOLDER='2.8' + SUB_FOLDER='2.9' mkdir $SUB_FOLDER rm -rf *.js *.css *.map static rm -rf $SUB_FOLDER/** diff --git a/build/deploy-faas.sh b/build/deploy-faas.sh index 10de7f85bc..8a0c642b78 100644 --- a/build/deploy-faas.sh +++ b/build/deploy-faas.sh @@ -6,7 +6,7 @@ cd temp_web git clone --depth 1 -b gh-pages --single-branch https://github.com/ElemeFE/element.git && cd element # build sub folder -SUB_FOLDER='2.8' +SUB_FOLDER='2.9' mkdir -p $SUB_FOLDER rm -rf *.js *.css *.map static rm -rf $SUB_FOLDER/** @@ -16,4 +16,4 @@ cd ../.. # deploy domestic site faas deploy alpha -P element -rm -rf temp_web \ No newline at end of file +rm -rf temp_web