task cleanup

This commit is contained in:
Matthias Kretschmann 2019-04-12 16:26:13 +02:00
parent 6c136011d2
commit ce1e32bdcf
Signed by: m
GPG Key ID: 606EEEF3C479A91F
6 changed files with 9 additions and 17 deletions

View File

@ -5,7 +5,7 @@
"license": "Apache-2.0",
"scripts": {
"install": "./scripts/install.sh",
"start": "concurrently \"cd client && npm run start\" \"cd server && npm run start-watch\"",
"start": "concurrently \"cd client && npm start\" \"cd server && npm start\"",
"build": "./scripts/build.sh",
"test": "npm run lint && scripts/test.sh",
"format:js": "prettier --parser typescript --write '**/*.{js,jsx,ts,tsx}'",

View File

@ -5,9 +5,8 @@ WORKDIR /app/backend/
COPY . .
RUN npm install
RUN npm install && \
npm run build
RUN npm run build
ENTRYPOINT ["npm", "run", "start"]
ENTRYPOINT ["npm", "run", "serve"]

View File

@ -1,6 +0,0 @@
{
"watch": ["src"],
"ext": "ts",
"ignore": ["src/**/*.spec.ts"],
"exec": "ts-node src/index.ts"
}

View File

@ -3,14 +3,13 @@
"description": "Ocean Protocol marketplace backend.",
"version": "1.0.0",
"license": "Apache-2.0",
"main": "dist/index.js",
"main": "dist/server.js",
"scripts": {
"start": "node dist/index.js",
"start-watch": "nodemon",
"start": "nodemon --exec ts-node src/server.ts",
"serve": "node dist/server.js",
"build": "tsc",
"watch": "tsc -w",
"test": "jest --coverage",
"watch-test": "npm run test --watchAll"
"test-watch": "npm run test --watchAll"
},
"dependencies": {
"body-parser": "^1.18.3",

View File

@ -1,5 +1,5 @@
import request from 'supertest'
import server from '../src'
import server from '../src/server'
import {} from 'jasmine'
afterAll(done => {