Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update site to v5.2 of the kit #188

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"name": "NHS Prototype Kit",
"image": "mcr.microsoft.com/devcontainers/universal:2",
// codespaces seems to have an issue using port 2000 so setting to 2001 for the NHS Prototype Kit
"runArgs": ["--env", "PORT=2001"],
"portsAttributes": {
"3001": {
"label": "Running prototype",
// --------------------------------
// onAutoForward possible options
// --------------------------------
// you can change the value to one of the following possible options:
// 'notify' (shows a prompt),
// 'silent' (does nothing)
// 'openBrowser' (opens the prototype URL in a browser window/tab)
// 'openPrview' (opens the codespaces preview window to present the running prototype to the user)
"onAutoForward": "openPreview"
}
},
// forward the port for the browersync process
"forwardPorts": [3001],
"otherPortsAttributes": { "onAutoForward": "ignore" },
// when created - sets the git merge statergy to rebase to hopefully make easier time of merging
"onCreateCommand": "git config --global pull.rebase true",
// after creation - installs the node packages
"postCreateCommand": "npm install",
// A command to run each time a tool has successfully attached to the container
"postAttachCommand": {
"server": "npm run watch"
},
// codespace customisations
"customizations": {
// Configure properties specific to VS Code web-basde IDE used within codespaces.
"vscode": {
// editor settings
"settings": {
// uncomment the following lines to hide files not needed to update content
// "files.exclude": {
// "{docs,lib,linters,middleware,node_modules,public,tests,NHS111.Shared.Frontend}/": true,
// "*{CHANGELOG,CONTRIBUTING}.md": true,
// "app/{data,assets}/": true,
// "app/*.js": true,
// "*.{js,yml,json}": true,
// ".*": true,
// "LICENSE": true
// },
// make emmet work within nunjucks
"emmet.includeLanguages": {
"njk": "html",
"nunjucks": "html",
"erb": "html",
"jinja": "html",
"jinja-html": "html",
"markdown": "html"
},
"html.suggest.html5": true
},
// bundle the following editor extensions
"extensions": [
// nunjuck syntax highlighting
"douglaszaltron.nunjucks-vscode-extensionpack"
]
}
}
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ npm-debug.log*
node_modules/
jspm_packages/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

Expand Down
31 changes: 24 additions & 7 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,26 @@
# This configuration file was automatically generated by Gitpod.
# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml)
# and commit this file to your remote git repository to share the goodness with others.
# List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/
tasks:
- init: npm install # runs during prebuild
command: npm run watch

# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart
github:
prebuilds:
# enable for the default branch (defaults to true)
master: true
# enable for all branches in this repo (defaults to false)
branches: true
# enable for pull requests coming from this repo (defaults to true)
pullRequests: true
# enable for pull requests coming from forks (defaults to false)
pullRequestsFromForks: true
# add a check to pull requests (defaults to true)
addCheck: true
# add a "Review in Gitpod" button as a comment to pull requests (defaults to false)
addComment: true
# add a "Review in Gitpod" button to the pull request's description (defaults to false)
addBadge: false

tasks:
- init: npm install && npm run build
command: npm run start
# List the ports to expose. Learn more https://www.gitpod.io/docs/config-ports/
ports:
- port: 3000
onOpen: open-preview
Loading
Loading