diff --git a/build/prepare_deploy.sh b/build/prepare_deploy.sh index 137f404c..f180a36e 100755 --- a/build/prepare_deploy.sh +++ b/build/prepare_deploy.sh @@ -1,11 +1,17 @@ #!/bin/bash set -e set -x +# copy old releases mkdir -p .ghpages-tmp && cd .ghpages-tmp +# reset local changes before checkout +git reset --hard +git fetch origin gh-pages:gh-pages git checkout gh-pages cp -R ../releases/* . git checkout master cd - + +# build gulp build cd demo cp -R ../dist ./dist diff --git a/build/tasks/build.js b/build/tasks/build.js index 6897c0a0..69fc44a9 100644 --- a/build/tasks/build.js +++ b/build/tasks/build.js @@ -90,7 +90,7 @@ function bundle(outputFile, minify, cb) { builder .buildStatic(path.join(paths.tmp, paths.sourceEntryPoint), outputFile, - { format:'umd', sourceMaps: true, mangle: false, lowResSourceMaps: true, minify: minify } + { format:'umd', sourceMaps: true, lowResSourceMaps: true, minify: minify } ) .then(function() { // wait some time to allow flush diff --git a/package.json b/package.json index 10220d92..fbb37100 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "redoc", "description": "Swagger-generated API Reference Documentation", - "version": "0.7.15", + "version": "0.8.0", "repository": { "type": "git", "url": "git://github.com/Rebilly/ReDoc"