mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
task cleanup
This commit is contained in:
parent
6c136011d2
commit
ce1e32bdcf
@ -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}'",
|
||||
|
@ -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"]
|
||||
|
||||
|
@ -1,6 +0,0 @@
|
||||
{
|
||||
"watch": ["src"],
|
||||
"ext": "ts",
|
||||
"ignore": ["src/**/*.spec.ts"],
|
||||
"exec": "ts-node src/index.ts"
|
||||
}
|
@ -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",
|
||||
|
@ -1,5 +1,5 @@
|
||||
import request from 'supertest'
|
||||
import server from '../src'
|
||||
import server from '../src/server'
|
||||
import {} from 'jasmine'
|
||||
|
||||
afterAll(done => {
|
||||
|
Loading…
Reference in New Issue
Block a user