Skip to content

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.

1 participant