Skip to content

Commit

Permalink
migrate to webpackman
Browse files Browse the repository at this point in the history
  • Loading branch information
ewnd9 committed Feb 15, 2016
1 parent d1df3d5 commit b601e02
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 12 deletions.
7 changes: 6 additions & 1 deletion .babelrc
@@ -1,3 +1,8 @@
{
"presets": ["es2015", "stage-0", "react"]
"presets": ["es2015", "stage-0", "react"],
"env": {
"development": {
"presets": ["react-hmre"]
}
}
}
4 changes: 3 additions & 1 deletion example.deploy.sh
@@ -1,5 +1,7 @@
#!/bin/sh

npm run build:backend
NODE_ENV=production webpack
npm run build:frontend

REMOTE=user@ip
DEST=/home/pi/the-feed
Expand Down
5 changes: 4 additions & 1 deletion frontend/index.html
@@ -1,7 +1,10 @@
<html>
<head>
<title>the-feed</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<body>
<div id="root">Loading...</div>
<script src="/app.bundle.js"></script>
</body>
</html>
15 changes: 6 additions & 9 deletions package.json
Expand Up @@ -5,15 +5,16 @@
"main": "index.js",
"scripts": {
"start": "npm-run-all --parallel start:frontend start:backend",
"start:frontend": "webpack-dev-server",
"start:frontend": "wserve --x-entry frontend/app.js --x-html frontend/index.html --x-dist public",
"start:backend": "CONFIG=config-dev.yml npm-run-all --parallel build:backend:watch start:nodemon",
"start:nodemon": "nodemon --watch lib app.js",
"test": "ava",
"test:watch": "nodemon test/*.js --exec ava -- --serial --verbose",
"build:backend": "babel -s -d lib src",
"build:backend:watch": "babel --watch -s -d lib src"
"build:backend:watch": "babel --watch -s -d lib src",
"build:frontend": "rm -rf public/* && NODE_ENV=production wbuild --x-entry frontend/app.js --x-html frontend/index.html --x-dist public"
},
"preferGlobal": "false",
"private": "true",
"repository": {
"type": "git",
"url": "git+https://github.com/ewnd9/the-feed.git"
Expand Down Expand Up @@ -53,13 +54,11 @@
"ava": "^0.9.1",
"babel-cli": "^6.4.0",
"babel-core": "^6.4.0",
"babel-loader": "^6.2.1",
"babel-preset-es2015": "^6.3.13",
"babel-preset-react": "^6.3.13",
"babel-preset-react-hmre": "^1.1.0",
"babel-preset-stage-0": "^6.3.13",
"classnames": "^2.2.1",
"css-loader": "^0.23.0",
"file-loader": "^0.8.5",
"isomorphic-fetch": "^2.2.0",
"nock": "^3.4.0",
"nodemon": "^1.4.1",
Expand All @@ -74,8 +73,6 @@
"redux": "^3.0.5",
"redux-logger": "^2.3.1",
"redux-thunk": "^1.0.3",
"style-loader": "^0.13.0",
"webpack": "^1.12.9",
"webpack-dev-server": "^1.14.0"
"webpackman": "^0.1.0"
}
}

0 comments on commit b601e02

Please sign in to comment.