From ef32585f57f167fff33cab614cdae8f373f78cd5 Mon Sep 17 00:00:00 2001 From: Markus Heberling Date: Tue, 22 Aug 2017 08:10:09 +0200 Subject: [PATCH] create JS source maps (#4365) updated minify plugin to 1.7.6 switch minify plugin to use CLOSURE compiler enable source map generation https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k include source maps in distribution files --- adapters/oidc/js/pom.xml | 5 +++++ adapters/oidc/js/src/main/resources/keycloak.js | 2 +- distribution/adapters/js-adapter-zip/assembly.xml | 1 + distribution/adapters/js-adapter-zip/pom.xml | 2 +- pom.xml | 2 +- 5 files changed, 9 insertions(+), 3 deletions(-) diff --git a/adapters/oidc/js/pom.xml b/adapters/oidc/js/pom.xml index 8b4cc6789c..f1b83c17ad 100755 --- a/adapters/oidc/js/pom.xml +++ b/adapters/oidc/js/pom.xml @@ -38,6 +38,11 @@ com.samaxes.maven minify-maven-plugin + + CLOSURE + ECMASCRIPT5 + true + min-js diff --git a/adapters/oidc/js/src/main/resources/keycloak.js b/adapters/oidc/js/src/main/resources/keycloak.js index 04d76e5718..ab6f78826a 100755 --- a/adapters/oidc/js/src/main/resources/keycloak.js +++ b/adapters/oidc/js/src/main/resources/keycloak.js @@ -221,7 +221,7 @@ var callbackState = { state: state, nonce: nonce, - redirectUri: encodeURIComponent(redirectUri), + redirectUri: encodeURIComponent(redirectUri) } if (options && options.prompt) { diff --git a/distribution/adapters/js-adapter-zip/assembly.xml b/distribution/adapters/js-adapter-zip/assembly.xml index 14e0cc00b6..8111f783ea 100755 --- a/distribution/adapters/js-adapter-zip/assembly.xml +++ b/distribution/adapters/js-adapter-zip/assembly.xml @@ -30,6 +30,7 @@ **/*.js + **/*.map **/*.d.ts **/*.html diff --git a/distribution/adapters/js-adapter-zip/pom.xml b/distribution/adapters/js-adapter-zip/pom.xml index be37dc8729..8dcee562ae 100755 --- a/distribution/adapters/js-adapter-zip/pom.xml +++ b/distribution/adapters/js-adapter-zip/pom.xml @@ -50,7 +50,7 @@ org.keycloak keycloak-js-adapter ${project.build.directory}/unpacked/js-adapter - *.js,*.d.ts + *.js,*.map,*.d.ts **/welcome-content/* diff --git a/pom.xml b/pom.xml index d4d990411e..7389fa745f 100755 --- a/pom.xml +++ b/pom.xml @@ -120,7 +120,7 @@ 7.5.Final 1.9.0 1.0.4 - 1.7.2 + 1.7.6 2.3.7 1.1.0.Final 1.6.5