Skip to content

Instantly share code, notes, and snippets.

@jdlrobson
Created April 21, 2016 12:34
Show Gist options
  • Select an option

  • Save jdlrobson/61d663270ebf88d85d9ade49f2aed5fa to your computer and use it in GitHub Desktop.

Select an option

Save jdlrobson/61d663270ebf88d85d9ade49f2aed5fa to your computer and use it in GitHub Desktop.
{
"ResourceModules": {
"joaquin.js": {
"scripts": "joaquin.js"
},
"jon.js": {
"scripts": "jon.js"
},
"baha.js": {
"scripts": "baha.js"
},
"others/sam.js": {
"scripts": "others/sam.js"
}
"others/jeff.js": {
"scripts": "others/jeff.js"
}
}
}
// (imagine this is inside a folder called other - gist wont let me do that)
var baha = require( 'baha.js' );
module.exports = {
understand: function () {
return true;
},
bahaUnderstands: function () {
return baha.understand();
},
wtf: function () {
return false;
}
};
var jon = require( 'jon.js' );
var jeff = require( 'others/jeff.js' );
var sam = require( 'others/sam.js' );
console.log( 'Is this thing on?', jon.understand() && sam.understand() && jeff.understand() && jeff.bahaUnderstands() );
module.exports = {
understand: function () {
return true;
},
wtf: function () {
return false;
}
};
// (imagine this is inside a folder called other - gist wont let me do that)
module.exports = {
understand: function () {
return true;
},
wtf: function () {
return false;
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment