Add basic deploy script

This commit is contained in:
pancakes 2024-04-24 20:39:37 +10:00
parent 0c40ac4646
commit b8efe39d7d
2 changed files with 4 additions and 2 deletions

1
.gitignore vendored
View file

@ -3,6 +3,7 @@ node_modules
/build
/.svelte-kit
/package
/public
.env
.env.*
!.env.example

View file

@ -8,7 +8,8 @@
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "eslint ."
"lint": "eslint .",
"deploy": "git pull; vite build; rm -rf public/; mv build/ public/"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^3.0.0",
@ -30,4 +31,4 @@
"vite": "^5.0.3"
},
"type": "module"
}
}