From b8efe39d7d7323c9050f10a56d8465f47f3f38ac Mon Sep 17 00:00:00 2001 From: pancakes Date: Wed, 24 Apr 2024 20:39:37 +1000 Subject: [PATCH] Add basic deploy script --- .gitignore | 1 + package.json | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 6635cf5..bdde2ba 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ node_modules /build /.svelte-kit /package +/public .env .env.* !.env.example diff --git a/package.json b/package.json index f6f239e..71c1b47 100644 --- a/package.json +++ b/package.json @@ -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" -} +} \ No newline at end of file