From a70006b5bca3c3273ba34bfd0607235339e87583 Mon Sep 17 00:00:00 2001 From: marzavec Date: Sat, 19 May 2018 17:21:08 -0700 Subject: streamline dev flow --- package.json | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index 6ce7271..b47faa5 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "hack.chat-v2", - "version": "2.0.1", + "version": "2.0.2", "description": "a minimal distraction free chat application", - "main": "server/main.js", + "main": "index.js", "repository": { "type": "git", "url": "git+https://github.com/hack-chat/main.git" @@ -12,22 +12,12 @@ "npm": ">= 5.7.1" }, "scripts": { - "start": "node server/main.js", - "config": "node server/src/scripts/configure.js", - "debug": "node server/src/scripts/debug.js", - "dev": "node server/src/scripts/debug.js" + "start": "pm2 start ./server/main.js --name hackchat-dev-server && cd ./clientSource && npm start && pm2 stop hackchat-dev-server", + "postinstall": "cd ./clientSource && npm install && cd.. & cd ./server && npm install && npm run config" }, "author": "Marzavec", "license": "WTFPL", "dependencies": { - "chalk": "^2.3.2", - "common-tags": "^1.7.2", - "dateformat": "^3.0.3", - "deasync": "^0.1.12", - "didyoumean2": "^1.3.0", - "fs-extra": "^5.0.0", - "prompt": "^1.0.0", - "readdir-recursive": "0.0.4", - "ws": "^5.0.0" + "pm2": "^2.10.4" } -} \ No newline at end of file +} -- cgit v1.2.1