Skip to content
Snippets Groups Projects
Verified Commit 3038dc5a authored by Martin's avatar Martin
Browse files

update scripts and readme

parent fd7149c9
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
A simple online chat app experiment using Svelte, Server side events, Prisma and SQLite
[Hosted example](http://maartin0.uksouth.cloudapp.azure.com)
[Hosted example](http://maartin0.uksouth.cloudapp.azure.com/chat-app)
## Developing
......@@ -25,8 +25,8 @@ npm run dev -- --open
```bash
git clone https://git.soton.ac.uk/mmps1g24/chat-app.git chat-app
cd chat-app
npm run prod:init
npm run prod:build
npm run init
npm run build
```
To start:
......
......@@ -4,16 +4,15 @@
"private": true,
"scripts": {
"dev": "vite dev",
"build": "vite build",
"build": "prisma migrate deploy && vite build",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --check . && eslint .",
"format": "prettier --write . && prisma format",
"prod:init": "prisma generate && prisma migrate deploy",
"prod:build": "prisma migrate deploy && vite build",
"prod:update": "git pull && npm run prod:build",
"prod:start": "node build/index.js"
"init": "npm i && prisma generate && prisma migrate deploy",
"update": "git pull && npm run build",
"start": "node build/index.js"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^3.0.0",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment