Skip to content

Commit

Permalink
Merge pull request #7 from sugarshin/update-dependencies
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
sugarshin committed Feb 21, 2018
2 parents 0d5625a + cd7b2f5 commit 4609346
Show file tree
Hide file tree
Showing 6 changed files with 1,362 additions and 871 deletions.
2 changes: 2 additions & 0 deletions .flowconfig
@@ -1,6 +1,8 @@
[ignore]
.*/node_modules/promise/
.*/node_modules/draft-js/lib/DraftEditor.react.js.flow
.*/node_modules/draft-js/lib/ContentBlock.js.flow
.*/node_modules/draft-js/lib/ContentBlockNode.js.flow

[include]

Expand Down
5 changes: 4 additions & 1 deletion example/App.js
@@ -1,4 +1,5 @@
import React, { Component } from 'react'
import { hot } from 'react-hot-loader'
import Fork from 'react-ghfork'
import hljs from 'highlight.js'
import code from './example-code'
Expand All @@ -8,7 +9,7 @@ import 'react-ghfork/gh-fork-ribbon.css'
import 'highlight.js/styles/github.css'
import './App.styl'

export default class App extends Component {
class App extends Component {
componentDidMount() {
this.demoEditor.focus()
Array.from(document.querySelectorAll('pre')).forEach(el => hljs.highlightBlock(el))
Expand All @@ -25,3 +26,5 @@ export default class App extends Component {
)
}
}

export default hot(module)(App)
10 changes: 1 addition & 9 deletions example/index.js
@@ -1,6 +1,5 @@
import React from 'react'
import ReactDOM from 'react-dom'
import { AppContainer } from 'react-hot-loader'
import App from './App'

const main = () => {
Expand All @@ -10,14 +9,7 @@ const main = () => {
document.head.appendChild(meta)

const root = document.body.appendChild(document.createElement('div'))
ReactDOM.render(<AppContainer><App /></AppContainer> , root)

if (module.hot) {
module.hot.accept('./App', () => {
const NextApp = require('./App').default
ReactDOM.render(<AppContainer><NextApp /></AppContainer>, root)
})
}
ReactDOM.render(<App />, root)
}

main()
46 changes: 23 additions & 23 deletions package.json
Expand Up @@ -33,57 +33,57 @@
"predocs": "npm run clean:build; mkdir -p build && npm run favicon",
"docs": "NODE_ENV=production webpack --progress",
"postdocs": "gh-pages -x -m 'Update [ci skip]' -d build -r https://github.com/sugarshin/draft-js-checkable-list-plugin.git",
"prepublish": "npm run lint && npm run type && npm run test:coverage && NODE_ENV=production BABEL_ENV=production npm run build"
"prepublishOnly": "npm run lint && npm run type && npm run test:coverage && NODE_ENV=production BABEL_ENV=production npm run build"
},
"repository": "git@github.com:sugarshin/draft-js-checkable-list-plugin.git",
"author": "Shingo Sato <shinsugar@gmail.com>",
"license": "MIT",
"dependencies": {
"decorate-component-with-props": "^1.1.0",
"draft-js-checkable-list-item": "^3.0.0",
"draft-js-checkable-list-item": "^3.0.1",
"immutable": "~3.7.4",
"union-class-names": "^1.0.0"
},
"devDependencies": {
"@babel/cli": "^7.0.0-beta.36",
"@babel/core": "^7.0.0-beta.36",
"@babel/plugin-transform-flow-strip-types": "^7.0.0-beta.36",
"@babel/polyfill": "^7.0.0-beta.36",
"@babel/preset-es2015": "^7.0.0-beta.36",
"@babel/preset-es2016": "^7.0.0-beta.36",
"@babel/preset-react": "^7.0.0-beta.36",
"@babel/preset-stage-2": "^7.0.0-beta.36",
"@babel/cli": "^7.0.0-beta.40",
"@babel/core": "^7.0.0-beta.40",
"@babel/plugin-transform-flow-strip-types": "^7.0.0-beta.40",
"@babel/polyfill": "^7.0.0-beta.40",
"@babel/preset-es2015": "^7.0.0-beta.40",
"@babel/preset-es2016": "^7.0.0-beta.40",
"@babel/preset-react": "^7.0.0-beta.40",
"@babel/preset-stage-2": "^7.0.0-beta.40",
"babel-core": "^7.0.0-0",
"babel-eslint": "^8.1.2",
"babel-jest": "^22.0.4",
"babel-eslint": "^8.2.2",
"babel-jest": "^22.4.0",
"babel-loader": "^8.0.0-beta.0",
"coveralls": "^3.0.0",
"css-loader": "^0.28.7",
"draft-js": "~0.10.4",
"css-loader": "^0.28.9",
"draft-js": "~0.10.5",
"draft-js-plugins-editor": "^2.0.4",
"enzyme": "^3.3.0",
"enzyme-adapter-react-16": "^1.1.1",
"eslint": "^4.14.0",
"eslint": "^4.18.1",
"eslint-plugin-babel": "^4.1.2",
"eslint-plugin-flowtype": "^2.40.1",
"eslint-plugin-react": "^7.5.1",
"flow-bin": "^0.62.0",
"eslint-plugin-flowtype": "^2.45.0",
"eslint-plugin-react": "^7.7.0",
"flow-bin": "^0.66.0",
"gh-pages": "^1.1.0",
"highlight.js": "^9.12.0",
"html-webpack-plugin": "^2.30.1",
"jest": "^22.0.4",
"jest": "^22.4.0",
"raf": "^3.4.0",
"react": "^16.2.0",
"react-dom": "^16.2.0",
"react-ghfork": "^0.5.1",
"react-hot-loader": "^3.1.3",
"react-hot-loader": "^4.0.0-rc.0",
"react-test-renderer": "^16.2.0",
"regenerator-runtime": "^0.11.1",
"style-loader": "^0.19.1",
"style-loader": "^0.20.2",
"stylus": "^0.54.5",
"stylus-loader": "^3.0.1",
"webpack": "^3.10.0",
"webpack-dev-server": "^2.9.7"
"webpack": "^3.11.0",
"webpack-dev-server": "^2.11.1"
},
"peerDependencies": {
"draft-js": "~0.10.1",
Expand Down
6 changes: 1 addition & 5 deletions webpack.config.js
Expand Up @@ -31,12 +31,8 @@ if (production) {
new webpack.optimize.UglifyJsPlugin({ compress: { warnings: false, screw_ie8: true } })
)
} else {
entry.unshift(
`webpack-dev-server/client?http://localhost:${PORT}`,
'webpack/hot/only-dev-server',
'react-hot-loader/patch'
)
plugins.push(
new webpack.NamedModulesPlugin(),
new webpack.HotModuleReplacementPlugin()
)
}
Expand Down

0 comments on commit 4609346

Please sign in to comment.