Pārlūkot izejas kodu

feat: add npm scripts to install and build client automatically #38

Claude 8 mēneši atpakaļ
vecāks
revīzija
5ecd4f06aa
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 4 1
      package.json

+ 4 - 1
package.json

@@ -6,7 +6,10 @@
   "type": "module",
   "scripts": {
     "start": "node src/index.js",
-    "dev": "node --watch src/index.js"
+    "dev": "node --watch src/index.js",
+    "install": "cd client && npm install",
+    "build": "cd client && npm run build",
+    "postinstall": "npm run build"
   },
   "keywords": ["gogs", "webhook", "git"],
   "author": "",