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
|
$ cd web
|
||||||
$ bun install
|
$ npm install
|
||||||
$ bun start
|
$ npm start
|
||||||
```
|
```
|
||||||
|
|
||||||
### Translation
|
### Translation
|
||||||
|
@ -23,8 +23,8 @@ $ bun start
|
||||||
|
|
||||||
```
|
```
|
||||||
$ cd web
|
$ cd web
|
||||||
$ bun install
|
$ npm install
|
||||||
$ bun run write-translations
|
$ npm run write-translations
|
||||||
```
|
```
|
||||||
|
|
||||||
2. You can now edit the `i18n/sl` translations. (todo: not sure how this works yet)
|
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
|
FROM node:lts as build
|
||||||
WORKDIR /app
|
# 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
|
WORKDIR /home/node/app
|
||||||
ADD bun.lockb bun.lockb
|
|
||||||
|
|
||||||
RUN bun install
|
COPY --chown=node:node . /home/node/app/
|
||||||
|
|
||||||
ADD . .
|
RUN npm install
|
||||||
|
RUN npm run typecheck
|
||||||
RUN bun run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM nginx:stable as production
|
FROM nginx:stable as production
|
||||||
WORKDIR /app
|
WORKDIR /home/node/app
|
||||||
# Copy what we've installed/built from production
|
# Copy what we've installed/built from production
|
||||||
COPY --chown=nobody:nogroup --from=build /home/node/app/build /usr/share/nginx/html/
|
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",
|
"serve": "docusaurus serve",
|
||||||
"write-translations": "docusaurus write-translations",
|
"write-translations": "docusaurus write-translations",
|
||||||
"write-heading-ids": "docusaurus write-heading-ids",
|
"write-heading-ids": "docusaurus write-heading-ids",
|
||||||
|
"typecheck": "tsc",
|
||||||
"build:docker": "docker build -t tjo-space ."
|
"build:docker": "docker build -t tjo-space ."
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
// This file is not used in compilation. It is here just for a nice editor experience.
|
// This file is not used in compilation. It is here just for a nice editor experience.
|
||||||
"extends": "@tsconfig/docusaurus/tsconfig.json",
|
"extends": "@tsconfig/docusaurus/tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
|
"moduleResolution": "Node16",
|
||||||
|
"module": "Node16",
|
||||||
"baseUrl": "."
|
"baseUrl": "."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue