Skip to content

Commit

Permalink
Merge pull request #15 from rjmohammad/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
jeremylin8 authored Feb 10, 2017
2 parents cdbfb4b + 92ff9ce commit d1b9715
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
node_modules
public
bundle.js
debug.log
npm-debug.log
npm-debug.log
src
2 changes: 1 addition & 1 deletion index/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<body>
<div id="container">
</div>
<script src="./public/bundle.js">
<script src="/bundle.js">

</script>
</body>
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"start-dev": "webpack-dev-server",
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "eslint js/**/*.js jsx/**/*.jsx"
"lint": "node_modules/.bin/eslint server/**/*.js --quiet"
},
"repository": {
"type": "git",
Expand All @@ -20,7 +20,6 @@
"homepage": "https://github.com/ecmascriptElephants/Monopoly#readme",
"dependencies": {
"body-parser": "^1.16.0",
"eslint-loader": "^1.6.1",
"express": "^4.14.1",
"knex": "^0.12.6",
"morgan": "^1.8.0",
Expand All @@ -44,6 +43,7 @@
"eslint-config-standard": "^6.2.1",
"eslint-config-standard-jsx": "^3.3.0",
"eslint-config-standard-react": "^4.2.0",
"eslint-loader": "^1.6.1",
"eslint-plugin-promise": "^3.4.1",
"eslint-plugin-react": "^6.9.0",
"eslint-plugin-standard": "^2.0.1",
Expand Down
2 changes: 1 addition & 1 deletion server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const app = express()
const port = process.env.PORT || 8000
app.use(bodyParser.json())
app.use(morgan('dev'))
app.use(express.static(path.join(__dirname, '../public')))
app.use(express.static(path.join(__dirname, '../index')))
app.use(express.static(path.join(__dirname, '../src')))
// routes(app, express)

app.listen(port, () => {
Expand Down
6 changes: 3 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ module.exports = {
context: __dirname,
entry: './client/app.jsx',
output: {
path: path.join(__dirname, '/public'),
publicPath: '/public/',
path: path.join(__dirname, '/src'),
publicPath: '/src/',
filename: 'bundle.js'
},
devServer: {
publicPath: '/public/',
publicPath: '/src/',
open: true,
historyApiFallback: true,
contentBase: './index'
Expand Down

0 comments on commit d1b9715

Please sign in to comment.