Added functionality to work with LiveScript or (Iced)CoffeeScript from the console#87
Open
mrft wants to merge 5 commits intoorientechnologies:masterfrom
Open
Added functionality to work with LiveScript or (Iced)CoffeeScript from the console#87mrft wants to merge 5 commits intoorientechnologies:masterfrom
mrft wants to merge 5 commits intoorientechnologies:masterfrom
Conversation
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...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.