Skip to content

Commit

Permalink
refactor: remove config package
Browse files Browse the repository at this point in the history
  • Loading branch information
Murzbul committed Mar 17, 2024
1 parent 17cc525 commit 9b5a5be
Show file tree
Hide file tree
Showing 39 changed files with 222 additions and 587 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM digichanges/nexp:1.3 AS dev
FROM digichanges/nexp:1.4 AS dev

WORKDIR /home/node

Expand Down Expand Up @@ -28,7 +28,7 @@ RUN pnpm install --production --ignore-scripts \
&& cd node_modules/bcrypt \
&& npm rebuild bcrypt --build-from-source

FROM digichanges/nexp:1.3 AS prod
FROM digichanges/nexp:1.4 AS prod

ENV NODE_ENV production

Expand Down
87 changes: 0 additions & 87 deletions config/custom-environment-variables.json

This file was deleted.

103 changes: 0 additions & 103 deletions config/default.json

This file was deleted.

7 changes: 0 additions & 7 deletions config/development.json

This file was deleted.

9 changes: 0 additions & 9 deletions config/info.json

This file was deleted.

17 changes: 0 additions & 17 deletions config/production.json

This file was deleted.

13 changes: 0 additions & 13 deletions config/test.json

This file was deleted.

2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ services:
restart: always
tty: false
stdin_open: false
entrypoint: ["dumb-init", "pnpm", "worker-dev"]
entrypoint: ["dumb-init", "pnpm", "dev-worker"]
build:
context: .
dockerfile: Dockerfile
Expand Down
13 changes: 13 additions & 0 deletions nodemon-worker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"verbose": true,
"ignore": [
".git",
"node_modules/**/node_modules"
],
"watch": [
"src/*"
],
"exec": "npm run build && node --inspect=0.0.0.0:9229 ./dist/src/worker.js",
"legacyWatch": true,
"ext": "js,ts,json,hbs"
}
2 changes: 1 addition & 1 deletion nodemon.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"watch": [
"src/*"
],
"exec": "npm run build && node --inspect=0.0.0.0:9229 ./dist/src/index.js",
"exec": "npm run build && node --env-file=.env --inspect=0.0.0.0:9229 ./dist/src/index.js",
"legacyWatch": true,
"ext": "js,ts,json,hbs"
}
12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"cruiser": "depcruise src",
"clean": "rimraf dist/src/*",
"command": "ts-node src/command.ts",
"cpy-ci": "cp .env.dev .env",
"dev": "nodemon",
"dev-worker": "nodemon -c nodemon-worker.json",
"login-infisical": "infisical login",
"pull:env": "infisical pull",
"docker-command": "docker-compose exec node pnpm command",
Expand All @@ -26,7 +26,6 @@
"test-watch": "jest --watch --silent --coverage=false",
"tsc": "tsc",
"ts-check": "tsc -p tsconfig.json --noEmit",
"worker-dev": "node dist/src/worker.js",
"sync:db": "ts-node src/Main/Presentation/Commands/SynchronizeDbCommand.ts"
},
"keywords": [],
Expand All @@ -40,19 +39,18 @@
"@fastify/helmet": "^11.1.1",
"@fastify/multipart": "^8.1.0",
"@godaddy/terminus": "^4.12.1",
"@mikro-orm/core": "^6.1.5",
"@mikro-orm/postgresql": "^6.1.5",
"@mikro-orm/core": "^6.1.9",
"@mikro-orm/postgresql": "^6.1.9",
"@supabase/supabase-js": "^2.39.7",
"amqplib": "^0.10.3",
"axios": "^1.6.7",
"bcrypt": "^5.1.1",
"commander": "^10.0.1",
"config": "^3.3.11",
"dayjs": "^1.11.10",
"dependency-cruiser": "^16.2.1",
"dependency-cruiser": "^16.2.3",
"dotenv": "^16.4.5",
"envalid": "^8.0.0",
"fastify": "^4.26.1",
"fastify": "^4.26.2",
"handlebars": "^4.7.8",
"helmet": "^7.1.0",
"jwt-simple": "^0.5.6",
Expand Down
10 changes: 0 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9b5a5be

Please sign in to comment.