From 253706c8957194cd4bd1af27eb8d8c50c5260f49 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Thu, 6 Jun 2024 23:00:51 +0200 Subject: Misc: Add GH pages deploy --- package.json | 3 +++ 1 file changed, 3 insertions(+) (limited to 'package.json') diff --git a/package.json b/package.json index 829ddbd..5d51815 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,8 @@ "version": "0.0.0", "type": "module", "scripts": { + "predeploy": "npm run build && cp ./404.html ./dist", + "deploy": "gh-pages -d dist", "dev": "vite", "build": "tsc && vite build", "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", @@ -24,6 +26,7 @@ "eslint": "^8.57.0", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-refresh": "^0.4.6", + "gh-pages": "^6.1.1", "typescript": "^5.2.2", "vite": "^5.2.0" } -- cgit 1.4.1