소스 검색

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

Claude 8 달 전
부모
커밋
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": "",