wildebeest/package.json

54 wiersze
2.5 KiB
JSON

{
"name": "wildebeest",
"version": "0.0.1",
"type": "module",
"author": "Sven Sauleau <sven@cloudflare.com>",
"devDependencies": {
"@cloudflare/pages-plugin-cloudflare-access": "^1.0.2",
"@cloudflare/workers-types": "^4.20221111.1",
"@databases/split-sql-query": "1.0.3",
"@databases/sql": "3.2.0",
"@playwright/test": "^1.30.0",
"@types/jest": "^29.2.4",
"@types/node": "^18.11.11",
"@typescript-eslint/eslint-plugin": "^5.46.1",
"@typescript-eslint/parser": "^5.46.1",
"better-sqlite3": "8",
"concurrently": "^7.6.0",
"eslint": "^8.29.0",
"jest": "^29.3.1",
"jest-environment-miniflare": "^2.11.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.1",
"ts-jest": "^29.0.3",
"typescript": "^4.9.4",
"wrangler": "2.7.1"
},
"private": true,
"scripts": {
"pretty": "npx prettier --list-different './**/*.ts'",
"test": "NODE_OPTIONS=--experimental-vm-modules yarn jest",
"lint": "run-s lint:* --print-label",
"lint:frontend": "npm --prefix frontend run lint",
"lint:backend": "npx eslint backend",
"lint:functions": "npx eslint functions",
"lint:consumer": "npx eslint consumer",
"build": "yarn --cwd frontend install && yarn --cwd frontend build",
"d1": "NO_D1_WARNING=true wrangler d1",
"pages": "NO_D1_WARNING=true wrangler pages",
"database:migrate": "yarn d1 migrations apply DATABASE",
"database:create-mock": "rm -f .wrangler/state/d1/DATABASE.sqlite3 && CI=true yarn database:migrate --local && node ./frontend/mock-db/run.mjs",
"dev": "export COMMIT_HASH=$(git rev-parse HEAD) && yarn build && yarn database:migrate --local && yarn pages dev frontend/dist --d1 DATABASE --persist --compatibility-date=2022-12-20 --binding 'INSTANCE_TITLE=Test Wildebeest' 'INSTANCE_DESCR=My Wildebeest Instance' 'ACCESS_AUTH_DOMAIN=0.0.0.0.cloudflareaccess.com' 'ACCESS_AUD=DEV_AUD' --live-reload",
"ci-dev-test-ui": "yarn build && yarn database:create-mock && yarn pages dev frontend/dist --d1 DATABASE --persist --port 8788 --binding 'INSTANCE_TITLE=Test Wildebeest' 'INSTANCE_DESCR=My Wildebeest Instance' 'ACCESS_AUTH_DOMAIN=0.0.0.0.cloudflareaccess.com' 'ACCESS_AUD=DEV_AUD' --compatibility-date=2022-12-20",
"deploy:init": "yarn pages project create wildebeest && yarn d1 create wildebeest",
"deploy": "yarn build && yarn database:migrate && yarn pages publish frontend/dist --project-name=wildebeest"
},
"dependencies": {
"@neondatabase/serverless": "^0.2.5",
"@types/cookie": "^0.5.1",
"cookie": "^0.5.0",
"http-message-signatures": "^0.1.2",
"toucan-js": "^3.1.0"
}
}