Skip to content

Commit

Permalink
Chore: Fix webpack errors and upgrade some packages (#221)
Browse files Browse the repository at this point in the history
- Fix iconv-loader and compiler.parse warnings
- Upgrade some packages
- Change Karma logging level to LOG_ERROR to hide 404 warnings
  • Loading branch information
tonyjin authored Jul 17, 2017
1 parent 800692d commit c309da1
Show file tree
Hide file tree
Showing 4 changed files with 496 additions and 448 deletions.
2 changes: 1 addition & 1 deletion build/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ module.exports = (config) => config.set({

reporters: ['mocha', 'coverage', 'junit'],

logLevel: config.LOG_INFO,
logLevel: config.LOG_ERROR,

singleRun: true,

Expand Down
8 changes: 6 additions & 2 deletions build/webpack.common.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
const path = require('path');
const pkg = require('../package.json');
const webpack = require('webpack');
const I18nPlugin = require('i18n-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const DefinePlugin = require('webpack').DefinePlugin;

const DefinePlugin = webpack.DefinePlugin;
const NormalPlugin = webpack.NormalModuleReplacementPlugin;

/* eslint-disable global-require */
/* eslint-disable import/no-dynamic-require */
Expand Down Expand Up @@ -84,7 +87,8 @@ module.exports = (language) => {
NODE_ENV: JSON.stringify(process.env.NODE_ENV),
BABEL_ENV: JSON.stringify(process.env.BABEL_ENV)
}
})
}),
new NormalPlugin(/\/iconv-loader$/, 'node-noop')
],
stats: {
assets: true,
Expand Down
44 changes: 22 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"devDependencies": {
"autobind-decorator": "^1.3.4",
"autoprefixer": "^6.7.7",
"babel-core": "^6.24.0",
"babel-core": "^6.25.0",
"babel-eslint": "^7.1.1",
"babel-loader": "^6.4.1",
"babel-plugin-istanbul": "^4.0.0",
"babel-plugin-istanbul": "^4.1.4",
"babel-plugin-transform-class-properties": "^6.23.0",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-object-rest-spread": "^6.23.0",
Expand All @@ -25,32 +25,31 @@
"babel-preset-react": "^6.23.0",
"chai": "^3.5.0",
"chai-as-promised": "5.3.0",
"chai-dom": "^1.4.3",
"chai-dom": "^1.5.0",
"conventional-changelog-lint": "^1.1.7",
"css-loader": "^0.27.3",
"cssnano-cli": "^1.0.5",
"deepmerge": "^1.3.2",
"es6-promise": "^4.1.0",
"deepmerge": "^1.5.0",
"eslint": "^3.17.1",
"eslint-config-airbnb": "^14.1.0",
"eslint-config-prettier": "^2.1.1",
"eslint-import-resolver-webpack": "^0.8.1",
"eslint-config-prettier": "^2.3.0",
"eslint-import-resolver-webpack": "^0.8.3",
"eslint-plugin-babel": "^4.1.1",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-jsx-a11y": "^4.0.0",
"eslint-plugin-react": "^6.10.0",
"extract-text-webpack-plugin": "2.1.0",
"fetch-mock": "^5.9.4",
"fetch-mock": "^5.12.1",
"fetch-mock-forwarder": "^1.0.0",
"file-loader": "^0.10.1",
"husky": "^0.13.4",
"i18n-webpack-plugin": "^0.3.0",
"i18n-webpack-plugin": "^1.0.0",
"karma": "^1.5.0",
"karma-chai": "^0.1.0",
"karma-chai-as-promised": "^0.1.2",
"karma-chai-dom": "^1.1.0",
"karma-chai-sinon": "^0.1.5",
"karma-chrome-launcher": "^2.0.0",
"karma-chrome-launcher": "^2.2.0",
"karma-coverage": "^1.1.1",
"karma-fixture": "^0.2.6",
"karma-html2js-preprocessor": "^1.1.0",
Expand All @@ -61,37 +60,38 @@
"karma-sinon": "^1.0.5",
"karma-sinon-stub-promise": "^1.0.0",
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "^2.0.3",
"karma-webpack": "^2.0.4",
"lint-staged": "^3.4.2",
"lodash.clonedeep": "^4.5.0",
"lodash.debounce": "^4.0.8",
"lodash.throttle": "^4.1.1",
"mocha": "^3.2.0",
"mocha": "^3.4.2",
"mock-local-storage": "^1.0.2",
"mojito-rb-gen": "^0.0.1",
"node-noop": "^1.0.0",
"node-sass": "^4.5.0",
"optimize-css-assets-webpack-plugin": "^1.3.0",
"phantomjs-prebuilt": "^2.1.14",
"postcss-loader": "^1.3.3",
"prettier": "^1.3.1",
"prettier-eslint-cli": "^4.0.1",
"prettier": "^1.5.3",
"prettier-eslint-cli": "^4.1.1",
"rangy": "^1.3.0",
"raw-loader": "^0.5.1",
"react": "^15.4.2",
"react-addons-shallow-compare": "^15.4.2",
"react-dom": "^15.4.2",
"react-virtualized": "^9.3.0",
"sass-loader": "^6.0.3",
"react": "^15.6.1",
"react-addons-shallow-compare": "^15.6.0",
"react-dom": "^15.6.1",
"react-virtualized": "^9.9.0",
"sass-loader": "^6.0.6",
"sinon": "1.17.7",
"sinon-chai": "2.8.0",
"sinon-stub-promise": "^4.0.0",
"string-replace-loader": "^1.0.5",
"string-replace-loader": "^1.3.0",
"style-loader": "^0.14.1",
"stylelint": "^7.9.0",
"stylelint-config-standard": "^16.0.0",
"stylelint-order": "^0.4.1",
"webpack": "^2.2.1",
"webpack-bundle-analyzer": "^2.8.2",
"webpack-bundle-analyzer": "^2.8.3",
"whatwg-fetch": "^2.0.3"
},
"scripts": {
Expand Down
Loading

0 comments on commit c309da1

Please sign in to comment.