Skip to content

Commit

Permalink
Development (#2)
Browse files Browse the repository at this point in the history
* feat: random slide button in footer

* fix: added pnpm install on runner

* docs: all slugs added

* docs: more content

* fix: prettier

* Update slides-2024-04.json
  • Loading branch information
Ollie-nl authored Dec 23, 2024
1 parent 2202797 commit c67f833
Show file tree
Hide file tree
Showing 33 changed files with 20,443 additions and 253 deletions.
90 changes: 45 additions & 45 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,54 +3,54 @@ name: 🚀 Deploy to GitHub Pages
on:
push:
branches:
- main # Voer de workflow uit bij elke push naar main
- main # Voer de workflow uit bij elke push naar main

permissions:
contents: write # Vereist om GitHub Pages te deployen
contents: write # Vereist om GitHub Pages te deployen

jobs:
build-and-deploy:
runs-on: ubuntu-latest # Draai de pipeline op de nieuwste Ubuntu-versie
runs-on: ubuntu-latest # Draai de pipeline op de nieuwste Ubuntu-versie

steps:
- name: 📥 Checkout repository
uses: actions/checkout@v3

- name: 🏗️ Install Node.js
uses: actions/setup-node@v3
with:
node-version: '18' # Zorg ervoor dat de Node-versie klopt
cache: 'pnpm' # Cache voor pnpm

# Installeer PNPM vóór het installeren van dependencies
- name: 📦 Install PNPM
run: npm install -g pnpm # Installeer pnpm globaal
# Cache afhankelijkheden om builds te versnellen
- name: 📦 Cache dependencies
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
# Installeer afhankelijkheden met PNPM
- name: 📦 Install dependencies
run: pnpm install # Gebruik pnpm voor snelle dependency installatie
# Draai tests voor de build (maar faal niet als tests falen)
- name: 🧪 Run Tests
run: pnpm test || echo "Tests failed, but continuing build..."

# Bouw het project
- name: 🔨 Build project
run: pnpm run build

# Deploy naar GitHub Pages
- name: 🚀 Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }} # Gebruik de standaard GitHub token
publish_dir: ./docs # Map waarin de build staat na 'mv build docs'
keep_files: true # Behoud bestaande bestanden zoals _redirects
- name: 📥 Checkout repository
uses: actions/checkout@v3

- name: 🏗️ Install Node.js
uses: actions/setup-node@v3
with:
node-version: "18" # Zorg ervoor dat de Node-versie klopt
cache: "pnpm" # Cache voor pnpm

# Installeer PNPM vóór het installeren van dependencies
- name: 📦 Install PNPM
run: npm install -g pnpm # Installeer pnpm globaal

# Cache afhankelijkheden om builds te versnellen
- name: 📦 Cache dependencies
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
# Installeer afhankelijkheden met PNPM
- name: 📦 Install dependencies
run: pnpm install # Gebruik pnpm voor snelle dependency installatie

# Draai tests voor de build (maar faal niet als tests falen)
- name: 🧪 Run Tests
run: pnpm test || echo "Tests failed, but continuing build..."

# Bouw het project
- name: 🔨 Build project
run: pnpm run build

# Deploy naar GitHub Pages
- name: 🚀 Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }} # Gebruik de standaard GitHub token
publish_dir: ./docs # Map waarin de build staat na 'mv build docs'
keep_files: true # Behoud bestaande bestanden zoals _redirects
1 change: 0 additions & 1 deletion ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ De webapp is ontworpen om eenvoudig uitbreidbaar te zijn en maakt gebruik van Ja
- **CI/CD pipelines om automatisch te testen en te deployen bij iedere commit**.
- **More, more, mmmmoooore...**.


---

## 🚨 Let Op
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ cool-uncool/
---

## 🏅 Semantic Versioning

We gebruiken Semantic Versioning (SemVer) om releases te beheren:

1.0.0 = Major.Minor.Patch
Expand All @@ -179,6 +180,7 @@ git tag v1.0.0
git push origin v1.0.0

```

## Commit Message Conventies

```bash
Expand All @@ -192,6 +194,7 @@ git commit -m "style: Styling aan gebracht"
```

## Release Draaiend Houden (Tags & Releases)

```bash
git tag -a v1.1.0 -m "Release 1.1.0 - Nieuwe slides en dark mode"
git push origin v1.1.0
Expand All @@ -210,12 +213,11 @@ git push origin v1.1.0
#### Verhoog de versie bij elke release:

```json

{
"version": "1.1.0"
}

```

#### Gebruik de volgende commando's:

```bash
Expand All @@ -225,6 +227,7 @@ npm version minor # Nieuwe feature
npm version major # Brekende verandering

```

#### Push tags automatisch mee:

```bash
Expand Down
3 changes: 2 additions & 1 deletion docs/asset-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
"main.ec9d09e5.css.map": "./static/css/main.ec9d09e5.css.map",
"main.d6e15f43.js.map": "./static/js/main.d6e15f43.js.map"
},

"entrypoints": [
"static/css/main.ec9d09e5.css",
"static/js/main.d6e15f43.js"
]
}

11 changes: 2 additions & 9 deletions docs/data/available-months.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
{
"months": [
"2024-12",
"2024-10",
"2024-09",
"2024-08",
"2024-03",
"2024-02"
]
}
"months": ["2024-12", "2024-10", "2024-09", "2024-08", "2024-03", "2024-02"]
}
19 changes: 18 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1 +1,18 @@
<!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 32 32%22><text y=%22.9em%22 font-size=%2222%22>😎</text></svg>"/><title>Cool Uncool</title><script defer="defer" src="./static/js/main.d6e15f43.js"></script><link href="./static/css/main.ec9d09e5.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link
rel="icon"
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 32 32%22><text y=%22.9em%22 font-size=%2222%22>😎</text></svg>"
/>
<title>Cool Uncool</title>
<script defer="defer" src="./static/js/main.362f001c.js"></script>
<link href="./static/css/main.2a9063d3.css" rel="stylesheet" />
</head>
<body>
<div id="root"></div>
</body>
</html>

Loading

0 comments on commit c67f833

Please sign in to comment.