-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Execute local file / Use local shell #4216
Comments
@olsgreen wrote a Brackets extension for LESS (https://github.com/olsgreen/BracketLESS), so you should be able to do something similar for SASS. |
Hey, thanks. I thought about that and looked into it. But the LESS compiler is written in javascript, so it's not a problem to call it. The Sass compiler on the opposite is written in Ruby. |
Brackets has a built in nodejs server, so I think you can it to run Ruby. Take a look at the brackets/src/extensions/default/StaticServer extension as an example. |
Thank you, I'll check it out. |
Sorry, but I couldn't get any closer with the StaticServer extension. I also looked at a lot of other files, but still didn't find anything. Do you have another idea or could you point me to a more precise direction? |
There's an xUnit extension that has the ability to run a shell script from the project tree, the implementation is here https://github.com/dschaffe/brackets-xunit/blob/master/node/ProcessDomain.js. Are you looking to develop your own extension or are you requesting that we add this feature to core? |
Thanks for the hint. Currently I want to write a little extension to execute a batch file (for running a phone gap app), but this could also be a really nice feature in bracket's core, so yes, it's also a request. |
Hey again, I finally got it to work with xunit and brackets-simple-node (https://github.com/joelrbrandt/brackets-simple-node) as templates. It's not finished, but I can execute a batch file at least. Thanks for your help. |
We're working to make writing Node extensions easier. Using Node and Node's way of running external processes is definitely the easiest way to handle this kind of need. |
@d33k4y Hey, how far a long are you with a SASS extension? I did start writing support for SASS into my extension, if anyone's writing another one I'll stop work? I'm probably 70% done. |
Hey, |
Is there a possibility to execute a local file (like a sass-compiler) or use the local shell?
The text was updated successfully, but these errors were encountered: