Merge pull request #145 from thecodingmachine/profiling

Adding a Yarn command to profile
This commit is contained in:
David Négrier 2020-06-04 22:18:44 +02:00 committed by GitHub
commit d6031ba5c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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