aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md6
-rw-r--r--gulpfile.js23
-rw-r--r--package.json23
-rwxr-xr-xrunmenode.sh1
4 files changed, 9 insertions, 44 deletions
diff --git a/README.md b/README.md
index 8d64393..be01311 100644
--- a/README.md
+++ b/README.md
@@ -10,14 +10,8 @@ $ npm install all
$ ./runmenode.sh
// alternative for home pc:
-$ npm install gulp -g
-$ gulp scripts
$ npm start
-### Notes on "gulp":
-
-npm module used to automate building and running but needs to be installed globally, so no use on host servers
-
## To test:
$ npm test
diff --git a/gulpfile.js b/gulpfile.js
deleted file mode 100644
index 7c897ce..0000000
--- a/gulpfile.js
+++ /dev/null
@@ -1,23 +0,0 @@
-const gulp = require('gulp');
-const ts = require('gulp-typescript');
-const JSON_FILES = ['src/*.json', 'src/**/*.json'];
-
-// pull in the project TypeScript config
-const tsProject = ts.createProject('tsconfig.json');
-
-gulp.task('scripts', () => {
- const tsResult = tsProject.src()
- .pipe(tsProject());
- return tsResult.js.pipe(gulp.dest('dist'));
-});
-
-gulp.task('watch', ['scripts'], () => {
- gulp.watch('src/**/*.ts', ['scripts']);
-});
-
-gulp.task('assets', function() {
- return gulp.src(JSON_FILES)
- .pipe(gulp.dest('dist'));
-});
-
-gulp.task('default', ['watch', 'assets']);
diff --git a/package.json b/package.json
index 79cf7c2..73f4353 100644
--- a/package.json
+++ b/package.json
@@ -3,7 +3,6 @@
"description": "2017 Junior Honours Project - Backend Group 4",
"main": "index.ts",
"scripts": {
- "build": "gulp scripts",
"test": "mocha --reporter spec -r ts-node/register 'test/**/*.test.ts'",
"start": "ts-node src/index.ts"
},
@@ -20,27 +19,23 @@
],
"author": "2017 Junior Honours Backend Group 4",
"devDependencies": {
- "@types/body-parser": "0.0.33",
"@types/chai": "^3.4.34",
"@types/chai-http": "0.0.29",
"@types/debug": "0.0.29",
- "@types/express": "^4.0.33",
"@types/mocha": "^2.2.32",
- "@types/morgan": "^1.7.32",
- "@types/node": "^6.0.46",
- "body-parser": "^1.18.2",
"chai": "^3.5.0",
"chai-http": "^3.0.0",
- "express": "^4.16.2",
- "gulp": "^3.9.1",
- "gulp-typescript": "^3.1.1",
"mocha": "^3.1.2",
- "morgan": "^1.9.0",
- "nodemon": "^1.14.10",
- "ts-node": "^3.3.0",
- "typescript": "^2.6.2"
+ "nodemon": "^1.14.10"
},
"dependencies": {
- "all": "0.0.0"
+ "body-parser": "^1.18.2",
+ "@types/body-parser": "0.0.33",
+ "@types/express": "^4.0.33",
+ "@types/morgan": "^1.7.32",
+ "ts-node": "^3.3.0",
+ "morgan": "^1.9.0",
+ "express": "^4.16.2",
+ "@types/node": "^6.0.46"
}
}
diff --git a/runmenode.sh b/runmenode.sh
index 16c023c..f41a2ac 100755
--- a/runmenode.sh
+++ b/runmenode.sh
@@ -1,3 +1,2 @@
#!/bin/sh
-npm run build
npm start