From: David NĂ©grier Date: Wed, 3 Jun 2020 07:18:49 +0000 (+0200) Subject: Adding a Yarn command to profile X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c73fc308024c2bbbb2ecba8f2ef10c47f9ef5304;p=libreadventure.git Adding a Yarn command to profile --- diff --git a/back/package.json b/back/package.json index e75b214..ca64970 100644 --- a/back/package.json +++ b/back/package.json @@ -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" diff --git a/docker-compose.yaml b/docker-compose.yaml index ca2197a..e6d3607 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -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