added browserify, refactored code to separate UI and network logic

This commit is contained in:
Abhinav Adduri 2017-06-01 15:10:00 -07:00 committed by Danny Coates
parent c539ed6282
commit 51910b5fc9
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
13 changed files with 942 additions and 441 deletions

View file

@ -5,7 +5,7 @@
"scripts": {
"format": "prettier --single-quote --write 'public/*.js' 'app.js'",
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node server/portal_server.js"
"start": "watchify frontend/src/main.js -o public/bundle.js -d | node server/portal_server.js"
},
"author": "",
"license": "ISC",
@ -17,5 +17,9 @@
"path": "^0.12.7",
"prettier": "^1.3.1",
"redis": "^2.7.1"
},
"devDependencies": {
"browserify": "^14.4.0",
"watchify": "^3.9.0"
}
}