Kaynağa Gözat

Install sinon via npm. Bump version in package.json

JC Brand 8 yıl önce
ebeveyn
işleme
1a0cb07098
4 değiştirilmiş dosya ile 5 ekleme ve 5 silme
  1. 0 1
      bower.json
  2. 2 2
      config.js
  3. 2 1
      package.json
  4. 1 1
      tests/main.js

+ 0 - 1
bower.json

@@ -8,7 +8,6 @@
     "bourbon": "~4.2.6",
     "crypto-js-evanvosberg": "https://github.com/evanvosberg/crypto-js.git#release-3.1.2-5",
     "fontawesome": "~4.1.0",
-    "sinon": "^1.17.3",
     "typeahead.js": "https://raw.githubusercontent.com/jcbrand/typeahead.js/eedfb10505dd3a20123d1fafc07c1352d83f0ab3/dist/typeahead.jquery.js"
   },
   "dependencies": {},

+ 2 - 2
config.js

@@ -213,6 +213,8 @@ require.config({
 
     // define module dependencies for modules not using define
     shim: {
+        'backbone':             { deps: ['underscore'] },
+        'bigint':               { deps: ['crypto'] },
         'crypto.aes':           { deps: ['crypto.cipher-core'] },
         'crypto.cipher-core':   { deps: ['crypto.enc-base64', 'crypto.evpkdf'] },
         'crypto.enc-base64':    { deps: ['crypto.core'] },
@@ -223,10 +225,8 @@ require.config({
         'crypto.pad-nopadding': { deps: ['crypto.cipher-core'] },
         'crypto.sha1':          { deps: ['crypto.core'] },
         'crypto.sha256':        { deps: ['crypto.core'] },
-        'bigint':               { deps: ['crypto'] },
         'strophe.ping':         { deps: ['strophe'] },
         'strophe.register':     { deps: ['strophe'] },
         'strophe.vcard':        { deps: ['strophe'] },
-        'backbone':             { deps: ['underscore'] }
     }
 });

+ 2 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "converse.js",
-  "version": "2.0.5",
+  "version": "3.0.0",
   "description": "Browser based XMPP instant messaging client",
   "main": "main.js",
   "directories": {
@@ -49,6 +49,7 @@
     "install": "^0.8.4",
     "jed": "0.5.4",
     "jquery": "2.2.3",
+    "sinon": "^1.17.3",
     "jquery-easing": "0.0.1",
     "jquery.browser": ">=0.1.0",
     "jshint": "^2.9.4",

+ 1 - 1
tests/main.js

@@ -1,7 +1,7 @@
 // Extra test dependencies
 config.paths.mock = "tests/mock";
 config.paths.test_utils = "tests/utils";
-config.paths.sinon = "components/sinon/lib/sinon";
+config.paths.sinon = "node_modules/sinon/lib/sinon";
 config.paths.jasmine = "node_modules/jasmine-core/lib/jasmine-core/jasmine";
 config.paths.transcripts = "converse-logs/converse-logs";
 config.paths["jasmine-html"] = "node_modules/jasmine-core/lib/jasmine-core/jasmine-html";