Add dev container configuration

This commit is contained in:
Keavon Chambers 2024-01-24 23:04:00 +00:00
parent 63cf31d7d8
commit 99c199a8f6
6 changed files with 45 additions and 6 deletions

View file

@ -0,0 +1,34 @@
{
"image": "mcr.microsoft.com/devcontainers/universal:2",
"features": {
"ghcr.io/devcontainers/features/rust:1": {
"profile": "default"
},
"ghcr.io/devcontainers/features/node:1": {}
},
"onCreateCommand": "cargo install cargo-watch cargo-about",
"postCreateCommand": "cd frontend && npm install",
"customizations": {
"vscode": {
// NOTE: Keep this in sync with `.vscode/extensions.json`
"extensions": [
// Rust
"rust-lang.rust-analyzer",
"tamasfe.even-better-toml",
"serayuzgur.crates",
// Web
"dbaeumer.vscode-eslint",
"svelte.svelte-vscode",
"vitaliymaz.vscode-svg-previewer",
// Code quality
"wayou.vscode-todo-highlight",
"streetsidesoftware.code-spell-checker",
// Helpful
"mhutchie.git-graph",
"waderyan.gitblame",
"qezhu.gitlink",
"wmaurer.change-case"
]
}
}
}

3
.gitmodules vendored
View file

@ -1,3 +0,0 @@
[submodule "node-graph/dyn-any"]
path = node-graph/dyn-any
url = https://github.com/truedoctor/dyn-any

2
.nvmrc
View file

@ -1 +1 @@
16
20

View file

@ -1,7 +1,10 @@
{
// NOTE: Keep this in sync with `.devcontainer/devcontainer.json`
"recommendations": [
// Rust
"rust-lang.rust-analyzer",
"tamasfe.even-better-toml",
"serayuzgur.crates",
// Web
"dbaeumer.vscode-eslint",
"svelte.svelte-vscode",
@ -14,6 +17,5 @@
"waderyan.gitblame",
"qezhu.gitlink",
"wmaurer.change-case",
"shalimski.swapdiff"
]
}

View file

@ -35,7 +35,7 @@
"ts-node": "^10.9.1",
"typescript": "^5.0.4",
"vite": "^4.4.5",
"vite-multiple-assets": "^1.2.6"
"vite-multiple-assets": "1.2.6"
},
"optionalDependencies": {
"wasm-pack": "0.12.1"

6
package-lock.json generated Normal file
View file

@ -0,0 +1,6 @@
{
"name": "Graphite",
"lockfileVersion": 2,
"requires": true,
"packages": {}
}