-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
97 lines (97 loc) · 3.29 KB
/
Copy pathpackage.json
File metadata and controls
97 lines (97 loc) · 3.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
"name": "myblog",
"private": true,
"version": "1.0.0",
"description": "MyBlog - 一个包含 Go 后端和 SvelteKit 前端的 Monorepo 项目",
"type": "module",
"author": "IdleRain",
"workspaces": [
"web"
],
"scripts": {
"setup": "bun scripts/setup.ts",
"dev": "bun scripts/dev.ts",
"dev:simple": "concurrently --names \"SERVER,WEB\" --prefix-colors \"blue,green\" \"bun run dev:server\" \"bun run dev:web\"",
"dev:server": "cd server && go run scripts/watcher.go",
"dev:web": "cd web && bun run dev",
"build": "bun scripts/build.ts",
"build:clean": "bun scripts/build.ts --clean",
"build:production": "bun scripts/build.ts --production",
"build:server": "bun scripts/build.ts --server-only",
"build:web": "bun scripts/build.ts --web-only",
"build:fast": "bun scripts/build.ts --skip-tests --skip-lint",
"test": "bun run test:server && bun run test:web",
"test:server": "bun scripts/go-tools.ts test",
"test:web": "cd web && bun run check",
"lint": "bun run lint:web && bun run lint:server",
"lint:web": "cd web && bun run lint",
"lint:server": "bun scripts/go-tools.ts vet && bun scripts/go-tools.ts lint",
"format": "bun run format:web && bun run format:server",
"format:web": "cd web && bun run format",
"format:server": "bun scripts/go-tools.ts format",
"clean": "bun run clean:server && bun run clean:web",
"clean:server": "bun scripts/go-tools.ts clean",
"clean:web": "cd web && rm -rf .svelte-kit dist",
"deps": "bun install && cd server && go mod tidy",
"check": "bun run lint",
"quality": "bun run format && bun run lint && bun run test",
"go:lint-install": "bun scripts/go-tools.ts lint-install",
"go:quality": "bun scripts/go-tools.ts quality",
"migrate": "bun scripts/migrate.ts",
"migrate:create": "bun scripts/migrate.ts create",
"migrate:up": "bun scripts/migrate.ts up",
"migrate:down": "bun scripts/migrate.ts down",
"migrate:version": "bun scripts/migrate.ts version",
"migrate:help": "bun scripts/migrate.ts help",
"prepare": "husky install",
"lint-staged": "lint-staged"
},
"dependencies": {
"yaml": "^2.8.0"
},
"devDependencies": {
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@eslint/compat": "^1.2.5",
"@eslint/js": "^9.18.0",
"@types/bun": "^1.2.18",
"@types/node": "^24.0.13",
"concurrently": "^8.2.2",
"cross-env": "^7.0.3",
"dotenv": "^16.4.5",
"eslint": "^9.18.0",
"eslint-config-prettier": "^10.1.5",
"eslint-plugin-prettier": "^5.5.1",
"eslint-plugin-svelte": "^3.10.1",
"globals": "^16.0.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.10",
"prettier": "^3.6.2",
"prettier-plugin-css-order": "^2.1.2",
"prettier-plugin-sort-imports": "^1.8.8",
"prettier-plugin-svelte": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.11",
"typescript": "^5.0.0",
"typescript-eslint": "^8.20.0",
"vite-plugin-json5": "^1.1.9"
},
"keywords": [
"monorepo",
"go",
"svelte",
"blog",
"fullstack"
],
"lint-staged": {
"web/src/**/*.{js,ts,jsx,tsx,svelte}": [
"prettier --write"
],
"*.{json,yaml,yml}": [
"prettier --write"
],
"server/**/*.go": [
"gofmt -w",
"goimports -w"
]
}
}