From 3405e07d3103f03125b6e5fb9f6c11f90178b9b5 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Sat, 30 Apr 2016 23:41:54 +0300 Subject: [PATCH 1/3] Fix deployment script --- build/prepare_deploy.sh | 6 ++++++ 1 file changed, 6 insertions(+) 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 From da2ef67a66da70585e7558f29bdb4fe1ac24a732 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Sat, 30 Apr 2016 23:42:25 +0300 Subject: [PATCH 2/3] Enable mangling in uglify --- build/tasks/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From a8e36de95322aa3f1cf19b53578bf6fc3d171d12 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Sat, 30 Apr 2016 23:42:53 +0300 Subject: [PATCH 3/3] bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"