aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorTom Harley2018-04-23 01:36:52 +0100
committerTom Harley2018-04-23 01:36:52 +0100
commit7c25f5ded6429580d7535c114d9a9431b56b319b (patch)
tree2228e7a0903ab291ac5100cf00947076cc367c89 /package.json
parentStart introduction of preprocessing (diff)
downloadmedicine-7c25f5ded6429580d7535c114d9a9431b56b319b.tar.gz
medicine-7c25f5ded6429580d7535c114d9a9431b56b319b.zip

Fix tests and add handy server scripts

Diffstat (limited to 'package.json')
-rw-r--r--package.json7
1 files changed, 4 insertions, 3 deletions
diff --git a/package.json b/package.json
index 991305d..013556c 100644
--- a/package.json
+++ b/package.json
@@ -4,7 +4,7 @@
"main": "index.ts",
"license": "UNLICENSED",
"scripts": {
- "_test": "NODE_ENV='test' mocha --reporter spec -r ts-node/register",
+ "_test": "PORT=4321 NODE_ENV='test' mocha --reporter spec -r ts-node/register",
"test": "yarn _test './test/**/*.test.ts'",
"test:routes": "yarn _test './test/**/*.routes.test.ts'",
"test:unit": "yarn _test './test/**/*.unit.test.ts'",
@@ -14,11 +14,12 @@
"test:routes:protocol": "yarn _test './test/**/*protocol.routes.test.ts'",
"docs": "typedoc --out 'docs' --readme 'README.md' --name 'St Andrews Junior Honours 2017/18 - Team BE4' --module commonjs --target ES6 --exclude '*.test.ts' --excludeExternals --includeDeclarations --ignoreCompilerErrors --disableOutputCheck 'src'",
"run:postgres": "pg_ctl start",
- "start": "ts-node src/index.ts",
+ "local": "ts-node src/index.ts",
"_lint": "tslint -p './tsconfig.json' -c './tslint.json'",
"lint": "yarn _lint --fix --force './src/**/*.ts'",
"lint:tests": "yarn _lint --fix --force './test/**/*.ts'",
- "serve": "pm2 restart ecosystem.config.js",
+ "start": "pm2 restart ecosystem.config.js",
+ "stop": "pm2 stop all",
"console": "pm2 monit"
},
"repository": {