Skip to content

Commit 600c399

Browse files
authored
Feat: Restructure Codebase (#57)
* chore: bump node to `24.14.0` * feat: add GUIDES_TRACKER_PATH env to docker dev service * feat: add tsc-alias and update scripts * chore: restructure codebase into features
1 parent f2f23ae commit 600c399

73 files changed

Lines changed: 710 additions & 272 deletions

Some content is hidden

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

.github/workflows/deploy-commands.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ jobs:
3232
# Run deploy script inside the already running Docker container
3333
# .env file should already exist from main deployment
3434
echo "Deploying Discord commands..."
35-
docker compose --profile prod exec bot-prod node dist/util/deploy.js
35+
docker compose --profile prod exec bot-prod node dist/scripts/deploy-commands.js
3636
3737
echo "Discord commands deployment completed!"

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
run: npm run typecheck
4040

4141
- name: Build
42-
run: npm run build:ci
42+
run: npm run build
4343

4444
- name: Test
4545
run: npm run test:ci

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v22.20.0
1+
v24.14.0

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ FROM deps-dev AS build
2727

2828
COPY . .
2929

30-
RUN pnpm run build:ci
30+
RUN pnpm run build
3131

3232
# Production stage - Minimal runtime image
3333
FROM base AS production
@@ -44,6 +44,9 @@ COPY package.json ./
4444
# Copy environment config file (public, non-secret)
4545
COPY .env.production ./
4646

47+
# Copy static assets (guides, tips, etc.) from the build stage
48+
COPY --from=build /app/assets ./assets
49+
4750
# Create data directory and set permissions for node user
4851
RUN mkdir -p /app/data && chown -R node:node /app/data
4952

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)