Update some packages. Populate vendors list for webpack from package.json

This commit is contained in:
SleepWalker 2016-06-28 12:08:07 +03:00
parent 008c13ecb9
commit f243eefef3
2 changed files with 7 additions and 25 deletions

View File

@ -18,7 +18,7 @@
"dependencies": { "dependencies": {
"babel-polyfill": "^6.3.14", "babel-polyfill": "^6.3.14",
"classnames": "^2.1.3", "classnames": "^2.1.3",
"history": "^3.0.0", "history": "^2.0.0",
"intl": "^1.2.2", "intl": "^1.2.2",
"intl-format-cache": "^2.0.4", "intl-format-cache": "^2.0.4",
"intl-messageformat": "^1.1.0", "intl-messageformat": "^1.1.0",
@ -50,7 +50,6 @@
"babel-runtime": "^6.0.0", "babel-runtime": "^6.0.0",
"bundle-loader": "^0.5.4", "bundle-loader": "^0.5.4",
"chai": "^3.0.0", "chai": "^3.0.0",
"chokidar": "^1.2.0",
"css-loader": "^0.23.0", "css-loader": "^0.23.0",
"cssnano": "^3.4.0", "cssnano": "^3.4.0",
"enzyme": "^2.2.0", "enzyme": "^2.2.0",
@ -58,13 +57,13 @@
"eslint-plugin-react": "^5.0.0", "eslint-plugin-react": "^5.0.0",
"exports-loader": "^0.6.3", "exports-loader": "^0.6.3",
"extract-text-webpack-plugin": "^1.0.0", "extract-text-webpack-plugin": "^1.0.0",
"file-loader": "^0.8.5", "file-loader": "^0.9.0",
"fontgen-loader": "^0.2.1", "fontgen-loader": "^0.2.1",
"html-loader": "^0.4.3", "html-loader": "^0.4.3",
"html-webpack-plugin": "^2.0.0", "html-webpack-plugin": "^2.0.0",
"imports-loader": "^0.6.5", "imports-loader": "^0.6.5",
"json-loader": "^0.5.4", "json-loader": "^0.5.4",
"karma": "*", "karma": "^1.1.0",
"karma-chai": "*", "karma-chai": "*",
"karma-mocha": "^1.0.0", "karma-mocha": "^1.0.0",
"karma-nyan-reporter": "^0.2.3", "karma-nyan-reporter": "^0.2.3",
@ -72,8 +71,6 @@
"karma-sinon": "^1.0.4", "karma-sinon": "^1.0.4",
"karma-sourcemap-loader": "*", "karma-sourcemap-loader": "*",
"karma-webpack": "^1.5.1", "karma-webpack": "^1.5.1",
"less": "^2.4.0",
"less-loader": "^2.0.0",
"mocha": "^2.2.5", "mocha": "^2.2.5",
"node-sass": "^3.4.2", "node-sass": "^3.4.2",
"phantomjs-prebuilt": "^2.0.0", "phantomjs-prebuilt": "^2.0.0",
@ -84,7 +81,7 @@
"redux-devtools": "^3.3.1", "redux-devtools": "^3.3.1",
"redux-devtools-dock-monitor": "^1.1.1", "redux-devtools-dock-monitor": "^1.1.1",
"redux-devtools-log-monitor": "^1.0.11", "redux-devtools-log-monitor": "^1.0.11",
"sass-loader": "^3.1.2", "sass-loader": "^4.0.0",
"sinon": "^1.15.3", "sinon": "^1.15.3",
"style-loader": "^0.13.0", "style-loader": "^0.13.0",
"url-loader": "^0.5.7", "url-loader": "^0.5.7",

View File

@ -9,6 +9,8 @@ var cssnano = require('cssnano');
var cssUrl = require("postcss-url"); var cssUrl = require("postcss-url");
var iconfontImporter = require('./webpack/node-sass-iconfont-importer'); var iconfontImporter = require('./webpack/node-sass-iconfont-importer');
var vendor = Object.keys(require('./package.json').dependencies);
/** /**
* TODO: https://babeljs.io/docs/plugins/ * TODO: https://babeljs.io/docs/plugins/
* TODO: отдельные конфиги для env (аля https://github.com/davezuko/react-redux-starter-kit) * TODO: отдельные конфиги для env (аля https://github.com/davezuko/react-redux-starter-kit)
@ -52,24 +54,7 @@ var rootPath = path.resolve('./src');
var webpackConfig = { var webpackConfig = {
entry: { entry: {
app: path.join(__dirname, 'src'), app: path.join(__dirname, 'src'),
vendor: [ vendor: vendor
'babel-polyfill',
'whatwg-fetch',
'classnames',
'history',
'intl-format-cache',
'intl-messageformat',
'react',
'react-dom',
'react-helmet',
'react-intl',
'react-motion',
'react-redux',
'react-router',
'react-router-redux',
'redux',
'redux-thunk'
]
}, },
output: { output: {