Skip to content

Commit fbcab1b

Browse files
committed
Merge conflicts and project restructure adaptations
2 parents 38b4184 + ae55c64 commit fbcab1b

Some content is hidden

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

64 files changed

+10164
-8584
lines changed

.dockerignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ node_modules/
1010
docker-compose.yml
1111
Dockerfile*
1212
*.md
13-
*.sh
13+
*.sh
14+
storybook-static/

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ node_modules
66
.env
77
.env.*
88
!.env.example
9+
storybook-static
910

1011
# Ignore files for PNPM, NPM and YARN
1112
pnpm-lock.yaml

.eslintrc.cjs

+21-18
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,54 @@
1+
/** @type { import("eslint").Linter.Config } */
12
module.exports = {
23
root: true,
3-
parser: '@typescript-eslint/parser',
44
extends: [
55
'eslint:recommended',
66
'plugin:@typescript-eslint/recommended',
7-
'prettier',
8-
'plugin:storybook/recommended'
7+
'plugin:svelte/recommended',
8+
'prettier'
99
],
10-
plugins: ['svelte3', '@typescript-eslint', 'import'],
11-
ignorePatterns: ['*.cjs'],
10+
parser: '@typescript-eslint/parser',
11+
plugins: ['@typescript-eslint', 'import'],
1212
rules: {
13-
'import/no-relative-parent-imports': 'error',
1413
'import/export': 'error',
1514
'import/no-empty-named-blocks': 'error',
16-
'import/named': 'error',
1715
'import/no-absolute-path': 'error',
1816
'import/no-self-import': 'error',
1917
'import/no-useless-path-segments': 'error',
2018
'import/newline-after-import': 'error',
2119
'import/no-duplicates': 'error',
2220
'import/order': 'error'
2321
},
22+
23+
parserOptions: {
24+
sourceType: 'module',
25+
ecmaVersion: 2020,
26+
extraFileExtensions: ['.svelte']
27+
},
28+
env: {
29+
browser: true,
30+
es2017: true,
31+
node: true
32+
},
2433
overrides: [
2534
{
2635
files: ['*.svelte'],
27-
processor: 'svelte3/svelte3',
36+
parser: 'svelte-eslint-parser',
37+
parserOptions: {
38+
parser: '@typescript-eslint/parser'
39+
},
2840
rules: {
2941
'no-undef': 'off'
3042
}
3143
}
3244
],
3345
settings: {
34-
'svelte3/typescript': () => require('typescript'),
46+
'svelte/typescript': () => require('typescript'),
3547
'import/extensions': ['.js', '.ts', '.svelte', '.stories.ts'],
3648
'import/resolver': {
3749
typescript: {
3850
alwaysTryTypes: true
3951
}
4052
}
41-
},
42-
parserOptions: {
43-
sourceType: 'module',
44-
ecmaVersion: 2020
45-
},
46-
env: {
47-
browser: true,
48-
es2017: true,
49-
node: true
5053
}
5154
};

.github/workflows/ci.yml

+15-12
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
strategy:
1919
matrix:
20-
node-version: [19.x]
20+
node-version: [21.x]
2121

2222
steps:
2323
- name: Checkout repository
@@ -36,6 +36,9 @@ jobs:
3636
- name: Install dependencies
3737
run: npm install
3838

39+
- name: Build site
40+
run: npm run build
41+
3942
- name: Test
4043
run: CI=true npm run test-vite:coverage
4144

@@ -48,7 +51,7 @@ jobs:
4851

4952
strategy:
5053
matrix:
51-
node-version: [19.x]
54+
node-version: [21.x]
5255

5356
steps:
5457
- name: Checkout repository
@@ -67,20 +70,17 @@ jobs:
6770
- name: Install dependencies
6871
run: npm install
6972

73+
- name: Build site
74+
run: npm run build
75+
7076
- name: Install Playwright
7177
run: npx playwright install
7278

73-
- name: Wait for the Netlify Preview
74-
uses: kamranayub/[email protected]
75-
id: waitForNetlify
76-
with:
77-
site_name: 'niaefeup-frontend-storybook'
78-
max_timeout: 300 # 5 minutes
79-
env:
80-
NETLIFY_TOKEN: ${{ secrets.NETLIFY_TOKEN }}
79+
- name: Build storybook
80+
run: npm run build-storybook
8181

8282
- name: Test
83-
run: npm run test-storybook:coverage -- --url ${{ steps.waitForNetlify.outputs.url }} --ci
83+
run: npm run test-storybook:ci
8484

8585
- name: Upload code coverage to Codecov
8686
uses: codecov/codecov-action@v3
@@ -91,7 +91,7 @@ jobs:
9191

9292
strategy:
9393
matrix:
94-
node-version: [19.x]
94+
node-version: [21.x]
9595

9696
steps:
9797
- name: Checkout repository
@@ -110,5 +110,8 @@ jobs:
110110
- name: Install dependencies
111111
run: npm install
112112

113+
- name: Build site
114+
run: npm run build
115+
113116
- name: Lint Code
114117
run: npm run lint

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ vite.config.ts.timestamp-*
1414

1515
# Test Reports
1616
/coverage
17+
storybook-static/

.prettierrc

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"trailingComma": "none",
55
"printWidth": 100,
66
"plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"],
7-
"pluginSearchDirs": ["."],
87
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }],
98
"endOfLine": "auto"
109
}

.tool-versions

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodejs 21.6.2

components.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://shadcn-svelte.com/schema.json",
3+
"style": "default",
4+
"tailwind": {
5+
"config": "tailwind.config.js",
6+
"css": "src/app.css",
7+
"baseColor": "slate"
8+
},
9+
"aliases": {
10+
"components": "$lib/components",
11+
"utils": "$lib/utils"
12+
},
13+
"typescript": true
14+
}

0 commit comments

Comments
 (0)