Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Execute local file / Use local shell #4216

Closed
KuenzelIT opened this issue Jun 13, 2013 · 11 comments
Closed

Execute local file / Use local shell #4216

KuenzelIT opened this issue Jun 13, 2013 · 11 comments

Comments

@KuenzelIT
Copy link

Is there a possibility to execute a local file (like a sass-compiler) or use the local shell?

@redmunds
Copy link
Contributor

@olsgreen wrote a Brackets extension for LESS (https://github.com/olsgreen/BracketLESS), so you should be able to do something similar for SASS.

@KuenzelIT
Copy link
Author

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.

@redmunds
Copy link
Contributor

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.

@KuenzelIT
Copy link
Author

Thank you, I'll check it out.

@KuenzelIT
Copy link
Author

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?

@jasonsanjose
Copy link
Member

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?

@KuenzelIT
Copy link
Author

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.

@KuenzelIT
Copy link
Author

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.

@dangoor
Copy link
Contributor

dangoor commented Jun 17, 2013

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.

@dangoor dangoor closed this as completed Jun 17, 2013
@olsgreen
Copy link
Contributor

olsgreen commented Jul 7, 2013

@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.

@KuenzelIT
Copy link
Author

Hey,
sorry but I never wrote a SASS extension, I just used that as an example (and because I made one for Notepad++).
So, keep up the good work. :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants