Permalink
Browse files

Fix browserification

  • Loading branch information...
1 parent ee01e6f commit daade5acc686c32e5586ba514a65e91fb1beccf3 @ixti ixti committed Jul 1, 2012
Showing with 20 additions and 23 deletions.
  1. +1 −1 Makefile
  2. +6 −4 demo/index.html
  3. +2 −6 demo/js/js-yaml.js
  4. +7 −1 examples/single.yml
  5. +1 −0 index.browserify.js
  6. +0 −4 index.js
  7. +2 −6 js-yaml.js
  8. +1 −1 js-yaml.min.js
View
@@ -97,7 +97,7 @@ browserify:
if test ! `which browserify` ; then npm install browserify ; fi
if test ! `which uglifyjs` ; then npm install uglify-js ; fi
cp -r support/browserify/ ${TMP_PATH}
- browserify index.js -o ${TMP_PATH}/50_js-yaml.js
+ browserify index.browserify.js -o ${TMP_PATH}/50_js-yaml.js
cat ${TMP_PATH}/* > js-yaml.js
rm -rf ${TMP_PATH}
cp js-yaml.js demo/js/
View
@@ -107,10 +107,12 @@
# http://yaml.org/type/bool.html ----------------------------------------------#
bool:
- canonical: y
- answer: NO
- logical: True
- option: on
+ - true
+ - True
+ - TRUE
+ - false
+ - False
+ - FALSE
# http://yaml.org/type/float.html ---------------------------------------------#
View
@@ -5218,11 +5218,7 @@ module.exports.Constructor = Constructor;
////////////////////////////////////////////////////////////////////////////////
});
-require.define("/index.js",function(require,module,exports,__dirname,__filename,process){module.exports = require('./lib/js-yaml.js');
-
-if (window && !window.jsyaml) {
- window.jsyaml = module.exports;
-}
+require.define("/index.browserify.js",function(require,module,exports,__dirname,__filename,process){window.jsyaml = require('./lib/js-yaml.js');
});
-require("/index.js");
+require("/index.browserify.js");
})();
View
@@ -86,7 +86,13 @@ binary:
# http://yaml.org/type/bool.html ----------------------------------------------#
-bool: True
+bool:
+ - true
+ - True
+ - TRUE
+ - false
+ - False
+ - FALSE
# http://yaml.org/type/float.html ---------------------------------------------#
View
@@ -0,0 +1 @@
+window.jsyaml = require('./lib/js-yaml.js');
View
@@ -1,5 +1 @@
module.exports = require('./lib/js-yaml.js');
-
-if (window && !window.jsyaml) {
- window.jsyaml = module.exports;
-}
View
@@ -5218,11 +5218,7 @@ module.exports.Constructor = Constructor;
////////////////////////////////////////////////////////////////////////////////
});
-require.define("/index.js",function(require,module,exports,__dirname,__filename,process){module.exports = require('./lib/js-yaml.js');
-
-if (window && !window.jsyaml) {
- window.jsyaml = module.exports;
-}
+require.define("/index.browserify.js",function(require,module,exports,__dirname,__filename,process){window.jsyaml = require('./lib/js-yaml.js');
});
-require("/index.js");
+require("/index.browserify.js");
})();
View
Oops, something went wrong.

0 comments on commit daade5a

Please sign in to comment.