Skip to content

Commit 7388ca4

Browse files
Initial commit
0 parents  commit 7388ca4

File tree

142 files changed

+39492
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+39492
-0
lines changed

.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["@babel/preset-env"]
3+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
name: "\U0001F41B Report a bug or issue"
3+
about: "Report any bugs or issues you have come across, so that we can fix it."
4+
5+
---
6+
7+
# Bug Report
8+
9+
<!--
10+
Thanks for wanting to report an issue.
11+
12+
In order for the issue to be resolved as quickly as possible please provide as detailed information as possible.
13+
14+
Use the following headings as a guide.
15+
-->
16+
17+
## What is the issue?
18+
19+
<!-- Provide a detailed description of what the issue is, including what you
20+
expected to happen as well as what actually happened.
21+
-->
22+
23+
## What steps are required to reproduce the issue?
24+
25+
<!--
26+
If possible, include all steps required to recreate the issue whilst using an incognito/private browsing window.
27+
This will help to rule out any differences introduced via user installed extensions.
28+
-->
29+
30+
## What was the environment where this issue occurred?
31+
32+
<!--
33+
Include the following as a minimum e.g.
34+
* Device: Windows Surface Pro 4
35+
* Operating System: Windows 10
36+
* Browser: Google Chrome
37+
-->
38+
39+
* Device:
40+
* Operating System:
41+
* Browser:
42+
43+
## Is there anything else you think would be useful in recreating the issue?
44+
45+
<!--
46+
Screenshots, logs, repository link, supporting information etc
47+
-->

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
## Description
2+
3+
## Checklist
4+
5+
- [ ] Tested against our [testing policy](https://github.com/nhsuk/nhsuk-frontend/blob/master/docs/contributing/testing.md) (Resolution, Browser & Accessibility)
6+
- [ ] CHANGELOG entry

.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: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Pull request
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
push:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
name: Pull request
14+
runs-on: ubuntu-latest
15+
if: github.repository == 'nhsuk/nhsuk-prototype-kit'
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Install dependencies
21+
run: npm install
22+
23+
- name: Run linting
24+
run: npm run lint:js

.github/workflows/release.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Create release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
build:
10+
name: Create release
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
persist-credentials: false
17+
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: 20
21+
22+
- name: Install dependencies
23+
run: npm install
24+
25+
- name: Running Build
26+
run: npm run build
27+
28+
- name: Get package version
29+
id: get_version
30+
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
31+
32+
- name: Create release
33+
id: create_release
34+
uses: actions/create-release@v1
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
with:
38+
tag_name: ${{ github.ref }}
39+
release_name: ${{ github.ref }}
40+
draft: false
41+
prerelease: false

.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 eslint cache
51+
.eslintcache
52+
53+
# Optional REPL history
54+
.node_repl_history
55+
56+
# Output of 'npm pack'
57+
*.tgz
58+
59+
# dotenv environment variables file
60+
.env
61+
62+
# System Files
63+
.DS_Store
64+
Thumbs.db
65+
66+
# SonarQube
67+
.scannerwork
68+
69+
# Code coverage
70+
coverage

.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+
20

0 commit comments

Comments
 (0)