This commit is contained in:
dylan
2024-03-25 00:29:43 -07:00
parent 334c09df7c
commit f960083e94
8 changed files with 213 additions and 26 deletions

View File

@@ -5,16 +5,16 @@
"description": "Firstack is a template repo for a tech stack.",
"main": "index.js",
"scripts": {
"makeuser": "npm run withenv ./scripts/makeuser.ts",
"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": {
@@ -26,12 +26,15 @@
"dependencies": {
"@databases/pg": "^5.4.1",
"@fastify/cookie": "^9.0.4",
"@fastify/secure-session": "^7.1.0",
"@fastify/static": "^6.10.2",
"@firebox/components": "^0.1.5",
"@firebox/tsutil": "^0.1.2",
"@sinclair/typebox": "^0.31.5",
"dotenv": "^16.3.1",
"dotenv": "^16.4.5",
"fastify": "^4.22.0",
"react-router-dom": "^6.18.0",
"uuid": "^9.0.1",
"react-pico-8": "^4.1.0"
},
"devDependencies": {
@@ -40,6 +43,7 @@
"@emotion/react": "^11.11.1",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"@types/uuid": "^9.0.7",
"esbuild": "^0.19.2",
"nodemon": "^3.0.1",
"react": "^18.2.0",