-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
41 lines (41 loc) · 2.03 KB
/
Copy pathpackage.json
File metadata and controls
41 lines (41 loc) · 2.03 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
{
"name": "simplelikes",
"private": false,
"type": "module",
"scripts": {
"dev": "wrangler dev",
"dev:stop": "pkill -f 'wrangler dev' || echo 'No server running'",
"dev:clean": "rm -rf .wrangler/",
"dev:setup": "wrangler d1 execute simplelikes --local --file=src/db/schema.sql",
"dev:reload": "npm run dev:clean && npm run dev:setup && npm run dev",
"deploy": "wrangler deploy",
"deploy:staging": "wrangler deploy --env staging",
"deploy:production": "wrangler deploy --env production",
"typecheck": "tsc --noEmit && tsc -p tsconfig.client.json --noEmit",
"build:client": "esbuild src/client/index.ts --bundle --outfile=dist/simplelikes.js --format=iife --global-name=SimpleLikes && esbuild src/client/index.ts --bundle --minify --outfile=dist/simplelikes.min.js --format=iife --global-name=SimpleLikes && cp dist/simplelikes.js examples/simplelikes.js",
"test": "vitest run tests/unit/ --exclude 'tests/unit/client/**'",
"test:watch": "vitest tests/unit/ --exclude 'tests/unit/client/**'",
"test:client": "vitest run tests/unit/client/*.test.ts",
"test:coverage": "vitest run tests/unit/ --exclude 'tests/unit/client/**' --coverage",
"test:integration": "INTEGRATION_TEST_SECRET=\"${INTEGRATION_TEST_SECRET:-$(grep INTEGRATION_TEST_SECRET .env 2>/dev/null | cut -d= -f2)}\" vitest run tests/e2e/integration.test.ts",
"setup": "bash scripts/setup.sh",
"db:migrate": "wrangler d1 execute simplelikes --remote --file=src/db/schema.sql && wrangler d1 execute simplelikes-staging --remote --file=src/db/schema.sql",
"serve": "tsx src/server.ts",
"changelog": "bash scripts/changelog.sh",
"release": "bash scripts/release.sh"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.0.0",
"@types/better-sqlite3": "^7.6.13",
"@vitest/coverage-v8": "^3.2.6",
"esbuild": "^0.28.1",
"happy-dom": "^20.10.6",
"tsx": "^4.22.4",
"typescript": "^5.0.0",
"vitest": "^3.0.0",
"wrangler": "^4.0.0"
},
"optionalDependencies": {
"better-sqlite3": "^12.11.1"
}
}