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

Bundled, minified distribution without node dependency? #45

Closed
gordonbrander opened this issue Mar 31, 2016 · 6 comments
Closed

Bundled, minified distribution without node dependency? #45

gordonbrander opened this issue Mar 31, 2016 · 6 comments

Comments

@gordonbrander
Copy link

Is it possible to create a bundled flat file that you can link in with a simple <script> tag? The goal would be to avoid Node/babel dependency for development.

@Gozala
Copy link
Contributor

Gozala commented Mar 31, 2016

@gordonbrander that's the case for bundles that we push onto gh-pagse branch:
https://github.com/browserhtml/browserhtml/tree/gh-pages

See:
https://github.com/browserhtml/browserhtml/blob/gh-pages/index.html
https://github.com/browserhtml/browserhtml/blob/gh-pages/components/browser/index.js

If you mean to kill node / babel dependency even for development, I think there's lot's of tradeoffs we would have to make for that & at the end of the day we would still probably need to bundle & minify for deployments.

@gordonbrander
Copy link
Author

@Gozala this is more for my own selfish reasons... I would love to use Reflex in a Python project that doesn't have node as a dependency.

@gordonbrander
Copy link
Author

I think what I'm actually asking is this: can Babel create a bundled script file that exports modules to the global namespace? Will investigate.

@Gozala
Copy link
Contributor

Gozala commented Mar 31, 2016

@gordonbrander oh I did not realize this was on the reflex repo :) But yeah you should be able to use reflex without babel or node dependencies. When I publish to npm it generates a dist/reflex.js file that you could just include via script tag.

@Gozala
Copy link
Contributor

Gozala commented Mar 31, 2016

@gordonbrander so only tricky thing is you'd have to download that generated file from somewhere, like npm which you can totally do.

I would not be opposed to attaching bundled reflex.js files to releases on github:
https://github.com/Gozala/reflex/releases

If that is interesting to you, I'm happy to add you as a collaborator and let you help me with that.

@gordonbrander
Copy link
Author

@Gozala yup, I would love to do that.

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

2 participants