From 87fe0988516e71aeaa1c38904e5cd663997dd93e Mon Sep 17 00:00:00 2001 From: ivaosthu Date: Sun, 29 Mar 2015 20:25:16 +0200 Subject: [PATCH] Webpack should build for production --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index ab8b89bec0..deff3c9492 100644 --- a/package.json +++ b/package.json @@ -18,8 +18,10 @@ "private": true, "scripts": { "start": "NODE_ENV=production node server.js", - "build": "./node_modules/.bin/webpack", + "build": "./node_modules/.bin/webpack -p", "dev": "NODE_ENV=development supervisor --ignore ./node_modules/,./public/js server.js", + "start-pg": "pg_virtualenv npm run start-pg-chain", + "start-pg-chain": "export DATABASE_URL=postgres://$PGUSER:$PGPASSWORD@localhost:$PGPORT/postgres ; db-migrate up && npm run dev", "test": "export PORT=4243 ; jest && npm run lint && mocha test test/*.js && npm run coverage", "docker-test": "export PORT=4243 ; ./scripts/docker-postgres.sh", "pg-virtualenv-test": "pg_virtualenv npm run pg-virtualenv-chain",