[MediaWiki-commits] [Gerrit] mediawiki...Popups[master]: Store map files under .json extension

2017-08-31 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/374590 )

Change subject: Store map files under .json extension
..


Store map files under .json extension

We cannot serve .map files from production servers. This makes
Popups extension difficult to debug. As a simplest solution we
decided to store map files as .json files so we can easily access
js maps files.

Changes:
 - changed webpack config to store map files under .json extension

Bug: T173491
Change-Id: Iaa55f75a8c5f3e8f1f169b3ac33241cc54f0413f
---
M resources/dist/index.js
R resources/dist/index.js.json
M webpack.config.js
3 files changed, 5 insertions(+), 2 deletions(-)

Approvals:
  Jhernandez: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/resources/dist/index.js b/resources/dist/index.js
index 8024579..319a410 100644
--- a/resources/dist/index.js
+++ b/resources/dist/index.js
@@ -1,3 +1,3 @@
 /*@nomin*/
 !function(e){function t(i){if(n[i])return n[i].exports;var 
r=n[i]={i:i,l:!1,exports:{}};return 
e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var 
n={};t.m=e,t.c=n,t.i=function(e){return 
e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var
 n=e&__esModule?function(){return e.default}:function(){return e};return 
t.d(n,"a",n),n},t.o=function(e,t){return 
Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s="./src/index.js")}({"./node_modules/redux-thunk/dist/redux-thunk.min.js":function(e,t,n){!function(t,n){e.exports=n()}(0,function(){return
 function(e){function t(i){if(n[i])return n[i].exports;var 
r=n[i]={exports:{},id:i,loaded:!1};return 
e[i].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return 
t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(1)},function(e,t){"use 
strict";function n(e){return function(t){var n=t.dispatch,i=t.getState;return 
function(t){return function(r){return"function"==typeof 
r?r(n,i,e):t(r)t.__esModule=!0;var 
i=n();i.withExtraArgument=n,t.default=i}])})},"./node_modules/redux/dist/redux.min.js":function(e,t,n){!function(t,n){e.exports=n()}(0,function(){return
 function(e){function t(i){if(n[i])return n[i].exports;var 
r=n[i]={exports:{},id:i,loaded:!1};return 
e[i].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return 
t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function i(e){return 
e&__esModule?e:{default:e}}t.__esModule=!0,t.compose=t.applyMiddleware=t.bindActionCreators=t.combineReducers=t.createStore=void
 0;var 
r=n(2),o=i(r),s=n(7),a=i(s),u=n(6),c=i(u),p=n(5),l=i(p),d=n(1),f=i(d);i(n(3)),t.createStore=o.default,t.combineReducers=a.default,t.bindActionCreators=c.default,t.applyMiddleware=l.default,t.compose=f.default},function(e,t){"use
 strict";function n(){for(var 
e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];if(0===t.length)return
 function(e){return e};if(1===t.length)return t[0];var 
i=t[t.length-1],r=t.slice(0,-1);return function(){return 
r.reduceRight(function(e,t){return t(e)},i.apply(void 
0,arguments))}}t.__esModule=!0,t.default=n},function(e,t,n){"use 
strict";function i(e){return e&__esModule?e:{default:e}}function 
r(e,t,n){function i(){w===v&&(w=v.slice())}function o(){return h}function 
a(e){if("function"!=typeof e)throw Error("Expected listener to be a 
function.");var t=!0;return i(),w.push(e),function(){if(t){t=!1,i();var 
n=w.indexOf(e);w.splice(n,1)}}}function p(e){if(!(0,s.default)(e))throw 
Error("Actions must be plain objects. Use custom middleware for async 
actions.");if(void 0===e.type)throw Error('Actions may not have an undefined 
"type" property. Have you misspelled a constant?');if(m)throw Error("Reducers 
may not dispatch actions.");try{m=!0,h=g(h,e)}finally{m=!1}for(var 
t=v=w,n=0;t.length>n;n++)t[n]();return e}function l(e){if("function"!=typeof 
e)throw Error("Expected the nextReducer to be a 
function.");g=e,p({type:c.INIT})}function d(){var e,t=a;return 
e={subscribe:function(e){function n(){e.next&(o())}if("object"!=typeof 
e)throw new TypeError("Expected the observer to be an object.");return 
n(),{unsubscribe:t(n)}}},e[u.default]=function(){return this},e}var 
f;if("function"==typeof t& 0===n&&(n=t,t=void 0),void 
0!==n){if("function"!=typeof n)throw Error("Expected the enhancer to be a 
function.");return n(r)(e,t)}if("function"!=typeof e)throw Error("Expected the 
reducer to be a function.");var g=e,h=t,v=[],w=v,m=!1;return 
p({type:c.INIT}),f={dispatch:p,subscribe:a,getState:o,replaceReducer:l},f[u.default]=d,f}t.__esModule=!0,t.ActionTypes=void
 0,t.default=r;var 
o=n(4),s=i(o),a=n(12),u=i(a),c=t.ActionTypes={INIT:"@@redux/INIT"}},function(e,t){"use
 strict";function n(e){"undefined"!=typeof console&&"function"==typeof 
console.error&(e);try{throw 
Error(e)}catch(e){}}t.__esModule=!0,t.default=n},function(e,t,n){function 
i(e){if(!s(e)||f.call(e)!=a||o(e))return!1;var 

[MediaWiki-commits] [Gerrit] mediawiki...Popups[master]: Store map files under .json extension

2017-08-29 Thread Pmiazga (Code Review)
Pmiazga has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/374590 )

Change subject: Store map files under .json extension
..

Store map files under .json extension

We cannot serve .map files from production servers. This makes
Popups extension difficult to debug. As a simplest solution we
decided to store map files as .json files so we can easily access
js maps files.

Changes:
 - changed webpack config to store map files under .json extension

Bug: T173491
Change-Id: Iaa55f75a8c5f3e8f1f169b3ac33241cc54f0413f
---
M resources/dist/index.js
R resources/dist/index.js.json
C resources/dist/index.js.map.json
M webpack.config.js
4 files changed, 5 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Popups 
refs/changes/90/374590/1

diff --git a/resources/dist/index.js b/resources/dist/index.js
index 8024579..319a410 100644
--- a/resources/dist/index.js
+++ b/resources/dist/index.js
@@ -1,3 +1,3 @@
 /*@nomin*/
 !function(e){function t(i){if(n[i])return n[i].exports;var 
r=n[i]={i:i,l:!1,exports:{}};return 
e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var 
n={};t.m=e,t.c=n,t.i=function(e){return 
e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var
 n=e&__esModule?function(){return e.default}:function(){return e};return 
t.d(n,"a",n),n},t.o=function(e,t){return 
Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s="./src/index.js")}({"./node_modules/redux-thunk/dist/redux-thunk.min.js":function(e,t,n){!function(t,n){e.exports=n()}(0,function(){return
 function(e){function t(i){if(n[i])return n[i].exports;var 
r=n[i]={exports:{},id:i,loaded:!1};return 
e[i].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return 
t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(1)},function(e,t){"use 
strict";function n(e){return function(t){var n=t.dispatch,i=t.getState;return 
function(t){return function(r){return"function"==typeof 
r?r(n,i,e):t(r)t.__esModule=!0;var 
i=n();i.withExtraArgument=n,t.default=i}])})},"./node_modules/redux/dist/redux.min.js":function(e,t,n){!function(t,n){e.exports=n()}(0,function(){return
 function(e){function t(i){if(n[i])return n[i].exports;var 
r=n[i]={exports:{},id:i,loaded:!1};return 
e[i].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return 
t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function i(e){return 
e&__esModule?e:{default:e}}t.__esModule=!0,t.compose=t.applyMiddleware=t.bindActionCreators=t.combineReducers=t.createStore=void
 0;var 
r=n(2),o=i(r),s=n(7),a=i(s),u=n(6),c=i(u),p=n(5),l=i(p),d=n(1),f=i(d);i(n(3)),t.createStore=o.default,t.combineReducers=a.default,t.bindActionCreators=c.default,t.applyMiddleware=l.default,t.compose=f.default},function(e,t){"use
 strict";function n(){for(var 
e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];if(0===t.length)return
 function(e){return e};if(1===t.length)return t[0];var 
i=t[t.length-1],r=t.slice(0,-1);return function(){return 
r.reduceRight(function(e,t){return t(e)},i.apply(void 
0,arguments))}}t.__esModule=!0,t.default=n},function(e,t,n){"use 
strict";function i(e){return e&__esModule?e:{default:e}}function 
r(e,t,n){function i(){w===v&&(w=v.slice())}function o(){return h}function 
a(e){if("function"!=typeof e)throw Error("Expected listener to be a 
function.");var t=!0;return i(),w.push(e),function(){if(t){t=!1,i();var 
n=w.indexOf(e);w.splice(n,1)}}}function p(e){if(!(0,s.default)(e))throw 
Error("Actions must be plain objects. Use custom middleware for async 
actions.");if(void 0===e.type)throw Error('Actions may not have an undefined 
"type" property. Have you misspelled a constant?');if(m)throw Error("Reducers 
may not dispatch actions.");try{m=!0,h=g(h,e)}finally{m=!1}for(var 
t=v=w,n=0;t.length>n;n++)t[n]();return e}function l(e){if("function"!=typeof 
e)throw Error("Expected the nextReducer to be a 
function.");g=e,p({type:c.INIT})}function d(){var e,t=a;return 
e={subscribe:function(e){function n(){e.next&(o())}if("object"!=typeof 
e)throw new TypeError("Expected the observer to be an object.");return 
n(),{unsubscribe:t(n)}}},e[u.default]=function(){return this},e}var 
f;if("function"==typeof t& 0===n&&(n=t,t=void 0),void 
0!==n){if("function"!=typeof n)throw Error("Expected the enhancer to be a 
function.");return n(r)(e,t)}if("function"!=typeof e)throw Error("Expected the 
reducer to be a function.");var g=e,h=t,v=[],w=v,m=!1;return 
p({type:c.INIT}),f={dispatch:p,subscribe:a,getState:o,replaceReducer:l},f[u.default]=d,f}t.__esModule=!0,t.ActionTypes=void
 0,t.default=r;var 
o=n(4),s=i(o),a=n(12),u=i(a),c=t.ActionTypes={INIT:"@@redux/INIT"}},function(e,t){"use
 strict";function n(e){"undefined"!=typeof console&&"function"==typeof 
console.error&(e);try{throw 
Error(e)}catch(e){}}t.__esModule=!0,t.default=n},function(e,t,n){function