-
Notifications
You must be signed in to change notification settings - Fork 12
/
package.json
110 lines (110 loc) · 4.81 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
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
98
99
100
101
102
103
104
105
106
107
108
109
110
{
"name": "memo-card",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev:browser": "npx concurrently --kill-others-on-fail \"npm run dev:frontend\" \"npm run dev:api\"",
"dev:telegram": "npx concurrently --kill-others-on-fail \"npm run dev:frontend\" \"npm run dev:api\" \"npm run dev:tunnel\"",
"dev:frontend": "vite --host",
"dev:api": "npx wrangler pages dev /functions --compatibility-date=2023-09-22 --compatibility-flags=\"nodejs_compat\"",
"dev:tunnel": "../ngrok http --domain=causal-magpie-closing.ngrok-free.app 5173",
"build": "cp index.build.html index.html && vite build",
"build:preview": "cp index.build.html index.html && vite build --mode development && vite preview",
"typecheck": "npx tsc",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"test": "npx concurrently --kill-others-on-fail \"npm run test:api -- --run\" \"npm run test:frontend -- --run\" \"npm run test:shared -- --run\"",
"test:api": "npx vitest --run --dir functions/",
"test:shared": "npx vitest --run --dir shared/",
"test:api:coverage:": "npx vitest run --dir functions/ --coverage",
"test:frontend": "npx vitest --dir src/",
"test:frontend:coverage": "npx vitest run --dir src/ --coverage",
"prod:api:logs": "npx wrangler pages deployment tail",
"dev:botfather:description": "export $(cat .dev.vars) && node botfather/update.js",
"bundle-visualize": "npx vite-bundle-visualizer",
"_prevent-push-to-main": "if [[ $(git symbolic-ref --short HEAD 2>/dev/null) == \"main\" ]]; then echo \"You are not allowed to push to main branch directly.\"; exit 1; fi",
"export-public-code": "[[ $(git symbolic-ref --short HEAD 2>/dev/null) == \"main\" ]] && npm run __export-public-code || echo \"Current branch is not 'main'\"",
"__export-public-code": "npx betterplace-gitexporter gitexporter.config.json && cd ../memocard-public && git checkout -b main && git remote add origin git@github.com:kubk/memo-card.git && git push",
"generate-db-types": "docker info > /dev/null 2>&1 && export $(cat .dev.vars | grep -v '^#' | xargs) && npx supabase gen types typescript --db-url $DB_URL >./functions/db/databaseTypes.ts",
"dev:db:start": "npx supabase start",
"dev:db:get-ui-migrations": "npx supabase db pull",
"dev:db:apply-ui-migrations-locally": "npx supabase migration up",
"dev:db:dump-create": "npx supabase db dump --data-only > supabase/dump-data.sql",
"dev:db:dump-apply": "docker exec -i supabase_db_memo-card psql -U postgres < ./supabase/dump-data.sql"
},
"pre-commit": [
"lint",
"typecheck",
"_prevent-push-to-main"
],
"dependencies": {
"@emotion/css": "^11.11.2",
"@mdi/font": "^5.9.55",
"@supabase/supabase-js": "^2.38.0",
"@telegram-auth/react": "^1.0.3",
"@triptech/cloudflare-worker-rollbar": "^1.0.1",
"autosize": "^6.0.1",
"canvas-confetti": "^1.9.2",
"colord": "^2.9.3",
"dompurify": "^3.0.9",
"framer-motion": "^10.16.4",
"google-auth-library": "^9.13.0",
"grammy": "^1.24.1",
"luxon": "^3.4.3",
"mathml-tag-names": "^3.0.2",
"mobx": "^6.10.2",
"mobx-form-lite": "^0.9.61",
"mobx-persist-store": "^1.1.3",
"mobx-react-lite": "^4.0.5",
"notistack": "^3.0.1",
"openai": "^4.56.0",
"patch-package": "^8.0.0",
"react": "^18.2.0",
"react-content-loader": "^6.2.1",
"react-dom": "^18.2.0",
"react-google-one-tap-login": "^0.1.1",
"react-hotkeys-hook": "^4.4.1",
"react-lines-ellipsis": "^0.15.3",
"react-simple-wysiwyg": "^3.0.2",
"recharts": "^2.12.7",
"short-unique-id": "^5.0.3",
"supabase": "^1.110.1",
"uuid": "^9.0.1",
"web-auth-library": "^1.0.3",
"wouter": "^3.3.1",
"zod": "^3.22.3",
"zod-to-json-schema": "^3.22.5"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20231002.0",
"@peculiar/webcrypto": "^1.4.3",
"@types/autosize": "^4.0.3",
"@types/canvas-confetti": "^1.6.4",
"@types/dompurify": "^3.0.5",
"@types/luxon": "^3.4.0",
"@types/node": "^20.8.0",
"@types/node-fetch": "^2.6.10",
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"@types/sanitize-html": "^2.9.5",
"@types/telegram-web-app": "^7.8.1",
"@types/uuid": "^9.0.7",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@vitejs/plugin-react": "^4.0.3",
"@vitest/coverage-v8": "^0.34.6",
"concurrently": "^8.2.2",
"eslint": "^8.45.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.3",
"mobx-log": "^2.2.3",
"pre-commit": "^1.2.2",
"prettier": "^3.0.3",
"typescript": "^5.0.2",
"vite": "^4.4.5",
"vite-bundle-visualizer": "^1.0.1",
"vitest": "^0.34.6",
"wrangler": "^3.10.1"
}
}