aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrh2018-02-02 15:28:24 +0000
committertrh2018-02-02 15:28:24 +0000
commitb0ad6170feac2c20b23e5a00735a761e90561465 (patch)
tree80167fa4d5a6254be8ad5d3ecd8dba0bc5205cda
parentadded initial mockUI for testing (diff)
parentEdited testing script (diff)
downloadmedicine-b0ad6170feac2c20b23e5a00735a761e90561465.tar.gz
medicine-b0ad6170feac2c20b23e5a00735a761e90561465.zip

Merge branch ‘trh/ts-node’ into ‘master’

Using ts-node in place of compiling and using regular node

See merge request cs3099group-be-4/project-code!1

-rw-r--r--package.json4
-rwxr-xr-xrunmenode.sh4
2 files changed, 4 insertions, 4 deletions
diff --git a/package.json b/package.json
index a58ba86..79cf7c2 100644
--- a/package.json
+++ b/package.json
@@ -4,8 +4,8 @@
"main": "index.ts",
"scripts": {
"build": "gulp scripts",
- "test": "mocha --reporter spec --compilers ts:ts-node/register 'test/**/*.test.ts'",
- "start": "node dist/index.js"
+ "test": "mocha --reporter spec -r ts-node/register 'test/**/*.test.ts'",
+ "start": "ts-node src/index.ts"
},
"repository": {
"type": "git",
diff --git a/runmenode.sh b/runmenode.sh
index 92276bc..16c023c 100755
--- a/runmenode.sh
+++ b/runmenode.sh
@@ -1,3 +1,3 @@
-#!/bin/bash
+#!/bin/sh
npm run build
-node dist/index.js \ No newline at end of file
+npm start