Skip to content

Commit 71259eb

Browse files

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,50 @@
11
{
22
"name": "Record a vaccination prototype",
33
"image": "mcr.microsoft.com/devcontainers/universal:2",
4+
// codespaces seems to have an issue using port 2000 so setting to 2001 for the NHS Prototype Kit
45
"runArgs": ["--env", "PORT=2001"],
56
"portsAttributes": {
67
"3001": {
78
"label": "Running prototype",
9+
// --------------------------------
10+
// onAutoForward possible options
11+
// --------------------------------
12+
// you can change the value to one of the following possible options:
13+
// 'notify' (shows a prompt),
14+
// 'silent' (does nothing)
15+
// 'openBrowser' (opens the prototype URL in a browser window/tab)
16+
// 'openPrview' (opens the codespaces preview window to present the running prototype to the user)
817
"onAutoForward": "openPreview"
918
}
1019
},
20+
// forward the port for the browersync process
1121
"forwardPorts": [3001],
1222
"otherPortsAttributes": { "onAutoForward": "ignore" },
23+
// when created - sets the git merge statergy to rebase to hopefully make easier time of merging
1324
"onCreateCommand": "git config --global pull.rebase true",
25+
// after creation - installs the node packages
1426
"postCreateCommand": "npm install",
27+
// A command to run each time a tool has successfully attached to the container
1528
"postAttachCommand": {
1629
"server": "npm run watch"
1730
},
31+
// codespace customisations
1832
"customizations": {
33+
// Configure properties specific to VS Code web-basde IDE used within codespaces.
1934
"vscode": {
35+
// editor settings
2036
"settings": {
37+
// uncomment the following lines to hide files not needed to update content
38+
// "files.exclude": {
39+
// "{docs,lib,linters,middleware,node_modules,public,tests,NHS111.Shared.Frontend}/": true,
40+
// "*{CHANGELOG,CONTRIBUTING}.md": true,
41+
// "app/{data,assets}/": true,
42+
// "app/*.js": true,
43+
// "*.{js,yml,json}": true,
44+
// ".*": true,
45+
// "LICENSE": true
46+
// },
47+
// make emmet work within nunjucks
2148
"emmet.includeLanguages": {
2249
"njk": "html",
2350
"nunjucks": "html",
@@ -28,7 +55,9 @@
2855
},
2956
"html.suggest.html5": true
3057
},
58+
// bundle the following editor extensions
3159
"extensions": [
60+
// nunjuck syntax highlighting
3261
"douglaszaltron.nunjucks-vscode-extensionpack"
3362
]
3463
}

0 commit comments

Comments
 (0)