Skip to content

Commit e3109b9

Browse files
authored
Initial commit
0 parents  commit e3109b9

23 files changed

Lines changed: 5429 additions & 0 deletions

.devcontainer/devcontainer.json

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
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+
}

.editorconfig

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*.scss]
5+
indent_size = 2
6+
indent_style = space
7+
charset = utf-8
8+
end_of_line = lf
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
12+
[*.{html,njk}]
13+
indent_size = 2
14+
indent_style = space
15+
charset = utf-8
16+
end_of_line = lf
17+
insert_final_newline = true
18+
trim_trailing_whitespace = true
19+
20+
[*.{cjs,js,mjs}]
21+
indent_size = 2
22+
indent_style = space
23+
charset = utf-8
24+
end_of_line = lf
25+
insert_final_newline = true
26+
trim_trailing_whitespace = true
27+
28+
[*.json]
29+
indent_size = 2
30+
indent_style = space
31+
charset = utf-8
32+
end_of_line = lf
33+
insert_final_newline = true
34+
trim_trailing_whitespace = true
35+
36+
[*.{yml,yaml}]
37+
indent_size = 2
38+
indent_style = space
39+
charset = utf-8
40+
end_of_line = lf
41+
insert_final_newline = true
42+
trim_trailing_whitespace = true
43+
44+
[**public**]
45+
indent_size = unset
46+
indent_style = unset
47+
charset = unset
48+
end_of_line = unset
49+
insert_final_newline = unset
50+
trim_trailing_whitespace = unset
51+
max_line_length = unset

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: 'github-actions'
4+
directory: '/'
5+
schedule:
6+
interval: 'daily'
7+
- package-ecosystem: 'npm'
8+
directory: '/'
9+
schedule:
10+
interval: 'daily'

.github/workflows/pull-request.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Pull request
2+
3+
on: pull_request
4+
5+
jobs:
6+
tests:
7+
name: Javascript tests
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
node: ['22', '24']
12+
steps:
13+
- uses: actions/checkout@v6
14+
- uses: actions/setup-node@v6
15+
with:
16+
node-version: ${{ matrix.node }}
17+
cache: 'npm'
18+
- name: Install dependencies
19+
run: npm ci

.gitignore

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
/dist
5+
/tmp
6+
/public
7+
8+
# Runtime data
9+
pids
10+
*.pid
11+
*.seed
12+
*.pid.lock
13+
14+
# node-waf configuration
15+
.lock-wscript
16+
17+
# IDEs and editors
18+
.idea
19+
.project
20+
.classpath
21+
.c9/
22+
*.launch
23+
.settings/
24+
*.sublime-workspace
25+
26+
# IDE - VSCode
27+
.vscode/*
28+
!.vscode/settings.json
29+
!.vscode/tasks.json
30+
!.vscode/launch.json
31+
!.vscode/extensions.json
32+
33+
# misc
34+
.sass-cache
35+
connect.lock
36+
typings
37+
38+
# Logs
39+
logs
40+
*.log
41+
npm-debug.log*
42+
43+
# Dependency directories
44+
node_modules/
45+
jspm_packages/
46+
47+
# Optional npm cache directory
48+
.npm
49+
50+
# Optional REPL history
51+
.node_repl_history
52+
53+
# Output of 'npm pack'
54+
*.tgz
55+
56+
# Environment variables file
57+
.env
58+
59+
# System Files
60+
.DS_Store
61+
Thumbs.db
62+
63+
# SonarQube
64+
.scannerwork
65+
66+
# Code coverage
67+
coverage
68+
69+
# ESlint cache
70+
.cache

.gitpod.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/
2+
tasks:
3+
- init: npm install # runs during prebuild
4+
command: npm run watch
5+
6+
github:
7+
prebuilds:
8+
# enable for the default branch (defaults to true)
9+
master: true
10+
# enable for all branches in this repo (defaults to false)
11+
branches: true
12+
# enable for pull requests coming from this repo (defaults to true)
13+
pullRequests: true
14+
# enable for pull requests coming from forks (defaults to false)
15+
pullRequestsFromForks: true
16+
# add a check to pull requests (defaults to true)
17+
addCheck: true
18+
# add a "Review in Gitpod" button as a comment to pull requests (defaults to false)
19+
addComment: true
20+
# add a "Review in Gitpod" button to the pull request's description (defaults to false)
21+
addBadge: false
22+
23+
# List the ports to expose. Learn more https://www.gitpod.io/docs/config-ports/
24+
ports:
25+
- port: 3000
26+
onOpen: open-preview

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
24

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Your service prototype changelog
2+
3+
You can use this file to document the notable changes to your prototype.
4+
5+
See [Keep a changelog](https://keepachangelog.com/en/1.1.0/).

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019 NHS.UK
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Your service name goes here
2+
3+
This repo is used as a template for creating new prototypes using the NHS Prototype kit.
4+
5+
You can edit this README file to add any useful details about running your prototype.

0 commit comments

Comments
 (0)