Skip to content

Instantly share code, notes, and snippets.

@hinaloe
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hinaloe/3c8dd9962ac9b8676084 to your computer and use it in GitHub Desktop.
Save hinaloe/3c8dd9962ac9b8676084 to your computer and use it in GitHub Desktop.
SublimeTextでなんでもかんでもコンパイルする ref: http://qiita.com/kimama1997/items/93404a6a8b8037b46084
{
"cmd": ["coffee", "-cm", "$file"],
"selector": "source.coffee",
"osx":
{
"path": "/usr/local/bin:$PATH"
},
"windows":
{
"cmd": ["coffee.cmd", "-cm", "$file"]
}
}
{
"cmd": ["lessc", "$file", "${file_path}/${file_base_name}.css", "--verbose"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.css.less",
"osx":
{
"path": "/usr/local/bin:$PATH"
},
"windows":
{
"cmd": ["lessc.cmd", "$file", "${file_base_name}.css","--verbose"]
},
"variants": [
{
"name": "Minify",
"cmd": ["lessc", "$file", "${file_path}/${file_base_name}.min.css", "-x", "--verbose","--source-map"],
"osx":
{
"path": "/usr/local/bin:$PATH"
},
"windows":
{
"cmd": ["lessc.cmd", "$file", "${file_base_name}.min.css", "-x" , "--verbose","--source-map"]
}
}
]
}
{
"cmd": ["sass", "--update", "$file:${file_path}/${file_base_name}.css", "--stop-on-error", "--no-cache", "--sourcemap"],
"selector": "source.sass, source.scss",
"line_regex": "Line ([0-9]+):",
"osx":
{
"path": "/usr/local/bin:$PATH"
},
"windows":
{
"shell": "true"
},
"variants":[
{
"name": "Minify",
"cmd": ["sass", "--update", "$file:${file_path}/${file_base_name}.min.css", "--stop-on-error", "--no-cache", "--sourcemap","--style", "compressed"],
"selector": "source.sass, source.scss",
"line_regex": "Line ([0-9]+):",
"osx":
{
"path": "/usr/local/bin:$PATH"
},
"windows":
{
"shell": "true"
}
}
]
}
{
"cmd": ["tsc", "--noImplicitAny", "--sourcemap", "$file"],
"selector": "source.ts",
"osx":
{
"path": "/usr/local/bin:$PATH"
},
"windows":
{
"cmd": ["tsc.cmd", "--noImplicitAny", "--sourcemap", "$file"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment