Skip to content

Commit fb84325

Browse files
untempsvincent-zelty
authored andcommitted
chore(critical): Switch to SvelteKit and Svelte 5 (#84)
1 parent 40522a1 commit fb84325

Some content is hidden

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

56 files changed

+13467
-15343
lines changed

.babelrc

-3
This file was deleted.

.github/workflows/index.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ jobs:
88
release:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
12-
- uses: actions/setup-node@v1
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-node@v4
1313
with:
14-
node-version: '16'
15-
- run: yarn install
16-
- run: yarn test:ci
17-
- run: yarn build
14+
node-version: 20
15+
- run: npm install
16+
- run: npm run test:ci
17+
- run: npm run build
1818
- run: npx semantic-release
1919
env:
2020
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
2121
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
22-
- uses: codecov/codecov-action@v1
22+
- uses: codecov/codecov-action@v4
2323
with:
24-
file: coverage/lcov.info
24+
directory: ./coverage/

.gitignore

+18-21
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,22 @@
1-
# Build
2-
.cache/
3-
dist/
4-
stats.html
1+
node_modules
52

6-
# Dependencies
7-
node_modules/
3+
# Output
4+
.output
5+
.vercel
6+
/.svelte-kit
7+
/build
8+
/dist
89

9-
# Misc
10-
.DS_STORE
10+
# OS
11+
.DS_Store
12+
Thumbs.db
1113

12-
# NPM
13-
npm-debug.log*
14-
yarn-debug.log*
15-
yarn-error.log*
16-
package-lock.json
17-
.yarn
14+
# Env
15+
.env
16+
.env.*
17+
!.env.example
18+
!.env.test
1819

19-
# Webstorm
20-
.idea/
21-
*.iml
22-
23-
# Jest
24-
coverage/
25-
__snapshots__/
20+
# Vite
21+
vite.config.js.timestamp-*
22+
vite.config.ts.timestamp-*

.husky/pre-commit

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
yarn test:ci
5-
yarn prettier
4+
npm run test && npm run format

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

.prettierignore

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
.husky/
2-
.idea/
3-
build/
4-
coverage/
5-
node_modules/
1+
# Package Managers
2+
package-lock.json
3+
pnpm-lock.yaml
4+
yarn.lock

.prettierrc

+6-31
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,15 @@
11
{
2-
"pluginSearchDirs": ["."],
3-
"printWidth": 120,
42
"useTabs": true,
5-
"tabWidth": 4,
63
"singleQuote": true,
7-
"semi": false,
8-
"trailingComma": "es5",
9-
"bracketSpacing": true,
4+
"trailingComma": "none",
5+
"printWidth": 100,
6+
"plugins": ["prettier-plugin-svelte"],
107
"overrides": [
118
{
12-
"files": "./**/*.js",
9+
"files": "*.svelte",
1310
"options": {
14-
"parser": "babylon"
15-
}
16-
},
17-
{
18-
"files": "./**/*.svelte",
19-
"options": {
20-
"svelteBracketNewLine": false,
21-
"svelteAllowShorthand": false,
22-
"svelteSortOrder" : "options-scripts-styles-markup",
23-
"plugins": [
24-
"prettier-plugin-svelte"
25-
]
26-
}
27-
},
28-
{
29-
"files": "./**/*.json",
30-
"options": {
31-
"parser": "json"
32-
}
33-
},
34-
{
35-
"files": ".prettierrc",
36-
"options": {
37-
"parser": "json"
11+
"parser": "svelte",
12+
"svelteSortOrder": "scripts-styles-options-markup"
3813
}
3914
}
4015
]

.vscode/launch.json

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
// Utilisez IntelliSense pour en savoir plus sur les attributs possibles.
3+
// Pointez pour afficher la description des attributs existants.
4+
// Pour plus d'informations, visitez : https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"command": "npm run dev",
9+
"name": "Run dev",
10+
"request": "launch",
11+
"type": "node-terminal"
12+
},
13+
{
14+
"command": "npm run test",
15+
"name": "Run tests",
16+
"request": "launch",
17+
"type": "node-terminal"
18+
},
19+
{
20+
"name": "Launch Chrome",
21+
"request": "launch",
22+
"type": "chrome",
23+
"url": "http://localhost:8080",
24+
"webRoot": "${workspaceFolder}"
25+
},
26+
{
27+
"type": "chrome",
28+
"request": "launch",
29+
"name": "Lancer Chrome en utilisant localhost",
30+
"url": "http://localhost:8080",
31+
"webRoot": "${workspaceFolder}"
32+
}
33+
]
34+
}

.yarnrc.yml

-3
This file was deleted.

0 commit comments

Comments
 (0)