Merge pull request #25 from uwap/greenkeeper/initial
Update dependencies to enable Greenkeeper 🌴
This commit is contained in:
commit
8dc0788763
7 changed files with 508 additions and 311 deletions
|
|
@ -1,5 +1,7 @@
|
|||
# MQTT Control Map
|
||||
|
||||
[](https://greenkeeper.io/)
|
||||
|
||||
## Development / Configuration
|
||||
|
||||
1. run `yarn` to install all dependencies.
|
||||
|
|
|
|||
10
package.json
10
package.json
|
|
@ -37,18 +37,18 @@
|
|||
"eslint": "^4.16.0",
|
||||
"eslint-plugin-flowtype": "^2.42.0",
|
||||
"eslint-plugin-react": "^7.6.1",
|
||||
"extract-text-webpack-plugin": "^3.0.2",
|
||||
"extract-text-webpack-plugin": "next",
|
||||
"file-loader": "^1.1.5",
|
||||
"flow": "^0.2.3",
|
||||
"flow-bin": "^0.64.0",
|
||||
"flow-bin": "^0.68.0",
|
||||
"flow-typed": "^2.3.0",
|
||||
"html-webpack-plugin": "^2.30.1",
|
||||
"html-webpack-plugin": "^3.1.0",
|
||||
"husky": "^0.14.3",
|
||||
"lodash-webpack-plugin": "^0.11.4",
|
||||
"style-loader": "^0.20.1",
|
||||
"webpack": "^3.1.0",
|
||||
"webpack": "^4.3.0",
|
||||
"webpack-cli": "^2.0.13",
|
||||
"webpack-dev-server": "^2.11.1",
|
||||
"webpack-dev-server": "^3.1.1",
|
||||
"webpack-merge": "^4.1.1",
|
||||
"webpack-shell-plugin": "^0.5.0"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -95,6 +95,7 @@ export class UiControl<I: UIControl> extends UiItem<I> {
|
|||
|
||||
isEnabled() {
|
||||
if (Object.keys(this.props.item).includes("enableCondition") &&
|
||||
// $FlowFixMe
|
||||
typeof this.props.item.enableCondition == "function") {
|
||||
const enableCondition = this.props.item.enableCondition;
|
||||
const value = this.getValue();
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ module.exports = {
|
|||
filename: '[name]-[chunkhash].js'
|
||||
},
|
||||
module: {
|
||||
loaders: [
|
||||
rules: [
|
||||
{ test: /\.(woff2?|eot|ttf|svg)$/, loader: "file-loader" }
|
||||
]
|
||||
},
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ module.exports = env => merge(common, {
|
|||
path.resolve(__dirname, 'src/index.jsx')]
|
||||
},
|
||||
module: {
|
||||
loaders: [
|
||||
rules: [
|
||||
{ test: /\.css$/, use: extractCSS },
|
||||
{ test: /\.js(x)?$/, exclude: /node_modules/, loader: "babel-loader?cacheDirectory=true" }
|
||||
]
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ module.exports = env => merge(common, {
|
|||
path.resolve(__dirname, 'src/index.jsx')],
|
||||
},
|
||||
module: {
|
||||
loaders: [
|
||||
rules: [
|
||||
{ test: /\.css$/, use: extractCSS },
|
||||
{ test: /\.js(x)?$/, exclude: /node_modules/, loader: "babel-loader" }
|
||||
]
|
||||
|
|
@ -42,12 +42,8 @@ module.exports = env => merge(common, {
|
|||
}
|
||||
}),
|
||||
new LodashModuleReplacementPlugin(),
|
||||
new webpack.optimize.UglifyJsPlugin(),
|
||||
new webpack.optimize.OccurrenceOrderPlugin(),
|
||||
new webpack.HashedModuleIdsPlugin(),
|
||||
new webpack.optimize.AggressiveMergingPlugin(),
|
||||
new webpack.optimize.CommonsChunkPlugin({
|
||||
name: 'runtime'
|
||||
}),
|
||||
new webpack.optimize.AggressiveMergingPlugin()
|
||||
]
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue