billymoon / Stylus

Stylus Package for Sublime Text 2 / 3
Other
129 stars 31 forks source link

Add compile on Save and improve settings #18

Closed gbouthenot closed 10 years ago

gbouthenot commented 11 years ago

Would it be possible to add a Compile on Save feature ? Also it would be nice to be able to have per-project settings, the same type of settings as Better Coffeescript (https://github.com/aponxi/sublime-better-coffeescript)

For instance: File project.sublime-project:

{
    "folders":
    [
        {
            "follow_symlinks": true,
            "path": "/home/pathtoproject"
        }
    ],
    "settings":
    {
        "CoffeeScript":
        {
            "noWrapper": true,
            "compileOnSave": true,
            "compileDir": "output/"
        },
        "Stylus":
        {
            "compileOnSave": true,
            "compress": false,
            "compileDir": "output/"
        }
    }
}
greduan commented 11 years ago

@billymoon :+1:

samuelmesq commented 11 years ago

It would be a bit more complicated to use settings, has a small script in python, I will search and try to implement.