Permalink
Browse files

Added development versions for yui2 and yui3 in subdirectories under …

…yui_module_info. Added scripts to generate these files from the client loader.
  • Loading branch information...
1 parent 4a4d3a9 commit 5f5577e57a4a435ca2186a31cd717cdfe37e0c0b Adam Moore committed Jan 15, 2009
@@ -0,0 +1,28 @@
+
+var navigator = navigator || {
+ userAgent: "custom"
+};
+
+var document = document || {
+
+};
+
+var window = window || {
+ document: document,
+ navigator: navigator
+}
+
+load("yui2_version.js");
+
+load("../../yui2/build/yuiloader/yuiloader.js");
+load("../../yui2/build/json/json.js");
+
+var l = new YAHOO.util.YUILoader();
+
+print(YAHOO.lang.JSON.stringify({
+ 'base': 'http://yui.yahooapis.com/' + version + '/build/',
+ 'skin': l.skin,
+ 'moduleInfo': l.moduleInfo
+
+ }));
+
@@ -0,0 +1,25 @@
+<?php
+
+function getRemoteContent($url) {
+
+ $ch = curl_init();
+
+ curl_setopt($ch, CURLOPT_URL,$url); // set url to post to
+ curl_setopt($ch, CURLOPT_FAILONERROR, 1);
+ curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);// allow redirects
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // return into a variable
+
+ $remote_content = curl_exec($ch);
+
+ curl_close ($ch);
+
+ return $remote_content;
+}
+
+$json = getRemoteContent('http://127.0.0.1/src/phploader/yui_module_info/yui2_devel/json.txt');
+
+$inf = json_decode($json, true);
+
+print_r( '<?php $GLOBALS[\'yui_current\'] = ' . var_export($inf, true) . '; ?>');
+
+?>
@@ -0,0 +1,3 @@
+# requires spidermonkey/rhino
+java -jar js.jar yui2_build_config.js $* > ../yui_module_info/yui2_devel/json.txt
+php yui2_build_config.php > ../yui_module_info/yui2_devel/config.php
View
@@ -0,0 +1 @@
+var version = '2.7.0';
@@ -0,0 +1,38 @@
+
+var navigator = navigator || {
+ userAgent: "custom"
+};
+
+var document = document || {
+
+};
+
+var window = window || {
+ document: document,
+ navigator: navigator
+}
+
+load("yui3_version.js");
+load("../../yui3/build/yui/yui-debug.js");
+load("../../yui3/build/json/json-debug.js");
+
+YUI({
+
+ base: "../../yui3/build/"
+
+}).use("json", function(Y) {
+
+ var l = new Y.Loader({
+ base: 'http://yui.yahooapis.com/' + version + '/build/'
+ }),
+
+ o = Y.JSON.stringify({
+ base: l.base,
+ skin: l.skin,
+ moduleInfo: l.moduleInfo
+ });
+
+ print(o);
+
+});
+
@@ -0,0 +1,25 @@
+<?php
+
+function getRemoteContent($url) {
+
+ $ch = curl_init();
+
+ curl_setopt($ch, CURLOPT_URL,$url); // set url to post to
+ curl_setopt($ch, CURLOPT_FAILONERROR, 1);
+ curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);// allow redirects
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // return into a variable
+
+ $remote_content = curl_exec($ch);
+
+ curl_close ($ch);
+
+ return $remote_content;
+}
+
+$json = getRemoteContent('http://127.0.0.1/src/phploader/yui_module_info/yui3_devel/json.txt');
+
+$inf = json_decode($json, true);
+
+print_r( '<?php $GLOBALS[\'yui_current\'] = ' . var_export($inf, true) . '; ?>');
+
+?>
@@ -0,0 +1,3 @@
+# requires spidermonkey/rhino
+java -jar js.jar yui3_build_config.js $* > ../yui_module_info/yui3_devel/json.txt
+php yui3_build_config.php > ../yui_module_info/yui3_devel/config.php
View
@@ -0,0 +1 @@
+var version = '3.0.0b1';
Oops, something went wrong.

0 comments on commit 5f5577e

Please sign in to comment.