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

how to use without node? #6

Open
EVERYTHINGING opened this issue Apr 9, 2017 · 8 comments
Open

how to use without node? #6

EVERYTHINGING opened this issue Apr 9, 2017 · 8 comments

Comments

@EVERYTHINGING
Copy link

Hey there, wondeful library. I love the format and how it works with VDMX.

I was able to run the server in the examples using budo however, I would like to use the library without node, locally with one js file. What is the best way to do this? Or is it not recommended as node is doing some sort of heavy lifting that would not work well on the client side?

Thank you

@msfeldstein
Copy link
Owner

Good idea. If you pull to master, you should be able to run npm run build-global which will output build/isf.global.js and should add the classes to your window object when included.

If this doesn't run let me know. Whats the latest packaging norms for non-browserify based distribution?

@msfeldstein
Copy link
Owner

also if this does work let me know

@EVERYTHINGING
Copy link
Author

command doesn't work. says missing script: build-global.

I was able to get this to work locally by running browserify examples/app.js > examples/app-build.js and then swapping app.js for app-build.js in the examples/index.html. However, this still uses the require statements. I was wondering if there was a way to build this out similarly to requirejs optimization tools which concats all of the js into one file in the necessary order?

@msfeldstein
Copy link
Owner

msfeldstein commented Apr 13, 2017 via email

@EVERYTHINGING
Copy link
Author

Rad thank you. I would like to submit a pull request with a separate index-local.html and app-local.js which makes it easy to get going without any tinkering but... I am getting a fatal: unable to access 'https://github.com/msfeldstein/interactive-shader-format-js.git/': The requested URL returned error: 403 when I try to push up my new branch...

@msfeldstein
Copy link
Owner

you can't push to my repo, you need to create a fork to your own account, then create a pull request

@EVERYTHINGING
Copy link
Author

aye ok will do this later thank you

@MacroMachines
Copy link

MacroMachines commented Dec 30, 2017

Im curious about this as well. I was trying to see if i could run this in CODA for ios on my ipad pro, and getting the console error:
"ReferenceError: Can't find variable: require
I am here"
I haven't yet used node.js / npm / browserify in practice, so i am assuming there are dependencies there, @msfeldstein would your prior comment be a remedy for this, or is there a version somewhere that might have already done this?

It seems like it should be possible to slim this all down into portable JS, am i correct in that assumption?

@EVERYTHINGING did you happen to post your version you mention?

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

No branches or pull requests

3 participants