From e058da37931023faf62b86bd0a550162176ec7e9 Mon Sep 17 00:00:00 2001 From: Justin Gordon Date: Tue, 19 Jul 2016 15:07:36 -1000 Subject: [PATCH] Make the vendor bundle hold vendor code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit By setting the vendor libs as entry points, we force the vendor code into the vendor-bundle.js. This has the advantage in that app code should be changing less often, so client browsers will have the vendor bundle cached longer, and the smaller app bundle can be refreshed. Warning on what gets included: If in your vendor array you have react-router and somewhere in the codebase you import react-router/es6 — this import won't get to vendor bundle. --- client/npm-shrinkwrap.json | 356 +++++++++++++++++++++------ client/package.json | 1 - client/webpack.client.base.config.js | 16 ++ package.json | 1 + 4 files changed, 299 insertions(+), 75 deletions(-) diff --git a/client/npm-shrinkwrap.json b/client/npm-shrinkwrap.json index 5d87b6ca6..87b5f64b4 100644 --- a/client/npm-shrinkwrap.json +++ b/client/npm-shrinkwrap.json @@ -49,6 +49,11 @@ "from": "alphanum-sort@>=1.0.1 <2.0.0", "resolved": "https://registry.npmjs.org/alphanum-sort/-/alphanum-sort-1.0.2.tgz" }, + "alter": { + "version": "0.2.0", + "from": "alter@>=0.2.0 <0.3.0", + "resolved": "https://registry.npmjs.org/alter/-/alter-0.2.0.tgz" + }, "amdefine": { "version": "1.0.0", "from": "amdefine@>=0.0.4", @@ -164,6 +169,16 @@ "from": "assertion-error@>=1.0.1 <2.0.0", "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.0.1.tgz" }, + "ast-traverse": { + "version": "0.1.1", + "from": "ast-traverse@>=0.1.1 <0.2.0", + "resolved": "https://registry.npmjs.org/ast-traverse/-/ast-traverse-0.1.1.tgz" + }, + "ast-types": { + "version": "0.8.12", + "from": "ast-types@0.8.12", + "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.8.12.tgz" + }, "async": { "version": "1.5.2", "from": "async@>=1.4.0 <2.0.0", @@ -607,6 +622,43 @@ } } }, + "babel-jscs": { + "version": "2.0.5", + "from": "babel-jscs@>=2.0.0 <3.0.0", + "resolved": "https://registry.npmjs.org/babel-jscs/-/babel-jscs-2.0.5.tgz", + "dependencies": { + "babel-core": { + "version": "5.8.38", + "from": "babel-core@>=5.8.3 <5.9.0", + "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-5.8.38.tgz" + }, + "babylon": { + "version": "5.8.38", + "from": "babylon@>=5.8.38 <6.0.0", + "resolved": "https://registry.npmjs.org/babylon/-/babylon-5.8.38.tgz" + }, + "bluebird": { + "version": "2.10.2", + "from": "bluebird@>=2.9.33 <3.0.0", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-2.10.2.tgz" + }, + "globals": { + "version": "6.4.1", + "from": "globals@>=6.4.0 <7.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-6.4.1.tgz" + }, + "js-tokens": { + "version": "1.0.1", + "from": "js-tokens@1.0.1", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-1.0.1.tgz" + }, + "lodash": { + "version": "3.10.1", + "from": "lodash@^3.10.0", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz" + } + } + }, "babel-loader": { "version": "6.2.4", "from": "babel-loader@>=6.2.4 <7.0.0", @@ -622,6 +674,78 @@ "from": "babel-plugin-check-es2015-constants@>=6.3.13 <7.0.0", "resolved": "https://registry.npmjs.org/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.8.0.tgz" }, + "babel-plugin-constant-folding": { + "version": "1.0.1", + "from": "babel-plugin-constant-folding@>=1.0.1 <2.0.0", + "resolved": "https://registry.npmjs.org/babel-plugin-constant-folding/-/babel-plugin-constant-folding-1.0.1.tgz" + }, + "babel-plugin-dead-code-elimination": { + "version": "1.0.2", + "from": "babel-plugin-dead-code-elimination@>=1.0.2 <2.0.0", + "resolved": "https://registry.npmjs.org/babel-plugin-dead-code-elimination/-/babel-plugin-dead-code-elimination-1.0.2.tgz" + }, + "babel-plugin-eval": { + "version": "1.0.1", + "from": "babel-plugin-eval@>=1.0.1 <2.0.0", + "resolved": "https://registry.npmjs.org/babel-plugin-eval/-/babel-plugin-eval-1.0.1.tgz" + }, + "babel-plugin-inline-environment-variables": { + "version": "1.0.1", + "from": "babel-plugin-inline-environment-variables@>=1.0.1 <2.0.0", + "resolved": "https://registry.npmjs.org/babel-plugin-inline-environment-variables/-/babel-plugin-inline-environment-variables-1.0.1.tgz" + }, + "babel-plugin-jscript": { + "version": "1.0.4", + "from": "babel-plugin-jscript@>=1.0.4 <2.0.0", + "resolved": "https://registry.npmjs.org/babel-plugin-jscript/-/babel-plugin-jscript-1.0.4.tgz" + }, + "babel-plugin-member-expression-literals": { + "version": "1.0.1", + "from": "babel-plugin-member-expression-literals@>=1.0.1 <2.0.0", + "resolved": "https://registry.npmjs.org/babel-plugin-member-expression-literals/-/babel-plugin-member-expression-literals-1.0.1.tgz" + }, + "babel-plugin-property-literals": { + "version": "1.0.1", + "from": "babel-plugin-property-literals@>=1.0.1 <2.0.0", + "resolved": "https://registry.npmjs.org/babel-plugin-property-literals/-/babel-plugin-property-literals-1.0.1.tgz" + }, + "babel-plugin-proto-to-assign": { + "version": "1.0.4", + "from": "babel-plugin-proto-to-assign@>=1.0.3 <2.0.0", + "resolved": "https://registry.npmjs.org/babel-plugin-proto-to-assign/-/babel-plugin-proto-to-assign-1.0.4.tgz", + "dependencies": { + "lodash": { + "version": "3.10.1", + "from": "lodash@^3.9.3", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz" + } + } + }, + "babel-plugin-react-constant-elements": { + "version": "1.0.3", + "from": "babel-plugin-react-constant-elements@>=1.0.3 <2.0.0", + "resolved": "https://registry.npmjs.org/babel-plugin-react-constant-elements/-/babel-plugin-react-constant-elements-1.0.3.tgz" + }, + "babel-plugin-react-display-name": { + "version": "1.0.3", + "from": "babel-plugin-react-display-name@>=1.0.3 <2.0.0", + "resolved": "https://registry.npmjs.org/babel-plugin-react-display-name/-/babel-plugin-react-display-name-1.0.3.tgz" + }, + "babel-plugin-remove-console": { + "version": "1.0.1", + "from": "babel-plugin-remove-console@>=1.0.1 <2.0.0", + "resolved": "https://registry.npmjs.org/babel-plugin-remove-console/-/babel-plugin-remove-console-1.0.1.tgz" + }, + "babel-plugin-remove-debugger": { + "version": "1.0.1", + "from": "babel-plugin-remove-debugger@>=1.0.1 <2.0.0", + "resolved": "https://registry.npmjs.org/babel-plugin-remove-debugger/-/babel-plugin-remove-debugger-1.0.1.tgz" + }, + "babel-plugin-runtime": { + "version": "1.0.7", + "from": "babel-plugin-runtime@>=1.0.7 <2.0.0", + "resolved": "https://registry.npmjs.org/babel-plugin-runtime/-/babel-plugin-runtime-1.0.7.tgz" + }, "babel-plugin-syntax-async-functions": { "version": "6.8.0", "from": "babel-plugin-syntax-async-functions@>=6.3.13 <7.0.0", @@ -1143,6 +1267,16 @@ } } }, + "babel-plugin-undeclared-variables-check": { + "version": "1.0.2", + "from": "babel-plugin-undeclared-variables-check@>=1.0.2 <2.0.0", + "resolved": "https://registry.npmjs.org/babel-plugin-undeclared-variables-check/-/babel-plugin-undeclared-variables-check-1.0.2.tgz" + }, + "babel-plugin-undefined-to-void": { + "version": "1.1.6", + "from": "babel-plugin-undefined-to-void@>=1.1.6 <2.0.0", + "resolved": "https://registry.npmjs.org/babel-plugin-undefined-to-void/-/babel-plugin-undefined-to-void-1.1.6.tgz" + }, "babel-polyfill": { "version": "6.9.1", "from": "babel-polyfill@>=6.9.1 <7.0.0", @@ -1359,6 +1493,11 @@ "from": "braces@>=1.8.2 <2.0.0", "resolved": "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz" }, + "breakable": { + "version": "1.0.0", + "from": "breakable@>=1.0.0 <1.1.0", + "resolved": "https://registry.npmjs.org/breakable/-/breakable-1.0.0.tgz" + }, "browserify-zlib": { "version": "0.1.4", "from": "browserify-zlib@>=0.1.4 <0.2.0", @@ -1557,6 +1696,11 @@ "from": "comment-parser@>=0.3.1 <0.4.0", "resolved": "https://registry.npmjs.org/comment-parser/-/comment-parser-0.3.1.tgz" }, + "commoner": { + "version": "0.10.4", + "from": "commoner@>=0.10.3 <0.11.0", + "resolved": "https://registry.npmjs.org/commoner/-/commoner-0.10.4.tgz" + }, "compressible": { "version": "2.0.7", "from": "compressible@>=2.0.7 <2.1.0", @@ -1733,38 +1877,6 @@ "from": "cssstyle@>=0.2.36 <0.3.0", "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-0.2.36.tgz" }, - "cst": { - "version": "0.4.4", - "from": "cst@>=0.4.3 <0.5.0", - "resolved": "https://registry.npmjs.org/cst/-/cst-0.4.4.tgz", - "dependencies": { - "babel-runtime": { - "version": "6.9.2", - "from": "babel-runtime@>=6.9.2 <7.0.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.9.2.tgz" - }, - "babylon": { - "version": "6.8.4", - "from": "babylon@>=6.8.1 <7.0.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.8.4.tgz" - }, - "core-js": { - "version": "2.4.0", - "from": "core-js@>=2.4.0 <3.0.0", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.4.0.tgz" - }, - "source-map": { - "version": "0.1.32", - "from": "source-map@0.1.32", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.32.tgz" - }, - "source-map-support": { - "version": "0.4.1", - "from": "source-map-support@>=0.4.0 <0.5.0", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.1.tgz" - } - } - }, "currently-unhandled": { "version": "0.4.1", "from": "currently-unhandled@>=0.4.1 <0.5.0", @@ -1839,6 +1951,38 @@ "from": "defined@>=1.0.0 <2.0.0", "resolved": "https://registry.npmjs.org/defined/-/defined-1.0.0.tgz" }, + "defs": { + "version": "1.1.1", + "from": "defs@>=1.1.0 <1.2.0", + "resolved": "https://registry.npmjs.org/defs/-/defs-1.1.1.tgz", + "dependencies": { + "camelcase": { + "version": "1.2.1", + "from": "camelcase@>=1.2.1 <2.0.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz" + }, + "cliui": { + "version": "2.1.0", + "from": "cliui@>=2.1.0 <3.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz" + }, + "esprima-fb": { + "version": "15001.1001.0-dev-harmony-fb", + "from": "esprima-fb@~15001.1001.0-dev-harmony-fb", + "resolved": "https://registry.npmjs.org/esprima-fb/-/esprima-fb-15001.1001.0-dev-harmony-fb.tgz" + }, + "wordwrap": { + "version": "0.0.2", + "from": "wordwrap@0.0.2", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz" + }, + "yargs": { + "version": "3.27.0", + "from": "yargs@>=3.27.0 <3.28.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.27.0.tgz" + } + } + }, "del": { "version": "2.2.1", "from": "del@>=2.0.2 <3.0.0", @@ -1869,6 +2013,18 @@ "from": "detect-indent@>=3.0.1 <4.0.0", "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-3.0.1.tgz" }, + "detective": { + "version": "4.3.1", + "from": "detective@>=4.3.1 <5.0.0", + "resolved": "https://registry.npmjs.org/detective/-/detective-4.3.1.tgz", + "dependencies": { + "acorn": { + "version": "1.2.2", + "from": "acorn@>=1.0.3 <2.0.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-1.2.2.tgz" + } + } + }, "diff": { "version": "1.4.0", "from": "diff@1.4.0", @@ -2326,11 +2482,6 @@ "from": "flatten@1.0.2", "resolved": "https://registry.npmjs.org/flatten/-/flatten-1.0.2.tgz" }, - "flux-standard-action": { - "version": "0.6.1", - "from": "flux-standard-action@>=0.6.1 <0.7.0", - "resolved": "https://registry.npmjs.org/flux-standard-action/-/flux-standard-action-0.6.1.tgz" - }, "follow-redirects": { "version": "0.0.7", "from": "follow-redirects@0.0.7", @@ -3435,6 +3586,11 @@ "from": "is-glob@>=2.0.0 <3.0.0", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz" }, + "is-integer": { + "version": "1.0.6", + "from": "is-integer@>=1.0.4 <2.0.0", + "resolved": "https://registry.npmjs.org/is-integer/-/is-integer-1.0.6.tgz" + }, "is-my-json-valid": { "version": "2.13.1", "from": "is-my-json-valid@>=2.12.4 <3.0.0", @@ -3597,11 +3753,6 @@ "from": "jsbn@>=0.1.0 <0.2.0", "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.0.tgz" }, - "jscs-jsdoc": { - "version": "2.0.0", - "from": "jscs-jsdoc@>=2.0.0 <3.0.0", - "resolved": "https://registry.npmjs.org/jscs-jsdoc/-/jscs-jsdoc-2.0.0.tgz" - }, "jscs-preset-wikimedia": { "version": "1.0.0", "from": "jscs-preset-wikimedia@>=1.0.0 <1.1.0", @@ -3669,6 +3820,11 @@ "from": "jsprim@>=1.2.2 <2.0.0", "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.2.2.tgz" }, + "jstransformer": { + "version": "1.0.0", + "from": "jstransformer@1.0.0", + "resolved": "https://registry.npmjs.org/jstransformer/-/jstransformer-1.0.0.tgz" + }, "JSV": { "version": "4.0.2", "from": "JSV@>=4.0.0", @@ -3706,6 +3862,11 @@ "from": "lcid@>=1.0.0 <2.0.0", "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz" }, + "leven": { + "version": "1.0.2", + "from": "leven@>=1.0.2 <2.0.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-1.0.2.tgz" + }, "levn": { "version": "0.3.0", "from": "levn@>=0.3.0 <0.4.0", @@ -3773,11 +3934,6 @@ "from": "lodash._basefindindex@>=3.6.0 <3.7.0", "resolved": "https://registry.npmjs.org/lodash._basefindindex/-/lodash._basefindindex-3.6.0.tgz" }, - "lodash._basefor": { - "version": "3.0.3", - "from": "lodash._basefor@>=3.0.0 <4.0.0", - "resolved": "https://registry.npmjs.org/lodash._basefor/-/lodash._basefor-3.0.3.tgz" - }, "lodash._baseiteratee": { "version": "4.6.1", "from": "lodash._baseiteratee@>=4.6.0 <4.7.0", @@ -3914,21 +4070,11 @@ "from": "lodash.isarray@>=3.0.0 <4.0.0", "resolved": "https://registry.npmjs.org/lodash.isarray/-/lodash.isarray-3.0.4.tgz" }, - "lodash.isplainobject": { - "version": "3.2.0", - "from": "lodash.isplainobject@>=3.2.0 <4.0.0", - "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-3.2.0.tgz" - }, "lodash.keys": { "version": "3.1.2", "from": "lodash.keys@>=3.0.0 <4.0.0", "resolved": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-3.1.2.tgz" }, - "lodash.keysin": { - "version": "3.0.8", - "from": "lodash.keysin@>=3.0.0 <4.0.0", - "resolved": "https://registry.npmjs.org/lodash.keysin/-/lodash.keysin-3.0.8.tgz" - }, "lodash.pickby": { "version": "4.3.0", "from": "lodash.pickby@>=4.0.0 <5.0.0", @@ -4684,18 +4830,6 @@ "from": "pug-error@>=1.3.0 <2.0.0", "resolved": "https://registry.npmjs.org/pug-error/-/pug-error-1.3.0.tgz" }, - "pug-filters": { - "version": "1.2.1", - "from": "pug-filters@>=1.2.1 <2.0.0", - "resolved": "https://registry.npmjs.org/pug-filters/-/pug-filters-1.2.1.tgz", - "dependencies": { - "jstransformer": { - "version": "0.0.3", - "from": "jstransformer@0.0.3", - "resolved": "https://registry.npmjs.org/jstransformer/-/jstransformer-0.0.3.tgz" - } - } - }, "pug-lexer": { "version": "2.0.2", "from": "pug-lexer@>=2.0.0 <3.0.0", @@ -4932,6 +5066,18 @@ "from": "readline2@>=1.0.1 <2.0.0", "resolved": "https://registry.npmjs.org/readline2/-/readline2-1.0.1.tgz" }, + "recast": { + "version": "0.10.33", + "from": "recast@0.10.33", + "resolved": "https://registry.npmjs.org/recast/-/recast-0.10.33.tgz", + "dependencies": { + "esprima-fb": { + "version": "15001.1001.0-dev-harmony-fb", + "from": "esprima-fb@~15001.1001.0-dev-harmony-fb", + "resolved": "https://registry.npmjs.org/esprima-fb/-/esprima-fb-15001.1001.0-dev-harmony-fb.tgz" + } + } + }, "redent": { "version": "1.0.0", "from": "redent@>=1.0.0 <2.0.0", @@ -4966,11 +5112,6 @@ "from": "redux@>=3.4.0 <4.0.0", "resolved": "https://registry.npmjs.org/redux/-/redux-3.5.2.tgz" }, - "redux-promise": { - "version": "0.5.3", - "from": "redux-promise@>=0.5.3 <0.6.0", - "resolved": "https://registry.npmjs.org/redux-promise/-/redux-promise-0.5.3.tgz" - }, "redux-thunk": { "version": "2.1.0", "from": "redux-thunk@>=2.1.0 <3.0.0", @@ -4981,6 +5122,18 @@ "from": "regenerate@>=1.2.1 <2.0.0", "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.2.1.tgz" }, + "regenerator": { + "version": "0.8.40", + "from": "regenerator@0.8.40", + "resolved": "https://registry.npmjs.org/regenerator/-/regenerator-0.8.40.tgz", + "dependencies": { + "esprima-fb": { + "version": "15001.1001.0-dev-harmony-fb", + "from": "esprima-fb@>=15001.1001.0-dev-harmony-fb <15001.1002.0", + "resolved": "https://registry.npmjs.org/esprima-fb/-/esprima-fb-15001.1001.0-dev-harmony-fb.tgz" + } + } + }, "regenerator-runtime": { "version": "0.9.5", "from": "regenerator-runtime@>=0.9.5 <0.10.0", @@ -4991,6 +5144,11 @@ "from": "regex-cache@>=0.4.2 <0.5.0", "resolved": "https://registry.npmjs.org/regex-cache/-/regex-cache-0.4.3.tgz" }, + "regexpu": { + "version": "1.3.0", + "from": "regexpu@>=1.3.0 <2.0.0", + "resolved": "https://registry.npmjs.org/regexpu/-/regexpu-1.3.0.tgz" + }, "regexpu-core": { "version": "2.0.0", "from": "regexpu-core@>=2.0.0 <3.0.0", @@ -5282,6 +5440,16 @@ "from": "signal-exit@>=3.0.0 <4.0.0", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.0.tgz" }, + "simple-fmt": { + "version": "0.1.0", + "from": "simple-fmt@>=0.1.0 <0.2.0", + "resolved": "https://registry.npmjs.org/simple-fmt/-/simple-fmt-0.1.0.tgz" + }, + "simple-is": { + "version": "0.2.0", + "from": "simple-is@>=0.2.0 <0.3.0", + "resolved": "https://registry.npmjs.org/simple-is/-/simple-is-0.2.0.tgz" + }, "slash": { "version": "1.0.0", "from": "slash@>=1.0.0 <2.0.0", @@ -5388,6 +5556,11 @@ "from": "sshpk@>=1.7.0 <2.0.0", "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.7.4.tgz" }, + "stable": { + "version": "0.1.5", + "from": "stable@>=0.1.3 <0.2.0", + "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.5.tgz" + }, "stack-trace": { "version": "0.0.9", "from": "stack-trace@>=0.0.0 <0.1.0", @@ -5440,6 +5613,16 @@ "from": "string-width@>=1.0.1 <2.0.0", "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.1.tgz" }, + "stringmap": { + "version": "0.2.2", + "from": "stringmap@>=0.2.2 <0.3.0", + "resolved": "https://registry.npmjs.org/stringmap/-/stringmap-0.2.2.tgz" + }, + "stringset": { + "version": "0.2.1", + "from": "stringset@>=0.2.1 <0.3.0", + "resolved": "https://registry.npmjs.org/stringset/-/stringset-0.2.1.tgz" + }, "stringstream": { "version": "0.0.5", "from": "stringstream@>=0.0.4 <0.1.0", @@ -5560,11 +5743,26 @@ "from": "trim-newlines@>=1.0.0 <2.0.0", "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz" }, + "trim-right": { + "version": "1.0.1", + "from": "trim-right@>=1.0.0 <2.0.0", + "resolved": "https://registry.npmjs.org/trim-right/-/trim-right-1.0.1.tgz" + }, + "try-resolve": { + "version": "1.0.1", + "from": "try-resolve@>=1.0.0 <2.0.0", + "resolved": "https://registry.npmjs.org/try-resolve/-/try-resolve-1.0.1.tgz" + }, "tryit": { "version": "1.0.2", "from": "tryit@>=1.0.1 <2.0.0", "resolved": "https://registry.npmjs.org/tryit/-/tryit-1.0.2.tgz" }, + "tryor": { + "version": "0.1.2", + "from": "tryor@>=0.1.2 <0.2.0", + "resolved": "https://registry.npmjs.org/tryor/-/tryor-0.1.2.tgz" + }, "tty-browserify": { "version": "0.0.0", "from": "tty-browserify@0.0.0", @@ -5906,6 +6104,11 @@ "from": "wide-align@>=1.1.0 <2.0.0", "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.0.tgz" }, + "window-size": { + "version": "0.1.4", + "from": "window-size@>=0.1.2 <0.2.0", + "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.4.tgz" + }, "winston": { "version": "0.8.3", "from": "winston@>=0.8.0 <0.9.0", @@ -5975,6 +6178,11 @@ "from": "xtend@>=4.0.0 <5.0.0", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz" }, + "y18n": { + "version": "3.2.1", + "from": "y18n@>=3.2.0 <4.0.0", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz" + }, "yallist": { "version": "2.0.0", "from": "yallist@>=2.0.0 <3.0.0", diff --git a/client/package.json b/client/package.json index be14fd2a8..85bf0fc48 100644 --- a/client/package.json +++ b/client/package.json @@ -80,7 +80,6 @@ "react-router": "^2.5.2", "react-router-redux": "^4.0.5", "redux": "^3.5.2", - "redux-promise": "^0.5.3", "redux-thunk": "^2.1.0", "resolve-url-loader": "^1.6.0", "sass-loader": "^4.0.0", diff --git a/client/webpack.client.base.config.js b/client/webpack.client.base.config.js index 65db6b074..275b7a1c6 100644 --- a/client/webpack.client.base.config.js +++ b/client/webpack.client.base.config.js @@ -20,6 +20,22 @@ module.exports = { 'es5-shim/es5-sham', 'jquery', 'turbolinks', + + // Below libraries are listed as entry points to be sure they get included in the + // vendor-bundle.js. Note, if we added some library here, but don't use it in the + // app-bundle.js, then we just wasted a bunch of space. + 'axios', + 'classnames', + 'immutable', + 'lodash', + 'marked', + 'react-addons-pure-render-mixin', + 'react-bootstrap', + 'react-dom', + 'react-redux', + 'react-on-rails', + 'react-router-redux', + 'redux-thunk', ], // This will contain the app entry points defined by webpack.hot.config and webpack.rails.config diff --git a/package.json b/package.json index 994fd7d36..4246e3ea8 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "test:client": "(cd client && npm run test --silent)", "lint": "(cd client && npm run lint --silent)", "build:clean": "rm app/assets/webpack/*", + "build:production": "(cd client && npm run build:production --silent)", "build:production:client": "(cd client && npm run build:production:client --silent)", "build:production:server": "(cd client && npm run build:production:server --silent)", "build:client": "(cd client && npm run build:client --silent)",