Minor cleanup
This commit is contained in:
parent
552ddb01b1
commit
3a8421816a
5 changed files with 15 additions and 24979 deletions
|
@ -1,9 +1,9 @@
|
||||||
FROM node:0.12.0-slim
|
FROM iojs:slim
|
||||||
MAINTAINER Jonathan Cremin <jonathan@crem.in>
|
MAINTAINER Jonathan Cremin <jonathan@crem.in>
|
||||||
|
|
||||||
ADD package.json package.json
|
ADD package.json package.json
|
||||||
RUN npm install
|
RUN npm install
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
20
package.json
20
package.json
|
@ -3,13 +3,16 @@
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "babel-node app.js",
|
"start": "node -r 'babel/register' app.js",
|
||||||
"test": "mocha --require co-mocha --compilers js:babel/register test/**/*.js --timeout=10000",
|
"test": "mocha --require co-mocha --compilers js:babel/register test/**/*.js --timeout=10000",
|
||||||
"build": "browserify -t babelify ./views/app.jsx > ./public/javascript/bundle.js",
|
"build": "browserify ./views/app.jsx > ./public/javascript/bundle.js",
|
||||||
"clean": "rm -f ./public/javascript/bundle.js"
|
"watch": "parallelshell \"npm run watch-js\" \"npm run watch-server\"",
|
||||||
|
"watch-server": "nodemon -x \"node -r 'babel/register'\" -e js,jsx -i public/ app.js",
|
||||||
|
"watch-js": "browserify ./views/app.jsx | uglifyjs -cm 2>/dev/null > ./public/scripts/bundle.js",
|
||||||
|
"clean": "rm -f ./public/scripts/bundle.js"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"iojs": "2.2.1"
|
"iojs": "2.3.0"
|
||||||
},
|
},
|
||||||
"browserify": {
|
"browserify": {
|
||||||
"transform": [
|
"transform": [
|
||||||
|
@ -22,9 +25,9 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"babel": "^5.2.17",
|
"babel": "^5.5.8",
|
||||||
"babelify": "^6.0.2",
|
"babelify": "^6.0.2",
|
||||||
"bluebird": "^2.9.25",
|
"bluebird": "^2.9.30",
|
||||||
"browserify": "^10.1.3",
|
"browserify": "^10.1.3",
|
||||||
"co": "^4.5.4",
|
"co": "^4.5.4",
|
||||||
"debug": "^2.1.1",
|
"debug": "^2.1.1",
|
||||||
|
@ -46,12 +49,13 @@
|
||||||
"reactify": "^1.1.1",
|
"reactify": "^1.1.1",
|
||||||
"spotify": "^0.3.0",
|
"spotify": "^0.3.0",
|
||||||
"superagent": "^1.2.0",
|
"superagent": "^1.2.0",
|
||||||
"superagent-bluebird-promise": "^2.0.2"
|
"superagent-bluebird-promise": "^2.0.2",
|
||||||
|
"uglifyjs": "^2.4.10"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"co-mocha": "^1.1.0",
|
"co-mocha": "^1.1.0",
|
||||||
"eslint": "^0.22.1",
|
"eslint": "^0.22.1",
|
||||||
"eslint-plugin-react": "^2.5.0",
|
"eslint-plugin-react": "^2.5.1",
|
||||||
"mocha": "^2.1.0",
|
"mocha": "^2.1.0",
|
||||||
"nodemon": "^1.3.7",
|
"nodemon": "^1.3.7",
|
||||||
"parallelshell": "^1.1.1",
|
"parallelshell": "^1.1.1",
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -20,7 +20,7 @@ var App = React.createClass({
|
||||||
<body className='home'>
|
<body className='home'>
|
||||||
<RouteHandler {...this.props} />
|
<RouteHandler {...this.props} />
|
||||||
<GAInitiailizer />
|
<GAInitiailizer />
|
||||||
<script src='/javascript/bundle.js' />
|
<script src='/scripts/bundle.js' />
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue