NOTE: the content is out-of-date. All development is moved to the https://github.com/yurydelendik/wasmception
# locations, e.g.
export WORKDIR=~/llvmwasm; mkdir -p $WORKDIR
export INSTALLDIR=$WORKDIR
NOTE: the content is out-of-date. All development is moved to the https://github.com/yurydelendik/wasmception
# locations, e.g.
export WORKDIR=~/llvmwasm; mkdir -p $WORKDIR
export INSTALLDIR=$WORKDIR
| grunt.registerTask('finalize', function () { | |
| var cdnBaseUrl = "//mycdn/scripts/"; // CDN Url where files will be hosted | |
| var pathBase = "./dist/scripts/"; // Local directory where files are already optimized with rjs and already revved (like d4edefds.file.js) | |
| function revmd5(fileContent) { | |
| var hash = crypto.createHash("md5"); | |
| hash.update(fileContent); | |
| // 8 chars will be sufficient | |
| return hash.digest('hex').slice(0, 8); | |
| } |
| (function (global) { | |
| // TODO: Delegate to parent loader in various places | |
| // TODO: Canonicalization | |
| // TODO: Can we do better for 'eval'? | |
| /// Module loader constructor | |
| function Loader(parent, options) { | |
| // Initialization of loader state from options |
| /*jslint regexp: true, maxerr: 50, indent: 2 */ | |
| (function (global) { | |
| "use strict"; | |
| function URLUtils(url, baseURL) { | |
| var m = String(url).replace(/^\s+|\s+$/g, "").match(/^([^:\/?#]+:)?(?:\/\/(?:([^:@\/?#]*)(?::([^:@\/?#]*))?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/); | |
| if (!m) { | |
| throw new RangeError(); | |
| } |