Home Download Buy Blog Forum Support

question about relative path [sublime-build]

question about relative path [sublime-build]

Postby edwin on Sat Jun 08, 2013 5:18 am

currently my config file :
CoffeeScriptToJavaScript.sublime-build
{
"cmd": ["coffee","-b","-c", "$file"],
"selector" : "source.coffee"
}

when use coffee command , it will generate js in the same directory , but I want to custom the generated directory , for example:

for many src file , its' path like

project/src/a/b/c/d/e/a.coffee
project/src/a/b/c/d/e/b.coffee
project/src/a/b/c/d/e/c.coffee
project/src/a/b/c/d/d.coffee

I want to parse the path to another path(just remove 'src' )

project/a/b/c/d/e/a.js
project/a/b/c/d/e/b.js
project/a/b/c/d/e/c.js
project/a/b/c/d/d.js

so what should I do?
edwin
 
Posts: 1
Joined: Sat Jun 08, 2013 5:08 am

Re: question about relative path [sublime-build]

Postby lavrton on Sat Jun 08, 2013 11:55 am

https://github.com/aponxi/sublime-bette ... t-19147198

Code: Select all
"compileDir" : "project/",
"relativeDir": "project/src"
lavrton
 
Posts: 4
Joined: Wed Jan 30, 2013 10:18 am


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], xeno and 31 guests