Skip to content

Commit 9faa7b3

Browse files
authored
chore: Update dependencies (#2)
* update dependencies and add package manager * fix typecheck errors * remove pnpm version from github actions * perform nuxt ui migration * resolve terminal warning * add deployment on github pages * fix linter * fix deployment * properly deploy to github pages * only deploy on main branch * fix job name * enable gitpod * use correct node version
1 parent 6cac235 commit 9faa7b3

File tree

18 files changed

+3388
-3235
lines changed

18 files changed

+3388
-3235
lines changed

.github/workflows/deploy.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Deploy
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
name: Build
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: 22
20+
- uses: pnpm/action-setup@v4
21+
with:
22+
run_install: true
23+
- run: pnpm build --preset github_pages
24+
- name: Upload Pages artifact
25+
uses: actions/upload-pages-artifact@v3
26+
with:
27+
path: ./.output/public
28+
29+
deploy:
30+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
31+
needs: build
32+
33+
permissions:
34+
pages: write # to deploy to Pages
35+
id-token: write # to verify the deployment originates from an appropriate source
36+
37+
environment:
38+
name: github-pages
39+
url: ${{ steps.deployment.outputs.page_url }}
40+
41+
# Specify runner + deployment step
42+
runs-on: ubuntu-latest
43+
steps:
44+
- name: Deploy to GitHub Pages
45+
id: deployment
46+
uses: actions/deploy-pages@v4

.github/workflows/tests.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ jobs:
1313
node-version: 22
1414
- uses: pnpm/action-setup@v4
1515
with:
16-
version: 9
1716
run_install: true
1817
- run: pnpm lint
1918

@@ -27,12 +26,11 @@ jobs:
2726
node-version: 22
2827
- uses: pnpm/action-setup@v4
2928
with:
30-
version: 9
3129
run_install: true
3230
- run: pnpm typecheck
3331

3432
spelling:
35-
name: Typecheck
33+
name: Spelling
3634
runs-on: ubuntu-latest
3735
steps:
3836
- uses: actions/checkout@v4
@@ -41,6 +39,5 @@ jobs:
4139
node-version: 22
4240
- uses: pnpm/action-setup@v4
4341
with:
44-
version: 9
4542
run_install: true
4643
- run: pnpm spelling

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
.nitro
66
.cache
77
dist
8+
*.tsbuildinfo
89

910
# Node dependencies
1011
node_modules
@@ -14,6 +15,7 @@ logs
1415
*.log
1516

1617
# Misc
18+
.pnpm-store
1719
.DS_Store
1820
.fleet
1921
.idea

.vscode/extensions.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"recommendations": [
3+
"Vue.volar",
4+
"dbaeumer.vscode-eslint",
5+
"bradlc.vscode-tailwindcss"
6+
]
7+
}

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@
4444
"editor.quickSuggestions": {
4545
"strings": true
4646
},
47+
"tailwindCSS.classAttributes": ["class", "ui"],
48+
"tailwindCSS.experimental.classRegex": [
49+
["ui:\\s*{([^)]*)\\s*}", "(?:'|\"|`)([^']*)(?:'|\"|`)"]
50+
],
4751
"i18n-ally.localesPaths": [
4852
"i18n",
4953
"i18n/locales"

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ It uses `pnpm` as package manager.
1313
`SSR` is deactivated.
1414

1515
Look at the [Nuxt documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
16+
17+
## Development
18+
19+
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/geprog/nuxt-template)

app.vue

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<template>
2-
<NuxtLayout>
3-
<NuxtPage />
4-
<UNotifications />
5-
</NuxtLayout>
2+
<UApp>
3+
<NuxtLayout>
4+
<NuxtPage />
5+
<UNotifications />
6+
</NuxtLayout>
7+
</UApp>
68
</template>
79

810
<script setup lang="ts">
@@ -13,7 +15,7 @@ onErrorCaptured((error) => {
1315
toast.add({
1416
title: t('error_occurred'),
1517
description: error.message,
16-
color: 'red',
18+
color: 'error',
1719
});
1820
});
1921
</script>

assets/css/main.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@import 'tailwindcss';
2+
@import '@nuxt/ui';

gitpod.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
image: gitpod/workspace-full-vnc:latest
2+
3+
tasks:
4+
- name: Prepare node version
5+
before: |
6+
nvm install 22
7+
nvm use 22
8+
corepack install
9+
corepack enable pnpm
10+
pnpm install
11+
nvm alias default 22
12+
echo "nvm use default &>/dev/null" >> ~/.bashrc.d/51-nvm-fix
13+
command: pnpm dev

i18n/locales/de.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"start_page": "Startseite"
2+
"start_page": "Startseite",
3+
"other_page": "Andere Seite"
34
}

0 commit comments

Comments
 (0)