Skip to content

Commit da87d1a

Browse files
authored
Merge pull request #10 from notdevcody/master
feat!: Bun i Discord.js 14
2 parents 0349968 + 24a16db commit da87d1a

10 files changed

+57
-2571
lines changed

.prettierrc.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"tabWidth": 4,
3+
"singleQuote": true
4+
}

Dockerfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
FROM node:14-alpine
1+
FROM oven/bun:1.1.2
22

33
ENV NODE_ENV=production
44
WORKDIR /app
55

6-
COPY ./package*.json ./
6+
COPY ./package*.json bun.lockb ./
77

8-
RUN npm ci
8+
RUN bun install --frozen-lockfile
99

1010
COPY . .
1111

12-
CMD ["npm", "run", "start:prod"]
12+
CMD ["bun", "run", "start:prod"]

Dockerfile-dev

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
FROM node:14-alpine
1+
FROM oven/bun:1.1.2
22

33
WORKDIR /app
44

5-
COPY ./package*.json ./
5+
COPY ./package*.json bun.lockb ./
66

7-
RUN npm ci
7+
RUN bun install --frozen-lockfile
88

99
COPY . .
1010

11-
CMD ["npm", "run", "start:watch"]
11+
CMD ["bun", "run", "start:watch"]

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ Używany na [naszym serwerze Discord](https://forum.pasja-informatyki.pl/chat-di
77
## Uruchomienie
88

99
1. Przygotuj plik `.env` na podstawie `.env.example` lub zdefiniuj potrzebne zmienne środowiskowe.
10-
2. `npm install`
11-
3. `node main.js`
10+
2. `bun install`
11+
3. `bun start:prod` lub `bun start:watch` w środowisku progamisty

bun.lockb

10.5 KB
Binary file not shown.

main.js

-34
This file was deleted.

0 commit comments

Comments
 (0)