Skip to content

Commit 5c01344

Browse files
authored
refactor: upgrade all major dependencies and recrite in typescript (#16)
1 parent 5bb978e commit 5c01344

81 files changed

Lines changed: 9962 additions & 40491 deletions

Some content is hidden

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

.dockerignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
data/
21
node_modules
32
.nuxt
4-
nuxt-dist
3+
.output
4+
data

.github/release.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# configure github generated release notes
2+
# https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes#configuring-automatically-generated-release-notes
3+
# uses labels that can be affected implicitly based on PR titles, see workflow/conventional-label.yaml
4+
5+
changelog:
6+
exclude:
7+
labels:
8+
- ignore-for-release
9+
authors:
10+
- octocat
11+
categories:
12+
- title: Breaking Changes 🛠
13+
labels:
14+
- breaking
15+
- title: New Features 🎉
16+
labels:
17+
- feature
18+
- title: Fixes 🔧
19+
labels:
20+
- fix
21+
- title: Other Changes
22+
labels:
23+
- "*"

.github/workflows/build.yml

Lines changed: 0 additions & 59 deletions
This file was deleted.

.github/workflows/commits.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# no need to run quality checks on every small commit, husky already did it on the dev computer
2+
# in this case we simply build the docker image
3+
4+
name: Build simple commit
5+
6+
on:
7+
push:
8+
branches: ['*']
9+
tags-ignore: [ 'v*.*.*' ]
10+
11+
jobs:
12+
build:
13+
uses: ./.github/workflows/reuse-build.yml
14+
15+
deploy:
16+
needs: build
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Send Keel notifications to staging-koumoul.com
20+
run: |
21+
curl -s --fail --show-error -X POST https://keel.admin.staging-koumoul.com/v1/webhooks/native -u ${{ secrets.KEEL_STAGING_USER }}:${{ secrets.KEEL_STAGING_PASSWORD }} -d '{"name": "ghcr.io/${{ github.repository }}", "tag": "${{ github.ref_name }}"}'
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# automatic labelling of pull request based on conventional commit names in the PR titles
2+
# see https://github.com/marketplace/actions/conventional-release-labels
3+
4+
on:
5+
pull_request_target:
6+
types: [ opened, edited ]
7+
name: conventional-release-labels
8+
jobs:
9+
label:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: bcoe/conventional-release-labels@v1
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# for pull requests we do not build a docker image, we simply run quality checks
2+
3+
name: Check pull requests
4+
5+
on: pull_request
6+
7+
jobs:
8+
quality:
9+
uses: ./.github/workflows/reuse-quality.yml

.github/workflows/releases.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# for releases we run in sequence the qualityt checks and the build
2+
3+
name: Build release
4+
5+
on:
6+
push:
7+
tags: [ 'v*.*.*' ]
8+
9+
jobs:
10+
quality:
11+
uses: ./.github/workflows/reuse-quality.yml
12+
13+
build:
14+
needs: quality
15+
uses: ./.github/workflows/reuse-build.yml
16+
17+
deploy:
18+
needs: build
19+
runs-on: ubuntu-latest
20+
steps:
21+
- id: get_version
22+
uses: battila7/get-version-action@v2
23+
24+
- name: Send Keel notifications to koumoul.com
25+
run: |
26+
curl -s --fail --show-error -X POST https://keel.admin.koumoul.com/v1/webhooks/native -u ${{ secrets.KEEL_PROD_USER }}:${{ secrets.KEEL_PROD_PASSWORD }} -d '{"name": "ghcr.io/${{ github.repository }}", "tag": "${{ steps.get_version.outputs.major }}"}'
27+

.github/workflows/reuse-build.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Build
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout git repository
11+
uses: actions/checkout@v4
12+
13+
- name: Set up Docker Buildx
14+
uses: docker/setup-buildx-action@v3
15+
16+
- name: Login to Github container registry
17+
uses: docker/login-action@v3
18+
with:
19+
registry: ghcr.io
20+
username: ${{ github.actor }}
21+
password: ${{ secrets.GITHUB_TOKEN }}
22+
23+
- name: Prepare BUILD.json
24+
run: |
25+
echo '{"version": "${{github.ref_name}}", "repository": "${{github.server_url}}/${{github.repository}}", "commit": "${{github.sha}}", "date": "'$(date -Is)'"}' > BUILD.json
26+
cat BUILD.json
27+
28+
- name: Prepare docker tags for main image
29+
id: docker_meta_main
30+
uses: docker/metadata-action@v5
31+
with:
32+
images: ghcr.io/${{ github.repository }}
33+
tags: |
34+
type=ref,event=branch
35+
type=ref,event=pr
36+
type=semver,pattern={{version}}
37+
type=semver,pattern={{major}}.{{minor}}
38+
type=semver,pattern={{major}}
39+
40+
- name: Build and push main image
41+
id: docker_build_main
42+
uses: docker/build-push-action@v5
43+
with:
44+
context: .
45+
push: true
46+
target: main
47+
tags: ${{ steps.docker_meta_main.outputs.tags }}
48+
platforms: linux/amd64
49+
labels: ${{ steps.docker_meta_main.outputs.labels }}
50+
cache-from: type=registry,ref=ghcr.io/${{ github.repository }}/buildcache
51+
cache-to: type=registry,ref=ghcr.io/${{ github.repository }}/buildcache,mode=max
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Quality checks
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
quality:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout git repository
11+
uses: actions/checkout@v4
12+
13+
- uses: actions/setup-node@v3
14+
with:
15+
node-version: 22
16+
cache: 'npm'
17+
18+
- name: Install dependencies
19+
run: npm ci
20+
21+
- name: Run quality checks
22+
run: npm run quality

.gitignore

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
data/
22
node_modules/
3-
.nuxt
4-
dist
5-
nuxt-dist
6-
7-
public/assets/css/
8-
public/assets/fonts/
3+
api/config/local-*
4+
.type/

0 commit comments

Comments
 (0)