React server side rendering of home page

This commit is contained in:
Jonathan Cremin 2014-12-14 00:23:15 +00:00
parent 4bfdf0dc45
commit 08e0aa7665
5 changed files with 210 additions and 8 deletions

View file

@ -4,14 +4,27 @@
"private": true,
"scripts": {
"start": "node ./bin/www",
"test": "./node_modules/mocha/bin/mocha test/**/*.js --timeout=10000"
"test": "./node_modules/mocha/bin/mocha test/**/*.js --timeout=10000",
"build": "NODE_ENV=production browserify ./client | uglifyjs -cm 2>/dev/null > ./public/javascript/bundle.js",
"clean": "rm -f ./public/javascript/bundle.js"
},
"engines": {
"node": "0.10.x"
},
"browserify": {
"transform": [
[
"reactify",
{
"harmony": true
}
]
]
},
"dependencies": {
"bluebird": "^2.3.11",
"body-parser": "~1.8.1",
"compression": "^1.2.2",
"connect-flash": "^0.1.1",
"cookie-parser": "~1.3.3",
"crypto-js": "^3.1.2-5",
@ -21,17 +34,25 @@
"express-session": "^1.9.2",
"helmet": "^0.5.2",
"morgan": "~1.3.0",
"node-jsx": "^0.12.4",
"node-uuid": "^1.4.2",
"promised-mongo": "^0.11.1",
"querystring": "^0.2.0",
"rdio": "^1.5.2",
"react": "^0.12.1",
"react-google-analytics": "^0.2.0",
"react-router": "^0.11.4",
"serve-favicon": "~2.1.3",
"spotify": "^0.3.0",
"superagent": "^0.21.0",
"superagent-bluebird-promise": "^0.5.1"
},
"devDependencies": {
"browserify": "^7.0.0",
"connect-browserify": "^3.2.1",
"should": "^4.3.0",
"mocha": "^2.0.1"
"mocha": "^2.0.1",
"envify": "^3.2.0",
"reactify": "^0.17.1"
}
}