Skip to content

Commit

Permalink
chore(devcontainer): update codespaces config for Vue 3
Browse files Browse the repository at this point in the history
  • Loading branch information
ferferga committed Jan 25, 2023
1 parent 233b49d commit cc3f507
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 46 deletions.
18 changes: 0 additions & 18 deletions .devcontainer/Dockerfile

This file was deleted.

36 changes: 14 additions & 22 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,19 @@
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.134.1/containers/typescript-node
{
"name": "Node.js & TypeScript",
"build": {
"dockerfile": "Dockerfile",
// Update 'VARIANT' to pick a Node version: 10, 12, 14...
"args": {
"VARIANT": "18"
}
"name": "jellyfin-vue Codespace (with support for Tauri development)",
"image": "mcr.microsoft.com/devcontainers/typescript-node:0-18",
"features": {
"ghcr.io/devcontainers/features/rust:1": {}
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"octref.vetur",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"lokalise.i18n-ally",
"ryanluker.vscode-coverage-gutters"
],
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"containerEnv": { "SHELL": "/bin/bash" },
"forwardPorts": [3000],
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "npm install",
// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
// "remoteUser": "node"
"portsAttributes": {
"3000": {
"label": "Vite server",
"onAutoForward": "notify"
}
},
"postCreateCommand": "npm ci",
"postAttachCommand": "cat .vscode/extensions.json | jq -r .recommendations[] | xargs -n 1 code --install-extension",
"hostRequirements": { "cpus": 4, "memory": "6gb" },
"mounts": ["source=jellyfin-vue-history,target=/commandhistory,type=volume"]
}
11 changes: 5 additions & 6 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp

// List of extensions which should be recommended for users of this workspace.
"recommendations": [
"antfu.vite",
"antfu.browse-lite",
"antfu.iconify",
"aaron-bond.better-comments",
"eamodio.gitlens",
"Vue.volar",
"Vue.vscode-typescript-vue-plugin",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"lokalise.i18n-ally",
"ryanluker.vscode-coverage-gutters"
],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": []
"unwantedRecommendations": ["octref.vetur"]
}

0 comments on commit cc3f507

Please sign in to comment.