This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A simple generator wrapper, not sure if it's good for anything at all. | |
# With basic python threading | |
from threading import Thread | |
try: | |
from queue import Queue | |
except ImportError: | |
from Queue import Queue | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* onBuildRead hooks before optimizations, which is what we need in order to | |
* fake Bootstrap having define() call | |
*/ | |
onBuildRead: function (name, path, contents) { | |
var jqueryVar = 'jqueryModule'; | |
var wrapperHead = "define('" + name + "', ['jquery'], "; | |
var wrapperTail = ");"; | |
if (name === "bootstrap") { | |
console.log("Wrapping bootstrap in " + wrapperHead + "..." + wrapperTail); |
NewerOlder