Adding a Yarn command to profile

This commit is contained in:
David Négrier 2020-06-03 09:18:49 +02:00
parent 2dc682ea72
commit c73fc30802
2 changed files with 2 additions and 0 deletions

View file

@ -7,6 +7,7 @@
"tsc": "tsc",
"dev": "ts-node-dev --respawn --transpileOnly ./server.ts",
"prod": "tsc && node ./dist/server.js",
"profile": "tsc && node --prof ./dist/server.js",
"test": "ts-node node_modules/jasmine/bin/jasmine --config=jasmine.json",
"lint": "node_modules/.bin/eslint src/ . --ext .ts",
"fix": "node_modules/.bin/eslint --fix src/ . --ext .ts"

View file

@ -31,6 +31,7 @@ services:
back:
image: thecodingmachine/nodejs:12
command: yarn dev
#command: yarn run profile
environment:
STARTUP_COMMAND_1: yarn install
SECRET_KEY: yourSecretKey