Skip to content

Commit abccc68

Browse files
committed
feat(repo): update deps, config and generator
1 parent 5382580 commit abccc68

File tree

127 files changed

+3848
-4318
lines changed

Some content is hidden

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

127 files changed

+3848
-4318
lines changed

.gitignore

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,50 @@
11
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
22

3-
# dependencies
3+
# Dependencies
44
node_modules
55
.pnp
66
.pnp.js
77

8-
# testing
9-
coverage
10-
test-results
11-
12-
# misc
13-
.DS_Store
14-
Thumbs.db
15-
*.pem
16-
17-
# output
8+
# Output
189
.output
1910
.vercel
2011
.netlify
21-
.svelte-kit
2212
.wrangler
13+
.svelte-kit
2314
build
2415
dist
2516

26-
# debug
17+
# OS
18+
.DS_Store
19+
Thumbs.db
20+
*.pem
21+
22+
# Runtime data
23+
pids
24+
*.pid
25+
*.seed
26+
*.pid.lock
27+
28+
# Testing
29+
coverage
30+
test-results
31+
playwright
32+
33+
# Debug
34+
logs
35+
*.log
2736
npm-debug.log*
2837
yarn-debug.log*
2938
yarn-error.log*
3039
vite.config.*.timestamp-*
3140

32-
# env files
41+
# Env
3342
.env
3443
.env.*
3544
!.env.example
3645
!.env.test
3746

38-
# turbo
47+
# Turbo
3948
.turbo
4049

4150
# IDE

.npmrc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
engine-strict=true
22
auto-install-peers = true
3-
# TODO: Remove this line when the following deps are updated:
4-
# @trivago/prettier-plugin-sort-imports
5-
legacy-peer-deps = true

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v22.12.0
1+
lts/iron

.prettierrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
"bracketSpacing": true,
1717
"proseWrap": "preserve",
1818
"svelteSortOrder": "options-scripts-markup-styles",
19-
"svelteAllowShorthand": false,
19+
"svelteAllowShorthand": true,
2020
"tailwindConfig": "./packages/config/tailwind/tailwind.config.ts",
2121
"tailwindPreserveWhitespace": false,
2222
"importOrderSeparation": true,
2323
"importOrderSortSpecifiers": true,
24-
"importOrderCaseInsensitive": true,
24+
"importOrderCaseInsensitive": false,
2525
"plugins": [
2626
"prettier-plugin-svelte",
2727
"prettier-plugin-packagejson",

README.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,34 @@ A Turbo monorepo repository with Sveltekit.
1111
- [x] [TailwindCSS](http://tailwindcss.com)
1212
- [x] [Vitest](http://vitest.dev)
1313
- [x] [Playwright](http://playwright.dev)
14+
- [ ] [Storybook](https://storybook.js.org)
1415
- [x] [Husky](https://typicode.github.io/husky/)
1516
- [x] [Commitlint](http://commitlint.js.org)
1617
- [x] [Conventional Commits](https://www.conventionalcommits.org)
1718
- [x] [Github Actions](https://github.com/features/actions)
18-
- [x] [Semantic Release](https://semantic-release.gitbook.io)
19+
- [ ] [Semantic Release](https://semantic-release.gitbook.io)
1920
- [x] [Turbo Generator](https://turbo.build/repo/docs/guides/generating-code)
2021

22+
## Dependencies
23+
24+
| Dependency | Version |
25+
| ------------------------- | --------------------------------------------------------- |
26+
| `@commitlint/cli` | ![v19.8.0](https://img.shields.io/badge/npm-v19.8.0-blue) |
27+
| `@internationalized/date` | ![v3.8.0](https://img.shields.io/badge/npm-v3.8.0-blue) |
28+
| `@playwright/test` | ![v1.52.0](https://img.shields.io/badge/npm-v1.52.0-blue) |
29+
| `@sveltejs/kit` | ![v2.20.7](https://img.shields.io/badge/npm-v2.20.7-blue) |
30+
| `bits-ui` | ![v1.3.19](https://img.shields.io/badge/npm-v1.3.19-blue) |
31+
| `eslint` | ![v9.25.1](https://img.shields.io/badge/npm-v9.25.1-blue) |
32+
| `husky` | ![v9.1.7](https://img.shields.io/badge/npm-v9.1.7-blue) |
33+
| `svelte` | ![v5.28.2](https://img.shields.io/badge/npm-v5.28.2-blue) |
34+
| `tailwindcss` | ![v4.1.4](https://img.shields.io/badge/npm-v4.1.4-blue) |
35+
| `typescript` | ![v5.8.3](https://img.shields.io/badge/npm-v5.8.3-blue) |
36+
| `vite` | ![v6.3.3](https://img.shields.io/badge/npm-v6.3.3-blue) |
37+
| `vitest` | ![v3.1.2](https://img.shields.io/badge/npm-v3.1.2-blue) |
38+
| `prettier` | ![v3.5.3](https://img.shields.io/badge/npm-v3.5.3-blue) |
39+
| `turbo` | ![v2.5.2](https://img.shields.io/badge/npm-v2.5.2-blue) |
40+
| `zod` | ![v3.24.3](https://img.shields.io/badge/npm-v3.24.3-blue) |
41+
2142
## Folder Structure
2243

2344
```
@@ -63,6 +84,12 @@ npm run build
6384
npm run test
6485
```
6586

87+
### Generate code
88+
89+
```bash
90+
npm run gen
91+
```
92+
6693
### Clear output, cache and node_modules
6794

6895
```bash

apps/docs/eslint.config.js

Lines changed: 5 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,12 @@
11
import { includeIgnoreFile } from "@eslint/compat";
2-
import js from "@eslint/js";
3-
import prettier from "eslint-config-prettier";
4-
import svelte from "eslint-plugin-svelte";
5-
import globals from "globals";
2+
import svelteConfig from "eslint-config/svelte";
63
import { fileURLToPath } from "node:url";
74
import ts from "typescript-eslint";
85

96
const gitignorePath = fileURLToPath(new URL("../../.gitignore", import.meta.url));
107

11-
export default ts.config(
12-
includeIgnoreFile(gitignorePath),
13-
js.configs.recommended,
14-
...ts.configs.recommended,
15-
...svelte.configs["flat/recommended"],
16-
prettier,
17-
...svelte.configs["flat/prettier"],
18-
{
19-
languageOptions: {
20-
globals: {
21-
...globals.browser,
22-
...globals.node,
23-
},
24-
},
8+
export default ts.config(includeIgnoreFile(gitignorePath), ...svelteConfig, {
9+
rules: {
10+
"unicorn/no-empty-file": "off",
2511
},
26-
{
27-
files: ["**/*.svelte"],
28-
29-
languageOptions: {
30-
parserOptions: {
31-
parser: ts.parser,
32-
},
33-
},
34-
}
35-
);
12+
});

apps/docs/package.json

Lines changed: 29 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,36 +8,43 @@
88
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
99
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
1010
"clean": "rm -rf node_modules .svelte-kit .turbo build",
11-
"dev": "vite dev",
12-
"preinstall": "svelte-kit sync",
13-
"lint": "eslint .",
14-
"preview": "vite preview",
15-
"test": "npm run test:e2e",
16-
"test:e2e": "playwright test"
11+
"dev": "vite dev --port 5174",
12+
"lint": "eslint . --max-warnings 0",
13+
"prepare": "svelte-kit sync",
14+
"preview": "vite preview --port 4174",
15+
"test": "vitest run",
16+
"test:ci": "vitest",
17+
"test:unit:ui": "vitest --ui"
1718
},
1819
"dependencies": {
20+
"@internationalized/date": "^3.8.0",
1921
"assets": "*",
22+
"bits-ui": "^1.3.19",
2023
"ui": "*",
21-
"utils": "*"
24+
"utils": "*",
25+
"zod": "^3.24.3"
2226
},
2327
"devDependencies": {
24-
"@eslint/compat": "^1.2.4",
25-
"@playwright/test": "^1.49.1",
26-
"@sveltejs/adapter-auto": "^3.3.1",
27-
"@sveltejs/kit": "^2.15.0",
28+
"@eslint/compat": "^1.2.8",
29+
"@sveltejs/adapter-auto": "^6.0.0",
30+
"@sveltejs/enhanced-img": "^0.4.4",
31+
"@sveltejs/kit": "^2.20.7",
2832
"@sveltejs/vite-plugin-svelte": "^5.0.3",
29-
"autoprefixer": "^10.4.20",
30-
"eslint": "^9.17.0",
31-
"eslint-config-prettier": "^9.1.0",
32-
"eslint-plugin-svelte": "^2.46.1",
33-
"globals": "^15.14.0",
34-
"svelte": "^5.16.0",
35-
"svelte-check": "^4.1.1",
33+
"@tailwindcss/vite": "^4.1.4",
34+
"@testing-library/jest-dom": "^6.6.3",
35+
"@testing-library/svelte": "^5.2.7",
36+
"@testing-library/user-event": "^14.6.1",
37+
"@vitest/ui": "^3.1.2",
38+
"eslint": "^9.25.1",
39+
"jsdom": "^26.1.0",
40+
"svelte": "^5.28.2",
41+
"svelte-check": "^4.1.6",
3642
"tailwind-config": "*",
37-
"tailwindcss": "^3.4.17",
43+
"tailwindcss": "^4.1.4",
3844
"turbo-utils": "*",
39-
"typescript": "^5.7.2",
40-
"typescript-eslint": "^8.18.2",
41-
"vite": "^6.0.6"
45+
"typescript": "^5.8.3",
46+
"typescript-eslint": "^8.31.0",
47+
"vite": "^6.3.3",
48+
"vitest": "^3.1.2"
4249
}
4350
}

apps/docs/playwright.config.ts

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

apps/docs/postcss.config.js

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

apps/docs/src/app.css

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
11
@import "tailwind-config/tailwind.css";
22

3-
@layer base {
4-
@font-face {
5-
font-family: "Montserrat";
6-
font-style: normal;
7-
font-display: swap;
8-
src: url(/fonts/montserrat-variable.ttf) format("truetype");
9-
}
10-
11-
@font-face {
12-
font-family: "Montserrat";
13-
font-style: italic;
14-
font-display: swap;
15-
src: url(/fonts/montserrat-italic-variable.ttf) format("truetype");
16-
}
17-
}
3+
@source "../../../node_modules/ui";

0 commit comments

Comments
 (0)