-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
46 lines (46 loc) · 2.46 KB
/
package.json
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
{
"name": "whiteboard",
"scripts": {
"generate-schema": "typescript-json-schema --required --strictNullChecks --noExtraProps src/schema.d.ts '*' --out src/schema.json && npm run format",
"format": "prettier 'src/**/*.{ts,json,html,css}' 'test/**/*.{ts,json}' --write",
"build": "npm run build:backend && npm run build:frontend",
"build:backend": "esbuild --tsconfig=src/backend/tsconfig.json src/backend/index.ts --bundle --sourcemap --external:__STATIC_CONTENT_MANIFEST --format=esm --outfile=dist/index.mjs",
"build:frontend": "esbuild --tsconfig=src/frontend/tsconfig.json src/frontend/*.ts --bundle --sourcemap --outdir=assets && cp src/frontend/*.html src/frontend/*.css src/frontend/*.png src/frontend/*.ico assets",
"dev": "miniflare -e .env.local --watch --debug",
"test": "npm run build && tsc -p test/tsconfig.json && mocha -r source-map-support/register test/dist/test/*.js",
"analytics": "esbuild tool/analytics.ts --platform=node --bundle --sourcemap --outdir=tool && node -r source-map-support tool/analytics",
"info": "esbuild tool/info.ts --platform=node --bundle --sourcemap --outdir=tool && node -r source-map-support tool/info",
"gc": "esbuild tool/gc.ts --platform=node --bundle --sourcemap --outdir=tool && node -r source-map-support tool/gc",
"sync-env": "esbuild tool/sync-env.ts --platform=node --bundle --sourcemap --outdir=tool && node -r source-map-support tool/sync-env",
"get-graphql-schema": "get-graphql-schema -h Content-Type=application/json -h Authorization=Bearer\\ $CLOUDFLARE_API_KEY https://api.cloudflare.com/client/v4/graphql/ > work/schema.graphql"
},
"devDependencies": {
"@cfworker/json-schema": "^1.12.1",
"@cloudflare/kv-asset-handler": "^0.2.0",
"@cloudflare/workers-types": "^3.3.1",
"@cloudflare/wrangler": "^1.19.7",
"@types/cookie": "^0.4.1",
"@types/jsdom": "^16.2.14",
"@types/mocha": "^9.1.0",
"@types/node": "^17.0.14",
"@types/node-fetch": "^2.5.12",
"@types/uuid": "^8.3.4",
"@types/ws": "^8.2.2",
"cookie": "^0.4.2",
"dotenv": "^16.0.0",
"esbuild": "^0.14.13",
"get-graphql-schema": "^2.1.2",
"itty-router": "^2.4.10",
"jsdom": "^19.0.0",
"miniflare": "^2.2.0",
"mocha": "^9.2.0",
"node-fetch": "^2.6.7",
"prettier": "^2.5.1",
"source-map-support": "^0.5.21",
"tree-kill": "^1.2.2",
"typescript": "^4.6.0-dev.20220201",
"typescript-json-schema": "^0.53.0",
"uuid": "^8.3.2",
"ws": "^8.4.2"
}
}