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",
|
"license": "Apache-2.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"install": "./scripts/install.sh",
|
"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",
|
"build": "./scripts/build.sh",
|
||||||
"test": "npm run lint && scripts/test.sh",
|
"test": "npm run lint && scripts/test.sh",
|
||||||
"format:js": "prettier --parser typescript --write '**/*.{js,jsx,ts,tsx}'",
|
"format:js": "prettier --parser typescript --write '**/*.{js,jsx,ts,tsx}'",
|
||||||
|
@ -5,9 +5,8 @@ WORKDIR /app/backend/
|
|||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN npm install
|
RUN npm install && \
|
||||||
|
npm run build
|
||||||
|
|
||||||
RUN npm run build
|
ENTRYPOINT ["npm", "run", "serve"]
|
||||||
|
|
||||||
ENTRYPOINT ["npm", "run", "start"]
|
|
||||||
|
|
||||||
|
@ -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.",
|
"description": "Ocean Protocol marketplace backend.",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"main": "dist/index.js",
|
"main": "dist/server.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node dist/index.js",
|
"start": "nodemon --exec ts-node src/server.ts",
|
||||||
"start-watch": "nodemon",
|
"serve": "node dist/server.js",
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"watch": "tsc -w",
|
|
||||||
"test": "jest --coverage",
|
"test": "jest --coverage",
|
||||||
"watch-test": "npm run test --watchAll"
|
"test-watch": "npm run test --watchAll"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"body-parser": "^1.18.3",
|
"body-parser": "^1.18.3",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import request from 'supertest'
|
import request from 'supertest'
|
||||||
import server from '../src'
|
import server from '../src/server'
|
||||||
import {} from 'jasmine'
|
import {} from 'jasmine'
|
||||||
|
|
||||||
afterAll(done => {
|
afterAll(done => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user