mirror of https://github.com/ElemeFE/element
parent
7d30469fde
commit
2cd115428e
|
@ -1,6 +1,6 @@
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
var version = process.env.VERSION || require('../../package.json').version;
|
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' };
|
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.7';
|
if (!content[version]) content[version] = '2.8';
|
||||||
fs.writeFileSync(path.resolve(__dirname, '../../examples/versions.json'), JSON.stringify(content));
|
fs.writeFileSync(path.resolve(__dirname, '../../examples/versions.json'), JSON.stringify(content));
|
||||||
|
|
|
@ -40,7 +40,7 @@ if [ "$TRAVIS_TAG" ]; then
|
||||||
# build sub folder
|
# build sub folder
|
||||||
echo $TRAVIS_TAG
|
echo $TRAVIS_TAG
|
||||||
|
|
||||||
SUB_FOLDER='2.7'
|
SUB_FOLDER='2.8'
|
||||||
mkdir $SUB_FOLDER
|
mkdir $SUB_FOLDER
|
||||||
rm -rf *.js *.css *.map static
|
rm -rf *.js *.css *.map static
|
||||||
rm -rf $SUB_FOLDER/**
|
rm -rf $SUB_FOLDER/**
|
||||||
|
|
|
@ -6,7 +6,7 @@ cd temp_web
|
||||||
git clone --depth 1 -b gh-pages --single-branch https://github.com/ElemeFE/element.git && cd element
|
git clone --depth 1 -b gh-pages --single-branch https://github.com/ElemeFE/element.git && cd element
|
||||||
|
|
||||||
# build sub folder
|
# build sub folder
|
||||||
SUB_FOLDER='2.7'
|
SUB_FOLDER='2.8'
|
||||||
mkdir -p $SUB_FOLDER
|
mkdir -p $SUB_FOLDER
|
||||||
rm -rf *.js *.css *.map static
|
rm -rf *.js *.css *.map static
|
||||||
rm -rf $SUB_FOLDER/**
|
rm -rf $SUB_FOLDER/**
|
||||||
|
|
Loading…
Reference in New Issue