|
| 1 | +{ |
| 2 | + "name": "Service name goes here", |
| 3 | + "portsAttributes": { |
| 4 | + "3000": { |
| 5 | + "label": "Running prototype", |
| 6 | + // -------------------------------- |
| 7 | + // onAutoForward possible options |
| 8 | + // -------------------------------- |
| 9 | + // you can change the value to one of the following possible options: |
| 10 | + // 'notify' (shows a prompt), |
| 11 | + // 'silent' (does nothing) |
| 12 | + // 'openBrowser' (opens the prototype URL in a browser window/tab) |
| 13 | + // 'openPrview' (opens the codespaces preview window to present the running prototype to the user) |
| 14 | + "onAutoForward": "openBrowser" |
| 15 | + } |
| 16 | + }, |
| 17 | + // forward the port for the browersync process |
| 18 | + "forwardPorts": [3000], |
| 19 | + "otherPortsAttributes": { "onAutoForward": "ignore" }, |
| 20 | + // when created - sets the git merge statergy to rebase to hopefully make easier time of merging |
| 21 | + "onCreateCommand": "git config --global pull.rebase true", |
| 22 | + // after creation - installs the node packages |
| 23 | + "postCreateCommand": "npm install", |
| 24 | + // A command to run each time a tool has successfully attached to the container |
| 25 | + "postAttachCommand": { |
| 26 | + "server": "npm start" |
| 27 | + }, |
| 28 | + // codespace customisations |
| 29 | + "customizations": { |
| 30 | + // Configure properties specific to VS Code web-basde IDE used within codespaces. |
| 31 | + "vscode": { |
| 32 | + // editor settings |
| 33 | + "settings": { |
| 34 | + // Turn on word wrapping by default |
| 35 | + "editor.wordWrap": "on", |
| 36 | + // Set default tab size to 2 spaces and use spaces not tabs |
| 37 | + "editor.tabSize": 2, |
| 38 | + "editor.insertSpaces": true, |
| 39 | + "editor.detectIndentation": false, |
| 40 | + "[nunjucks]": { |
| 41 | + "editor.tabSize": 2 |
| 42 | + }, |
| 43 | + "[html]": { |
| 44 | + "editor.tabSize": 2 |
| 45 | + }, |
| 46 | + "[css]": { |
| 47 | + "editor.tabSize": 2 |
| 48 | + }, |
| 49 | + "[javascript]": { |
| 50 | + "editor.tabSize": 2 |
| 51 | + }, |
| 52 | + // uncomment the following lines to hide files not needed to update content |
| 53 | + // "files.exclude": { |
| 54 | + // "{docs,lib,linters,middleware,node_modules,public,tests,NHS111.Shared.Frontend}/": true, |
| 55 | + // "*{CHANGELOG,CONTRIBUTING}.md": true, |
| 56 | + // "app/{data,assets}/": true, |
| 57 | + // "app/*.js": true, |
| 58 | + // "*.{js,yml,json}": true, |
| 59 | + // ".*": true, |
| 60 | + // "LICENSE": true |
| 61 | + // }, |
| 62 | + // make emmet work within nunjucks |
| 63 | + "emmet.includeLanguages": { |
| 64 | + "njk": "html", |
| 65 | + "nunjucks": "html", |
| 66 | + "erb": "html", |
| 67 | + "jinja": "html", |
| 68 | + "jinja-html": "html", |
| 69 | + "markdown": "html" |
| 70 | + }, |
| 71 | + "files.associations": { |
| 72 | + "*.html": "nunjucks" |
| 73 | + }, |
| 74 | + "html.suggest.html5": true |
| 75 | + }, |
| 76 | + // bundle the following editor extensions |
| 77 | + "extensions": [ |
| 78 | + // nunjuck syntax highlighting |
| 79 | + "ginfuru.better-nunjucks", |
| 80 | + // File utilities like duplicate, move, rename, delete files |
| 81 | + "sleistner.vscode-fileutils" |
| 82 | + ] |
| 83 | + } |
| 84 | + } |
| 85 | +} |
0 commit comments