Browse Source

requirejs as dev dependency, using ^ notation

Herbert Vojčík 10 years ago
parent
commit
d7988a1a1d
3 changed files with 10 additions and 9 deletions
  1. 3 3
      bower.json
  2. 1 1
      index.html
  3. 6 5
      package.json

+ 3 - 3
bower.json

@@ -12,8 +12,8 @@
     "amber": ">=0.12.6",
     "jquery": ">=1.7.0",
     "jquery-ui": ">=1.9.2",
-    "bootstrap2.3.2": "~2.3.2",
-    "codemirror": "~3.24.0",
-    "showdown": "~0.3.1"
+    "bootstrap2.3.2": "^2.3.2",
+    "codemirror": "^3.24.0",
+    "showdown": "^0.3.1"
   }
 }

+ 1 - 1
index.html

@@ -31,7 +31,7 @@
               });
             };
             script = document.createElement("script");
-            script.src = amberPath + "/requirejs/require.min.js";
+            script.src = "node_modules/requirejs/require.js";
             document.getElementsByTagName("head")[0].appendChild(script);
           }
         }, 200);

+ 6 - 5
package.json

@@ -24,10 +24,11 @@
     "test": "grunt test"
   },
   "devDependencies": {
-    "grunt": "~0.4.0",
-    "grunt-execute": "~0.2.1",
-    "grunt-contrib-clean": "~0.5.0",
-    "amber-dev": "~0.1.5"
+    "amber-dev": "^0.2.1",
+    "grunt": "^0.4.0",
+    "grunt-contrib-clean": "^0.6.0",
+    "grunt-execute": "^0.2.1",
+    "requirejs": "^2.1.15"
   },
   "keywords": [
     "Amber",
@@ -35,4 +36,4 @@
     "Helios",
     "IDE"
   ]
-}
+}