Created
August 22, 2012 21:54
-
-
Save aaronj1335/3429734 to your computer and use it in GitHub Desktop.
bootstrapping mr
This file contains hidden or 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
This file contains hidden or 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
<!doctype html> | |
<html> | |
<head> | |
<script src="node_modules/mr/bootstrap.js" data-module=index></script> | |
</head> | |
</html> |
This file contains hidden or 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
var underscoreRet = require('underscore'); | |
var d = document.createElement('div'); | |
d.innerHTML = 'module ' + module.location + ' loaded'; | |
var _ = window._; | |
console.log(); | |
d.innerHTML += '<br />underscore ' + _.version + ' loaded'; | |
document.body.appendChild(d); |
This file contains hidden or 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
{ | |
"name": "Ω", | |
"version": "0.0.0", | |
"description": "ERROR: No README.md file found!", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"repository": "", | |
"author": "", | |
"license": "BSD", | |
"dependencies": { | |
"mr": ">=0.0.2", | |
"underscore": ">=1.3.3" | |
} | |
} |
Looking into it. Looks good to me.
Reproduced the error. Isolating.
Got it. It’s because of a customization in Q that is getting trampled by NPM. I’ll move things around.
Published v0.0.2 to address this. Works locally now. Thanks for the reduction.
hey yo! thanks.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this should serve up an
mr
module and print 'hello world' to the screen, but it doesn't seem to work.steps to reproduce
copy and paste the following into a terminal (you'll need to replace the 'open' call if you're not on os x):
check the the javascript console for "Hello, World!"
expected behavior
actual behavior
index.js
module is never loadedalso note
i tried kicking off the
python -m SimpleHTTPServer
in thedemo
folder of themr
project, and it worked correctly, but i want to start playing with my own project :) (and installing dependencies vianpm
).what's wrong?