-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
21 lines (21 loc) · 1.6 KB
/
Copy pathpackage.json
File metadata and controls
21 lines (21 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
"name": "studyplanner",
"private": true,
"scripts": {
"dev:frontend": "npm --prefix frontend run dev",
"build:frontend": "npm --prefix frontend run build",
"test:frontend": "npm --prefix frontend run test",
"test:mcp": "npm --prefix integrations/studyplanner-mcp run test",
"build:mcp": "npm --prefix integrations/studyplanner-mcp run build",
"dev:backend": "cd backend && npx wrangler dev",
"predeploy:backend": "python backend/scripts/verify_cloudflare_config.py",
"deploy:backend": "cd backend && npx wrangler deploy",
"db:verify-config": "python backend/scripts/verify_cloudflare_config.py",
"db:migrate:local": "cd backend && npx wrangler d1 migrations apply DB --local",
"db:migrate:remote": "cd backend && npx wrangler d1 migrations apply DB --remote",
"db:export:d1": "python backend/scripts/export_sqlite_to_d1.py --data-out backend/.tmp/d1-seed.sql",
"sim:on": "cd backend && npx wrangler d1 execute studyplanner-db --remote --command \"INSERT INTO app_settings (key, value, updated_at_unix) VALUES ('simulated_current_semester_label', 'SS 2025', unixepoch()) ON CONFLICT(key) DO UPDATE SET value = excluded.value, updated_at_unix = excluded.updated_at_unix;\"",
"sim:off": "cd backend && npx wrangler d1 execute studyplanner-db --remote --command \"DELETE FROM app_settings WHERE key = 'simulated_current_semester_label';\"",
"sim:status": "cd backend && npx wrangler d1 execute studyplanner-db --remote --command \"SELECT key, value, datetime(updated_at_unix, 'unixepoch') AS updated_at FROM app_settings WHERE key = 'simulated_current_semester_label';\""
}
}