Browse Source

Added call to donate after npm install (optional)

François Hodierne 4 years ago
parent
commit
444509b422
1 changed files with 11 additions and 3 deletions
  1. 11 3
      package.json

+ 11 - 3
package.json

@@ -4,7 +4,8 @@
   "description": "不可替代的团队领袖培养计划",
   "main": "config.js",
   "scripts": {
-    "start": "docsify serve . --port 3456 --open"
+    "start": "docsify serve . --port 3456 --open",
+    "postinstall": "opencollective-postinstall"
   },
   "repository": {
     "type": "git",
@@ -23,6 +24,13 @@
   },
   "homepage": "https://leader.js.cool/",
   "devDependencies": {
-   "docsify-cli": "^4.1.8"
+    "docsify-cli": "^4.1.8"
+  },
+  "dependencies": {
+    "opencollective-postinstall": "^2.0.2"
+  },
+  "collective": {
+    "type": "opencollective",
+    "url": "https://opencollective.com/leader"
   }
-}
+}