chore: switch web back to node
All checks were successful
ci / docker (api) (push) Successful in 2m16s
ci / docker (web) (push) Successful in 4m50s

This commit is contained in:
Tine Jozelj 2023-09-11 14:33:16 +02:00
parent 28e60b3d29
commit 864a87f6f5
Signed by: mentos1386
SSH key fingerprint: SHA256:MNtTsLbihYaWF8j1fkOHfkKNlnN1JQfxEU/rBU8nCGw
6 changed files with 15869 additions and 13 deletions

View file

@ -14,8 +14,8 @@ $ bun start
```
$ cd web
$ bun install
$ bun start
$ npm install
$ npm start
```
### Translation
@ -23,8 +23,8 @@ $ bun start
```
$ cd web
$ bun install
$ bun run write-translations
$ npm install
$ npm run write-translations
```
2. You can now edit the `i18n/sl` translations. (todo: not sure how this works yet)

View file

@ -1,17 +1,18 @@
FROM oven/bun as build
WORKDIR /app
FROM node:lts as build
# Reduce npm log spam and colour during install within Docker
ENV NPM_CONFIG_LOGLEVEL=warn
ENV NPM_CONFIG_COLOR=false
ADD package.json package.json
ADD bun.lockb bun.lockb
WORKDIR /home/node/app
RUN bun install
COPY --chown=node:node . /home/node/app/
ADD . .
RUN bun run build
RUN npm install
RUN npm run typecheck
RUN npm run build
FROM nginx:stable as production
WORKDIR /app
WORKDIR /home/node/app
# Copy what we've installed/built from production
COPY --chown=nobody:nogroup --from=build /home/node/app/build /usr/share/nginx/html/

Binary file not shown.

15852
web/package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -12,6 +12,7 @@
"serve": "docusaurus serve",
"write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids",
"typecheck": "tsc",
"build:docker": "docker build -t tjo-space ."
},
"dependencies": {

View file

@ -2,6 +2,8 @@
// This file is not used in compilation. It is here just for a nice editor experience.
"extends": "@tsconfig/docusaurus/tsconfig.json",
"compilerOptions": {
"moduleResolution": "Node16",
"module": "Node16",
"baseUrl": "."
}
}