Demo script added

Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
Benny Samir Hierl 2022-02-16 20:37:16 +01:00
parent b75b7031d1
commit 3146ab835f

View file

@ -2,11 +2,12 @@
"version": "1.0.0", "version": "1.0.0",
"scripts": { "scripts": {
"dev": "concurrently --kill-others \"npm run dev:frontend\" \"npm run dev:backend\"", "dev": "concurrently --kill-others \"npm run dev:frontend\" \"npm run dev:backend\"",
"demo": "npm run build && prisma migrate deploy && prisma migrate reset -f && node dist/api/server.js",
"dev:frontend": "vite", "dev:frontend": "vite",
"dev:backend": "nodemon -r dotenv/config ./src/api/server.ts", "dev:backend": "nodemon -r dotenv/config ./src/api/server.ts",
"build": "npm run build:frontend && npm run build:backend", "build": "npm run build:frontend && npm run build:backend",
"build:frontend": "vite build", "build:frontend": "vite build",
"build:backend": "npx prisma generate && tsc -p tsconfig.backend.json --outDir dist", "build:backend": "prisma generate && tsc -p tsconfig.backend.json --outDir dist",
"preview": "vite preview --port 5050", "preview": "vite preview --port 5050",
"test:unit": "vitest --environment jsdom", "test:unit": "vitest --environment jsdom",
"test:unit:ci": "vitest --environment jsdom --run", "test:unit:ci": "vitest --environment jsdom --run",