-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
53 lines (53 loc) · 2.28 KB
/
package.json
File metadata and controls
53 lines (53 loc) · 2.28 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
{
"name": "3dtracker0.3",
"private": true,
"version": "0.0.1",
"type": "module",
"scripts": {
"dev": "vite dev",
"build": "vite build",
"preview": "wrangler pages dev .svelte-kit/cloudflare --port 4173",
"prepare": "npm run types && svelte-kit sync || echo ''",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"types": "wrangler types",
"lint": "eslint .",
"db:reset": "rm -rf .wrangler/state/v3/d1 && npx wrangler d1 execute DB --local --file=schema.sql && npx wrangler d1 execute DB --local --file=seed.sql && echo '✅ Database reset complete!'",
"db:delete": "rm -rf .wrangler/state/v3/d1",
"db:schema": "npx wrangler d1 execute DB --local --file=schema.sql",
"db:seed": "npx wrangler d1 execute DB --local --file=seed.sql",
"db:pull": "npx wrangler d1 export DB --remote --output=./remote-backup.sql && python3 -c \"import re,sys; c=open('remote-backup.sql').read(); pm=re.search(r'(CREATE TABLE printer_models[^;]+;(?:\\nINSERT INTO \\\"printer_models\\\"[^;]+;)*)',c,re.DOTALL).group(0); c=c.replace(pm,'',1).replace('CREATE TABLE printers',pm+'\\nCREATE TABLE printers',1); open('/tmp/import_fixed.sql','w').write('PRAGMA foreign_keys=OFF;\\n'+c)\" && rm -rf .wrangler/state/v3/d1 && npx wrangler d1 execute DB --local --file=/tmp/import_fixed.sql && echo '✅ Local DB synced from remote!'"
},
"devDependencies": {
"@eslint/compat": "^1.4.0",
"@eslint/js": "^9.39.1",
"@sveltejs/adapter-cloudflare": "^7.2.4",
"@sveltejs/kit": "^2.50.1",
"@sveltejs/vite-plugin-svelte": "^6.2.1",
"@tailwindcss/forms": "^0.5.10",
"@tailwindcss/typography": "^0.5.19",
"@tailwindcss/vite": "^4.1.17",
"@tsconfig/svelte": "^5.0.6",
"@types/jszip": "^3.4.1",
"@types/node": "^22",
"eslint": "^9.39.1",
"eslint-plugin-svelte": "^3.13.1",
"globals": "^16.5.0",
"svelte": "^5.49.1",
"svelte-check": "^4.3.4",
"tailwindcss": "^4.1.17",
"typescript": "^5.9.3",
"typescript-eslint": "^8.48.1",
"vite": "^7.2.6",
"wrangler": "^4.56.0"
},
"dependencies": {
"echarts": "^6.0.0",
"jszip": "^3.10.1"
},
"optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "^4.56.0",
"@tailwindcss/oxide-linux-x64-gnu": "^4.1.18",
"lightningcss-linux-x64-gnu": "^1.31.1"
}
}