Skip to content

Commit

Permalink
simplify deps
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyong committed Nov 29, 2017
1 parent cde0232 commit f6c26e6
Show file tree
Hide file tree
Showing 7 changed files with 2,124 additions and 1,582 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"presets": ["es2015","stage-0","stage-1","stage-2","stage-3"]
"presets": ["es2015"]
}
10 changes: 5 additions & 5 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@
"no-var": 2,
"semi": 2,
"dot-location": [2, "property"],
"babel/generator-star-spacing": 1,
"generator-star-spacing": 1,
"babel/new-cap": [2, {"newIsCap": true}],
"babel/array-bracket-spacing": [2, "always"],
"array-bracket-spacing": [2, "always"],
"babel/object-curly-spacing": [2, "always"],
"babel/object-shorthand": 1,
"babel/arrow-parens": 1,
"babel/no-await-in-loop": 1
"object-shorthand": 1,
"arrow-parens": 1,
"no-await-in-loop": 1
}
}
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

yarn.lock -diff
5 changes: 1 addition & 4 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@

/build/
/src/main.js
/src/demo.js
/index.html
/webpack.config.js
/example
15 changes: 4 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@

Webpack HUD, for displaying errors in page
Webpack HUD, displaying errors in app
----

![](https://pbs.twimg.com/media/CjrPoAWUYAE_77K.png:large)

> ...like [Figwheel](https://github.com/bhauman/lein-figwheel).
Demo https://www.youtube.com/watch?v=i-qGt-7nxVg
[![](https://pbs.twimg.com/media/CjrPoAWUYAE_77K.png:large)](https://www.youtube.com/watch?v=i-qGt-7nxVg)

Warning message in the demo is genetated
by [eslint-loader](https://github.com/MoOx/eslint-loader)
Expand Down Expand Up @@ -44,18 +40,15 @@ module.exports = {
### How does it work?

I copied the code to started another Sockjs channel listening to Webpack compilation results.
And an element is appended to the `<body>` to display the content.
And an element is appended to the `<body />` to display the content.

### Develop

With latest `webpack-dev-server` it would be simpler.

```bash
cd example/
../node_modules/.bin/webpack-dev-server --hot-only --hot
```

Since `webpack-dev-server` is still updating, check `with-new-api` branch for more.

### License

MIT
27 changes: 8 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,11 @@
},
"homepage": "https://github.com/mvc-works/webpack-hud#readme",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 0",
"lint": "eslint src/ examples/",
"fix": "eslint --fix src/",
"example": "webpack-dev-server --progress --colors --inline --hot --content-base example --config ./example/webpack.config.js --host $IP --port $PORT",
"precompile": "rm -rf lib/; mkdir lib; exit 0",
"compile": "babel -d lib/ src",
"prepublish": "npm run lint && npm run test && npm run compile && exit 0",
"prerelease": "git checkout master",
"postpublish": "git push origin master --tags",
"release-patch": "npm run publish && npm version patch && npm run postpublish",
"release-minor": "npm run publish && npm version minor && npm run postpublish",
"release-major": "npm run publish && npm version major && npm run postpublish"
"prepublish": "npm run lint && npm run compile && exit 0"
},
"keywords": [
"webpack",
Expand All @@ -37,23 +30,19 @@
"bottom-tip": "0.0.4",
"doc-ready": "^1.0.4",
"sockjs-client": "^1.1.0",
"strip-ansi": "^3.0.1"
"strip-ansi": "^4.0.0"
},
"devDependencies": {
"babel": "^6.5.2",
"babel-cli": "^6.9.0",
"babel-core": "^6.21.0",
"babel-eslint": "^6.0.4",
"babel-loader": "^6.2.10",
"babel-eslint": "^8.0.2",
"babel-loader": "^7.1.2",
"babel-preset-es2015": "^6.9.0",
"babel-preset-stage-0": "^6.5.0",
"babel-preset-stage-1": "^6.5.0",
"babel-preset-stage-2": "^6.5.0",
"babel-preset-stage-3": "^6.5.0",
"eslint": "^2.10.2",
"eslint": "^4.12.0",
"eslint-loader": "^1.3.0",
"eslint-plugin-babel": "^3.2.0",
"webpack": "^2.2.0-rc.1",
"webpack-dev-server": "^2.2.0-rc.0"
"eslint-plugin-babel": "^4.1.2",
"webpack": "^3.8.1",
"webpack-dev-server": "^2.9.5"
}
}
Loading

0 comments on commit f6c26e6

Please sign in to comment.