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

Added functionality to work with LiveScript or (Iced)CoffeeScript from the console #87

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

mrft
Copy link

@mrft mrft commented Jun 24, 2014

The OFunction object will be saved with an extra property icedcoffeescript or livescript (when applicable), and before saving it will be compiled to javascript and the 'code' property will be updated with the compiled javascript code.

The 'language' property will be Javascript in all these cases.

Frederik Tilkin added 5 commits June 11, 2014 12:17
…Script and LiveScript. Their code will be saved in different properties of the OFunction object, and the language will still be 'Javascript'.

At this time, it is assumed that the proper Hook is enabled that will compile code in either the icecoffeescript or livescript property to javascript before saving, but this could easily be changed such that the Studio itself compiles the javascript before saving the function.

This is a TODO, but I want some feedback first from other people who are interested in this feature about what the best solution would be: create a 'studio-only' solution, or require the hook, such that anyone who tries to save an OFunction document with an extra property like livescript or icedcoffeescript will be sure that the code property will get updated automatically with the compiled javascript code...
…ipt before saving the function!

This means that it will work even when the hook is not installed in OrientDB...
…Script and LiveScript. Their code will be saved in different properties of the OFunction object, and the language will still be 'Javascript'.

At this time, it is assumed that the proper Hook is enabled that will compile code in either the icecoffeescript or livescript property to javascript before saving, but this could easily be changed such that the Studio itself compiles the javascript before saving the function.

This is a TODO, but I want some feedback first from other people who are interested in this feature about what the best solution would be: create a 'studio-only' solution, or require the hook, such that anyone who tries to save an OFunction document with an extra property like livescript or icedcoffeescript will be sure that the code property will get updated automatically with the compiled javascript code...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant