-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdevcontainer.json
More file actions
87 lines (87 loc) · 2.68 KB
/
Copy pathdevcontainer.json
File metadata and controls
87 lines (87 loc) · 2.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
{
"name": "Ubuntu",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/base:noble",
"features": {
"ghcr.io/devcontainers/features/node:1": {},
"ghcr.io/devcontainers/features/github-cli:1": {}
},
"portsAttributes": {
"3000": {
"label": "🚧 Origin",
"onAutoForward": "openPreview"
},
"7676": {
"label": "🌎 Compute",
"onAutoForward": "openPreview"
}
},
"updateContentCommand": {
"cinstall": "npm install",
"vinstall": "cd origin && npm install"
},
"postAttachCommand": {
"inform": "bash helpers/welcome.sh",
"build": "npm run start",
"origin": "cd origin && npx --yes serve --no-port-switching=true"
},
"waitFor": "updateContentCommand",
"customizations": {
"vscode": {
"extensions": [
"jkearins.action-buttons-ext@0.1.1",
"dbaeumer.vscode-eslint"
],
"settings": {
"files.exclude": {
"package-lock.json": true,
".gitignore": true,
"node_modules/": true
},
"editor.minimap.enabled": false,
"chat.sendElementsToChat.enabled": false,
"actionButtons": {
"commands": [
{
"name": "🌈 Prettify",
"singleInstance": true,
"useVsCodeApi": true,
"command": "editor.action.formatDocument",
"tooltip": "Tidy up your code"
},
{
"name": "💻 Terminal",
"singleInstance": true,
"useVsCodeApi": true,
"command": "workbench.action.terminal.toggleTerminal",
"tooltip": "Open a terminal"
},
{
"name": "🔎 Split",
"singleInstance": true,
"useVsCodeApi": true,
"command": "workbench.action.moveEditorToNextGroup",
"tooltip": "Move your active tab to the side"
},
{
"name": "🔗 Share",
"singleInstance": true,
"command": "bash helpers/share.sh",
"tooltip": "Grab a link to share your draft app"
},
{
"name": "🚀 Publish",
"singleInstance": true,
"command": "bash helpers/publish.sh",
"tooltip": "Publish your content to Fastly Compute"
}
],
"defaultColor": "none",
"reloadButton": null
}
}
}
}
}
