preliminary stuff

This commit is contained in:
dylan
2024-04-20 23:28:33 -07:00
parent dd3482c11d
commit ef79a9371f
12 changed files with 534 additions and 269 deletions

View File

@@ -6,15 +6,14 @@
"main": "index.js",
"scripts": {
"dev-docker": "docker compose --profile dev up -d",
"dev-server": "echo \"starting server\" && npm run dev-ts ./src/server/index.ts",
"dev-ts": "nodemon --require 'dotenv/config'",
"dev-watch-client": "ts-node ./scripts/watch.ts",
"dev-server": "echo \"starting server\" && npm run withenv ./src/server/index.ts",
"dev-watch-client": "npm run withenv ./scripts/watch.ts",
"dev-migrate": "source ./.env && pg-migrations apply --directory ./src/database/migrations",
"prod-migrate": "pg-migrations apply --directory ./src/database/migrations",
"prod-build-client": "ts-node ./scripts/build.ts",
"prod-build-client": "npm run withenv ./scripts/build.ts",
"prod-docker": "docker compose --profile prod up -d",
"prod-start": "echo \"building frontend\" && npm run prod-build-client && echo \"running migrations\" && npm run prod-migrate && echo \"starting server\" && npm run prod-ts ./src/server/index.ts",
"prod-ts": "ts-node --require 'dotenv/config'",
"prod-start": "echo \"building frontend\" && npm run prod-build-client && echo \"${DATABASE_URL}\" && echo \"running migrations\" && npm run prod-migrate && echo \"starting server\" && npm run withenv ./src/server/index.ts",
"withenv": "tsx ./scripts/run-with-env.ts",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
@@ -30,8 +29,11 @@
"@firebox/components": "^0.1.7",
"@firebox/tsutil": "^0.1.2",
"@sinclair/typebox": "^0.31.5",
"@types/katex": "^0.16.7",
"dotenv": "^16.3.1",
"fastify": "^4.22.0"
"fastify": "^4.22.0",
"katex": "^0.16.10",
"tsx": "^4.7.2"
},
"devDependencies": {
"@databases/pg-migrations": "^5.0.2",