-
Notifications
You must be signed in to change notification settings - Fork 64
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
Set input/output directory #18
Comments
Hey, thanks for the idea. I usually just compile when i'm packaging the application so I don't know what kind of approach would be most practical with this. Do you think "rules" for compiling for specific files would be a good option or would it be overkill?
I'm guessing the first one is more like a Cakefile thing so just having the option to specify compile dir and args would suffice? Also could you give me a couple alternative examples on how you want it to work please? From what I understand just specifying relative dirs such as I'm just brainstorming with you to plan extensiblity in the future. If all you want is something simple just let me know :) |
I think you should begin with the second solution: ability to specify -o and -c options of the coffee-script compiler. Relative path seems a good option (please take care of portability) because dealing with absolute path when you work in teams is a real pain. I guess that people who wants more customization will write their own cake file, as you mention it in the documentation. |
Thank you for your response :) I am now adding the arg options... But one thing isn't clear to me, when you say you want to specify -c option what exactly do you mean? From what I see it goes like Doing |
|
Forget about the -c option: your plugin takes the saved file to compile it, which is the right thing to do. As I used the other Sublime Text Coffee plugin, which do not compile coffee, I configured a custom build to compile all my coffee script after save (thank to SublimeOnSaveBuild). That's why I needed the -c, to specify a directory, and not a file. But as you're only compiling the saved file, there is no need of it. |
@feugy please let me know if there are any problems :) it should be working |
Works perfectly for me except one thing: the error reporting. |
@feugy it should be saying |
It whould be very handy to allow users setting the --output and --compiler options of the coffee-script compiler.
Currently, the compiled js file is generated in the coffee file parent folder.
Having a src/ folder for coffee script and a lib/ folder for compiled js is a common project layout.
Thanks a lot !
The text was updated successfully, but these errors were encountered: