Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

Commit 2d77738

Browse files
committed
feat: initial commit
0 parents  commit 2d77738

34 files changed

Lines changed: 8857 additions & 0 deletions
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Test and Release
2+
3+
on:
4+
push:
5+
6+
permissions:
7+
contents: write
8+
pages: write
9+
id-token: write
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
VERSION: ${{ github.sha }}
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- uses: actions/checkout@v6
25+
26+
- uses: actions/setup-node@v6
27+
with:
28+
node-version: "24.x"
29+
cache: "npm"
30+
registry-url: "https://registry.npmjs.org"
31+
32+
- name: Install dependencies
33+
run: npm ci --no-audit
34+
env:
35+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_RO }}
36+
37+
- name: Compile TypeScript
38+
run: npx tsgo
39+
40+
- name: Check source code with eslint
41+
run: npx eslint ./
42+
43+
- name: Check if source code is properly formatted
44+
run: npx prettier -c ./
45+
46+
- name: Run tests
47+
run: npm test
48+
49+
- name: Ensure it builds
50+
run: |
51+
npm run build
52+
cp -L -r ./static ./build
53+
54+
- name: Upload artifact
55+
uses: actions/upload-pages-artifact@v3
56+
with:
57+
path: ./build
58+
59+
deploy:
60+
needs: build
61+
runs-on: ubuntu-latest
62+
environment: github-pages
63+
64+
steps:
65+
- name: Deploy to GitHub Pages
66+
id: deployment
67+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#
2+
# This `.gitignore` file must only cover the artifacts created by the
3+
# source code in this project.
4+
#
5+
# This is explained in detail here:
6+
# https://github.com/coderbyheart/first-principles/issues/30
7+
#
8+
# Artifacts caused by the personal choice of editor the environment of a
9+
# developer can easily be ignored using the developer's personal global
10+
# `.gitignore` file:
11+
# https://docs.github.com/en/get-started/git-basics/ignoring-files#configuring-ignored-files-for-all-repositories-on-your-computer
12+
#
13+
node_modules/
14+
build/
15+
cdk.out/
16+
static/flags/
17+
test-results/
18+
db/

.husky/commit-msg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx commitlint --edit $1

.husky/pre-commit

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
npx lint-staged
2+
npx tsgo
3+
npm test

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@jsr:registry=https://npm.jsr.io

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
cdk.out/
2+
build/

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# My Nordic Playground
2+
3+
## Setup
4+
5+
Ensure you have installed Node.js 24 on your system.
6+
7+
```bash
8+
git clone https://github.com/nRFCloud/my-nordic-playground.git
9+
cd my-nordic-playground
10+
npm ci
11+
```
12+
13+
## Run local development server
14+
15+
```bash
16+
npm start
17+
```
18+
19+
## Usage
20+
21+
Open <http://localhost:8080/> in your browser.
22+
23+
Open the developer console and enable "Preserve Logs".
24+
25+
Then, click "Log-in with My Nordic", and observe the requests.

cdk.context.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"acknowledged-issue-numbers": [34892],
3+
"@aws-cdk/customresources:installLatestAwsSdkDefault": false,
4+
"hosted-zone:account=054037113426:domainName=id.nrfcloud.com:region=us-east-1": {
5+
"Id": "/hostedzone/Z02005963M4VFZCBWN4DQ",
6+
"Name": "id.nrfcloud.com."
7+
},
8+
"hosted-zone:account=054037113426:domainName=id.nrfcloud.com:region=eu-north-1": {
9+
"Id": "/hostedzone/Z02005963M4VFZCBWN4DQ",
10+
"Name": "id.nrfcloud.com."
11+
}
12+
}

commitlint.config.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = { extends: ["@commitlint/config-conventional"] };

eslint.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import config from '@bifravst/eslint-config-typescript'
2+
export default [
3+
...config,
4+
{
5+
ignores: ['cdk.out/*', 'build/*'],
6+
},
7+
]

0 commit comments

Comments
 (0)