Skip to content

Commit

Permalink
Merge pull request #10 from notdevcody/master
Browse files Browse the repository at this point in the history
feat!: Bun i Discord.js 14
  • Loading branch information
awaluk authored Apr 14, 2024
2 parents 0349968 + 24a16db commit da87d1a
Show file tree
Hide file tree
Showing 10 changed files with 57 additions and 2,571 deletions.
4 changes: 4 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"tabWidth": 4,
"singleQuote": true
}
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM node:14-alpine
FROM oven/bun:1.1.2

ENV NODE_ENV=production
WORKDIR /app

COPY ./package*.json ./
COPY ./package*.json bun.lockb ./

RUN npm ci
RUN bun install --frozen-lockfile

COPY . .

CMD ["npm", "run", "start:prod"]
CMD ["bun", "run", "start:prod"]
8 changes: 4 additions & 4 deletions Dockerfile-dev
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM node:14-alpine
FROM oven/bun:1.1.2

WORKDIR /app

COPY ./package*.json ./
COPY ./package*.json bun.lockb ./

RUN npm ci
RUN bun install --frozen-lockfile

COPY . .

CMD ["npm", "run", "start:watch"]
CMD ["bun", "run", "start:watch"]
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ Używany na [naszym serwerze Discord](https://forum.pasja-informatyki.pl/chat-di
## Uruchomienie

1. Przygotuj plik `.env` na podstawie `.env.example` lub zdefiniuj potrzebne zmienne środowiskowe.
2. `npm install`
3. `node main.js`
2. `bun install`
3. `bun start:prod` lub `bun start:watch` w środowisku progamisty
Binary file added bun.lockb
Binary file not shown.
34 changes: 0 additions & 34 deletions main.js

This file was deleted.

Loading

0 comments on commit da87d1a

Please sign in to comment.