Эх сурвалжийг харах

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

Claude 8 сар өмнө
parent
commit
5ecd4f06aa
1 өөрчлөгдсөн 4 нэмэгдсэн , 1 устгасан
  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": "",