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

js_of_ocaml support. #9

Closed
dbuenzli opened this issue Jul 1, 2014 · 7 comments
Closed

js_of_ocaml support. #9

dbuenzli opened this issue Jul 1, 2014 · 7 comments

Comments

@dbuenzli
Copy link
Collaborator

dbuenzli commented Jul 1, 2014

It would be nice to have support for js_of_ocaml. Basically rules to generates .js from .cmos. Documentation of the tool.

@dbuenzli
Copy link
Collaborator Author

dbuenzli commented Jul 1, 2014

Also see the section about linking.

@samoht
Copy link
Owner

samoht commented Jul 3, 2014

Where do you expect .js to be installed ?

@dbuenzli
Copy link
Collaborator Author

dbuenzli commented Jul 3, 2014

Good question... maybe just leave it in the build dir. E.g. for testing, for now, with ocamlbuild I just symlink the right directory in _build so that my local webserver can pick them up.

Does assemblage support some kind of build dir lookup command ? This could be used by ad-hoc deployment scripts.

In any case it should also possible to simply install .js files in lib directories, as those may be needed for bindings. Beyond that I don't know if js_of_ocaml has some notion of separate compilation so that you can distribute libraries as separate js files (there is a -noruntime option but I don't know if you can then link using a sequence of <script> tags on a page).

@hhugo any thoughts ?

@dbuenzli
Copy link
Collaborator Author

dbuenzli commented Jul 3, 2014

In any case I think you need hooks in the system in order to have control over what gets installed where. A use case could be an application that installs e.g. binaries to process data or an scgi daemon and static support file for web clients (.html, .css and js_of_ocaml compiled .js files), I guess that in the case of an OS package you'd put these files in share.

@samoht
Copy link
Owner

samoht commented Jul 9, 2014

Keeping the issue open as the JS files are now produced but they are not installed (yet).

@dbuenzli
Copy link
Collaborator Author

dbuenzli commented Jul 9, 2014

We should really try to get some feedback from the js_of_ocaml folks on that one.

@samoht
Copy link
Owner

samoht commented Jul 23, 2014

closing as superseded by #52

@samoht samoht closed this as completed Jul 23, 2014
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