Skip to content

Commit 78dc45b

Browse files
authored
Merge pull request #6 from live-apps-in/migration-InversifyJS-to-NestJSv10
feat - migrate from InversifyJS to NestJS v10
2 parents bda554b + 567e377 commit 78dc45b

File tree

176 files changed

+5786
-9171
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+5786
-9171
lines changed

.env.tpl

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,11 @@ PORT=5000
22
NODE_ENV=dev
33
DEPLOYMENT_MODE=standalone
44

5-
#kitty chan dev
6-
KITTY_CHAN_TOKEN=YOUR_DISCORD_BOT_TOKEN
7-
KITTY_CHAN_ID=YOUR_DISCORD_BOT_ID
8-
95
#Discord
106
DISCORD_CLIENT_ID=YOUR_DISCORD_CLIENT_ID
7+
DISCORD_BOT_TOKEN=YOUR_DISCORD_BOT_TOKEN
118
DISCORD_CLIENT_SECRET=YOUR_DISCORD_CLIENT_SECRET
129
DISCORD_API=https://discord.com/api/v10
13-
GAMERS_HUB_GUILD_ID=REPLACE_WITH_YOUR_HOME_GUILD
1410

1511
#Redis
1612
REDIS_HOST=kittychan-redis

.eslintrc.json

-38
This file was deleted.

.github/workflows/deploy.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ jobs:
2727
- name: Build Docker image
2828
run: |
2929
docker build \
30-
--build-arg KITTY_CHAN_TOKEN=${{ secrets.KITTY_CHAN_TOKEN }} \
31-
--build-arg KITTY_CHAN_ID=${{ vars.KITTY_CHAN_ID }} \
3230
--build-arg DISCORD_CLIENT_ID=${{ vars.DISCORD_CLIENT_ID }} \
31+
--build-arg DISCORD_CLIENT_ID=${{ vars.DISCORD_BOT_TOKEN }} \
3332
--build-arg DISCORD_CLIENT_SECRET=${{ secrets.DISCORD_CLIENT_SECRET }} \
3433
--build-arg DISCORD_API=${{ vars.DISCORD_API }} \
3534
--build-arg GRPC_URL=${{ vars.GRPC_URL }} \

.gitignore

+41-91
Original file line numberDiff line numberDiff line change
@@ -1,106 +1,56 @@
1+
# compiled output
2+
/dist
3+
/node_modules
4+
/build
5+
16
# Logs
27
logs
38
*.log
49
npm-debug.log*
10+
pnpm-debug.log*
511
yarn-debug.log*
612
yarn-error.log*
713
lerna-debug.log*
814

9-
# Diagnostic reports (https://nodejs.org/api/report.html)
10-
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
15+
# OS
16+
.DS_Store
17+
18+
# Tests
19+
/coverage
20+
/.nyc_output
21+
22+
# IDEs and editors
23+
/.idea
24+
.project
25+
.classpath
26+
.c9/
27+
*.launch
28+
.settings/
29+
*.sublime-workspace
30+
31+
# IDE - VSCode
32+
.vscode/*
33+
!.vscode/settings.json
34+
!.vscode/tasks.json
35+
!.vscode/launch.json
36+
!.vscode/extensions.json
37+
38+
# dotenv environment variable files
39+
.env
40+
.env.development.local
41+
.env.test.local
42+
.env.production.local
43+
.env.local
44+
45+
# temp directory
46+
.temp
47+
.tmp
1148

1249
# Runtime data
1350
pids
1451
*.pid
1552
*.seed
1653
*.pid.lock
1754

18-
# Directory for instrumented libs generated by jscoverage/JSCover
19-
lib-cov
20-
21-
# Coverage directory used by tools like istanbul
22-
coverage
23-
*.lcov
24-
25-
# nyc test coverage
26-
.nyc_output
27-
28-
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29-
.grunt
30-
31-
# Bower dependency directory (https://bower.io/)
32-
bower_components
33-
34-
# node-waf configuration
35-
.lock-wscript
36-
37-
# Compiled binary addons (https://nodejs.org/api/addons.html)
38-
build/Release
39-
40-
# Dependency directories
41-
node_modules/
42-
jspm_packages/
43-
44-
# TypeScript v1 declaration files
45-
typings/
46-
47-
# TypeScript cache
48-
*.tsbuildinfo
49-
50-
# Optional npm cache directory
51-
.npm
52-
53-
# Optional eslint cache
54-
.eslintcache
55-
56-
# Microbundle cache
57-
.rpt2_cache/
58-
.rts2_cache_cjs/
59-
.rts2_cache_es/
60-
.rts2_cache_umd/
61-
62-
# Optional REPL history
63-
.node_repl_history
64-
65-
# Output of 'npm pack'
66-
*.tgz
67-
68-
# Yarn Integrity file
69-
.yarn-integrity
70-
71-
# dotenv environment variables file
72-
.env
73-
.env.test
74-
75-
# parcel-bundler cache (https://parceljs.org/)
76-
.cache
77-
78-
# Next.js build output
79-
.next
80-
81-
# Nuxt.js build / generate output
82-
.nuxt
83-
dist
84-
85-
# Gatsby files
86-
.cache/
87-
# Comment in the public line in if your project uses Gatsby and *not* Next.js
88-
# https://nextjs.org/blog/next-9-1#public-directory-support
89-
# public
90-
91-
# vuepress build output
92-
.vuepress/dist
93-
94-
# Serverless directories
95-
.serverless/
96-
97-
# FuseBox cache
98-
.fusebox/
99-
100-
# DynamoDB Local files
101-
.dynamodb/
102-
103-
# TernJS port file
104-
.tern-port
105-
106-
.VSCodeCounter
55+
# Diagnostic reports (https://nodejs.org/api/report.html)
56+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

.husky/pre-commit

-4
This file was deleted.

.husky/pre-push

-4
This file was deleted.

.vscode/settings.json

-2
This file was deleted.

Dockerfile

+3-6
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,12 @@ COPY package.json .
44
RUN npm install -g typescript cpx
55
RUN npm install
66

7-
ARG KITTY_CHAN_TOKEN
8-
ENV KITTY_CHAN_TOKEN $KITTY_CHAN_TOKEN
9-
10-
ARG KITTY_CHAN_ID
11-
ENV KITTY_CHAN_ID $KITTY_CHAN_ID
12-
137
ARG DISCORD_CLIENT_ID
148
ENV DISCORD_CLIENT_ID $DISCORD_CLIENT_ID
159

10+
ARG DISCORD_BOT_TOKEN
11+
ENV DISCORD_BOT_TOKEN $DISCORD_BOT_TOKEN
12+
1613
ARG DISCORD_CLIENT_SECRET
1714
ENV DISCORD_CLIENT_SECRET $DISCORD_CLIENT_SECRET
1815

babel.config.js

-1
This file was deleted.

build.sh

-3
This file was deleted.

jest.config.js

-10
This file was deleted.

migration/mongodb/portals.json

-12
This file was deleted.

nest-cli.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "https://json.schemastore.org/nest-cli",
3+
"collection": "@nestjs/schematics",
4+
"sourceRoot": "src",
5+
"compilerOptions": {
6+
"assets": ["**/*.proto"],
7+
"watchAssets": true,
8+
"deleteOutDir": true
9+
}
10+
}

0 commit comments

Comments
 (0)