Permalink
Browse files

Add module support for ender, again

  • Loading branch information...
1 parent 744175a commit 787f71b8e1447a40dac33e1c12e6e8bb873824c2 @pyrsmk committed Nov 13, 2011
Showing with 39 additions and 8 deletions.
  1. +1 −1 Makefile
  2. +1 −1 README.markdown
  3. +1 −1 config/jshint.json
  4. +0 −1 molt-2.0.0.min.js
  5. +1 −0 molt-2.0.1.min.js
  6. +1 −1 molt-W-2.0.0.min.js → molt-W-2.0.1.min.js
  7. +11 −0 src/ender.js
  8. +10 −3 src/molt.js
  9. +13 −0 src/package.json
View
@@ -1,5 +1,5 @@
OLD = ls -l | grep .js | sed -r 's/.+\s(\S+)/\1/'
-NAME = ls src | sed -nr 's/(.+)\.js/\1/p'
+NAME = ls src | sed -r 's/ender\.js|package\.json|\s+//' | sed -nr 's/(.+)\.js/\1/p'
VERSION = grep -m 1 Version src/\`${NAME}\`.js | sed -r 's/.*:\s*(.+)/\1/'
URL = grep -m 1 Homepage src/\`${NAME}\`.js | sed -r 's/.*Homepage\s*:\s*(.+)/\1/'
W = ls lib | grep W
View
@@ -1,4 +1,4 @@
-molt 2.0.0
+molt 2.0.1
==========
The idea to develop molt comes from a few observations:
View
@@ -1,6 +1,6 @@
{
"browser" : true,
- "predef" : ["W"],
+ "predef" : ["module","W"],
"boss" : true,
"curly" : true,
"eqnull" : true,
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -0,0 +1,11 @@
+var molt=require('molt');
+
+$.ender({
+ discover:molt.discover
+});
+
+$.ender({
+ listen:function(callback){
+ molt.listen(this,callback);
+ }
+},true);
View
@@ -1,13 +1,20 @@
/*
molt, image updater for responsive designs
- Version: 2.0.0
+ Version: 2.0.1
Author: Aurélien Delogu (dev@dreamysource.fr)
Homepage: https://github.com/pyrsmk/molt
License: MIT
*/
-this.molt=function(){
+(function(def){
+ if(typeof module!='undefined'){
+ module.exports=def;
+ }
+ else{
+ this.molt=def;
+ }
+}(function(){
/*
Array nodes: molt images
@@ -96,4 +103,4 @@ this.molt=function(){
};
-}();
+}()));
View
@@ -0,0 +1,13 @@
+{
+ "name" : "molt",
+ "description" : "Image updater for responsive designs",
+ "version" : "2.0.1",
+ "author" : "Aurélien Delogu <pyrsmk@dreamysource.fr> (http://dreamysource.fr)",
+ "repository" : {
+ "type" : "git",
+ "url" : "https://github.com/pyrsmk/molt.git"
+ },
+ "main" : "molt.js",
+ "ender" : "ender.js",
+ "keywords" : ["ender","image","responsive"]
+}

0 comments on commit 787f71b

Please sign in to comment.