Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: where does todo-mvc/static/deps.js come from? #2

Open
k0001 opened this issue Jan 25, 2015 · 3 comments
Open

Question: where does todo-mvc/static/deps.js come from? #2

k0001 opened this issue Jan 25, 2015 · 3 comments
Labels

Comments

@k0001
Copy link
Contributor

k0001 commented Jan 25, 2015

Hey @Boothead, I wonder where does todo-mvc/static/deps.js come from. How do you generate that file?

@commandodev
Copy link
Owner

@krisajenkins wrote that to pull in the dependencies, we then used browserify to build vendor.js. I'm sure there's an equivalent ghcjs way to do but I haven't tried too hard. I've very open to improvement suggestions :-)

@krisajenkins
Copy link

For what it's worth I wrote:

global.Delegator = require('dom-delegator');
global.Delegator();
global.h = require('virtual-hyperscript');
global.svg = require('virtual-hyperscript/svg');
global.hook = require('virtual-hyperscript/hooks/ev-hook');
global.diff = require('virtual-dom/diff');
global.patch = require('virtual-dom/patch');
global.createElement = require('virtual-dom/create-element');

Browserify turns that code into that larger script that's in the repo. :-}

@k0001
Copy link
Contributor Author

k0001 commented Jan 27, 2015

Thanks for the explanation!
Le 27 janv. 2015 19:01, "Kris Jenkins" [email protected] a écrit :

For what it's worth I wrote:

global.Delegator = require('dom-delegator');global.Delegator();global.h = require('virtual-hyperscript');global.svg = require('virtual-hyperscript/svg');global.hook = require('virtual-hyperscript/hooks/ev-hook');global.diff = require('virtual-dom/diff');global.patch = require('virtual-dom/patch');global.createElement = require('virtual-dom/create-element');

Browserify turns that code into that larger script that's in the repo. :-}


Reply to this email directly or view it on GitHub
#2 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants