浏览代码

Re-add build.js so that we can build with almond.

grunt-contribute-requirejs doesn't support almond (yet?).
JC Brand 11 年之前
父节点
当前提交
7d648f9611
共有 2 个文件被更改,包括 29 次插入4 次删除
  1. 3 4
      bower.json
  2. 26 0
      build.js

+ 3 - 4
bower.json

@@ -7,7 +7,6 @@
   "dependencies": {
     "requirejs": "2.1.8",
     "jquery": "1.8.3",
-    "sjcl": "git://github.com/bitwiseshiftleft/sjcl.git",
     "jed": "0.5.4",
     "tinysort": "git://github.com/Sjeiti/TinySort.git",
     "underscore": "1.5.1",
@@ -17,8 +16,8 @@
     "strophe.roster": "https://raw.github.com/jcbrand/strophejs-plugins/75c8693992bc357c699b6d615eeb396e799f5c02/roster/strophe.roster.js",
     "strophe.vcard": "https://raw.github.com/jcbrand/strophejs-plugins/75c8693992bc357c699b6d615eeb396e799f5c02/vcard/strophe.vcard.js",
     "strophe.disco": "https://raw.github.com/jcbrand/strophejs-plugins/75c8693992bc357c699b6d615eeb396e799f5c02/disco/strophe.disco.js",
-    "strophe.muc": "https://raw.github.com/jcbrand/strophejs-plugins/75c8693992bc357c699b6d615eeb396e799f5c02/muc/strophe.muc.js"
+    "strophe.muc": "https://raw.github.com/jcbrand/strophejs-plugins/75c8693992bc357c699b6d615eeb396e799f5c02/muc/strophe.muc.js",
+    "almond": "~0.2.6"
   },
-  "exportsOverride": {
-  }
+  "exportsOverride": {}
 }

+ 26 - 0
build.js

@@ -0,0 +1,26 @@
+({
+    baseUrl: ".",
+    name: "components/almond/almond.js",
+    out: "converse.min.js",
+    include: ['main'],
+    paths: {
+        "jquery": "components/jquery/jquery",
+        "jed": "components/jed/jed",
+        "locales": "locale/locales",
+        "af": "locale/af/LC_MESSAGES/af",
+        "en": "locale/en/LC_MESSAGES/en",
+        "de": "locale/de/LC_MESSAGES/de",
+        "es": "locale/es/LC_MESSAGES/es",
+        "it": "locale/it/LC_MESSAGES/it",
+        "pt_BR": "locale/pt_BR/LC_MESSAGES/pt_BR", 
+        "tinysort": "components/tinysort/src/jquery.tinysort",
+        "underscore": "components/underscore/underscore",
+        "backbone": "components/backbone/backbone",
+        "localstorage": "components/backbone.localStorage/backbone.localStorage",
+        "strophe": "components/strophe/strophe",
+        "strophe.muc": "components/strophe.muc/index",
+        "strophe.roster": "components/strophe.roster/index",
+        "strophe.vcard": "components/strophe.vcard/index",
+        "strophe.disco": "components/strophe.disco/index"
+    }
+})