Przeglądaj źródła

detangle bower from npm. use init.sh script for initializing project

Adam Shaw 11 lat temu
rodzic
commit
4a321ddd6f
3 zmienionych plików z 18 dodań i 5 usunięć
  1. 10 1
      build/cdnjs.json
  2. 7 0
      build/init.sh
  3. 1 4
      package.json

+ 10 - 1
build/cdnjs.json

@@ -1,3 +1,12 @@
 {
-  "filename": "fullcalendar.min.js"
+  "filename": "fullcalendar.min.js",
+  "autoupdate": {
+    "source": "git",
+    "target": "git://github.com/arshaw/fullcalendar.git",
+    "basePath": "dist/",
+    "files": [
+      "*/*",
+      "*"
+    ]
+  }
 }

+ 7 - 0
build/init.sh

@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+
+cd "`dirname $0`/.."
+
+npm install
+
+bower install

+ 1 - 4
package.json

@@ -53,8 +53,5 @@
     "changelog.*",
     "license.*",
     "readme.*"
-  ],
-  "scripts": {
-    "install": "bower install"
-  }
+  ]
 }