1
0

added a dev container

this is to make testing the backend more consistent with the actual runtime environment
This commit is contained in:
Nicola Clark 2024-10-17 18:44:12 +00:00
parent 6fd6ce9e40
commit 6985b11352
Signed by: nicola
GPG Key ID: 3E1710E7FF08956C
4 changed files with 36 additions and 2 deletions

8
.devcontainer/Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM mcr.microsoft.com/devcontainers/javascript-node:20-bookworm
# RUN apt-get update && \
# export DEBIAN_FRONTEND=noninteractive && \
# apt-get install -y pandoc texlive
# ^^^ that's a surprise tool that will help us later ^^^
RUN npm install

View File

@ -0,0 +1,13 @@
{
"build": { "dockerfile": "Dockerfile" },
"customizations": {
"vscode": {
"extensions": [
"esbenp.prettier-vscode",
"streetsidesoftware.code-spell-checker",
"svelte.svelte-vscode"
]
}
},
"forwardPorts": [5173]
}

15
.vscode/settings.json vendored
View File

@ -1,6 +1,8 @@
{ {
"cSpell.words": [ "cSpell.words": [
"devcontainers",
"doctypes", "doctypes",
"esbenp",
"rehype", "rehype",
"resumarkdown", "resumarkdown",
"résumé", "résumé",
@ -8,5 +10,16 @@
"tablist", "tablist",
"testid", "testid",
"textbox" "textbox"
] ],
"editor.formatOnSave": true,
"editor.insertSpaces": true,
"editor.tabSize": 2,
"files.insertFinalNewline": true,
"svelte.enable-ts-plugin": true,
"[javascript][json][jsonc][typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[svelte]": {
"editor.defaultFormatter": "svelte.svelte-vscode"
}
} }

View File

@ -3,7 +3,7 @@
"version": "0.0.1", "version": "0.0.1",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "vite dev", "dev": "vite dev --host",
"build": "vite build", "build": "vite build",
"preview": "vite preview", "preview": "vite preview",
"test": "npm run test:integration && npm run test:unit", "test": "npm run test:integration && npm run test:unit",