chore: switch web back to node
This commit is contained in:
parent
28e60b3d29
commit
864a87f6f5
6 changed files with 15869 additions and 13 deletions
|
@ -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)
|
||||
|
|
|
@ -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/
|
||||
|
||||
|
|
BIN
web/bun.lockb
BIN
web/bun.lockb
Binary file not shown.
15852
web/package-lock.json
generated
Normal file
15852
web/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -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": {
|
||||
|
|
|
@ -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": "."
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue