added a dev container
this is to make testing the backend more consistent with the actual runtime environment
This commit is contained in:
parent
6fd6ce9e40
commit
6985b11352
8
.devcontainer/Dockerfile
Normal file
8
.devcontainer/Dockerfile
Normal 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
|
13
.devcontainer/devcontainer.json
Normal file
13
.devcontainer/devcontainer.json
Normal 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
15
.vscode/settings.json
vendored
@ -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"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user