From c73fc308024c2bbbb2ecba8f2ef10c47f9ef5304 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Wed, 3 Jun 2020 09:18:49 +0200 Subject: [PATCH] Adding a Yarn command to profile --- back/package.json | 1 + docker-compose.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/back/package.json b/back/package.json index e75b2146..ca649707 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 ca2197a8..e6d3607a 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