Sublime: remove Grunt build, update Hayaku settings, add Emmet bem filter.

This commit is contained in:
Artem Sapegin 2012-11-27 18:29:11 +04:00
parent b3c10d50d5
commit d1dd6df0c5
8 changed files with 19 additions and 39 deletions

View File

@ -1,6 +1,4 @@
[ [
{ "keys": ["ctrl+d"], "command": "duplicate_line" }, { "keys": ["ctrl+d"], "command": "duplicate_line" },
{ "keys": ["ctrl+y"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} }, { "keys": ["ctrl+y"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} }
{ "keys": ["ctrl+alt+g"], "command": "run_build", "args": {"build_system": "Packages/User/GruntWatch.sublime-build"} },
{ "keys": ["ctrl+`"], "command": "show_panel", "args": {"panel": "output.exec"} }
] ]

View File

@ -0,0 +1,3 @@
{
"extensions_path": "../User/emmet"
}

View File

@ -1,5 +0,0 @@
{
"cmd": ["$packages/User/grunt-watch.sh"],
"file_regex": "^>> Stylus: .*?: (.*?):([0-9]*)",
"shell": true
}

View File

@ -12,7 +12,11 @@
"font_size": 14, "font_size": 14,
"hayaku_CSS_colors_case": "lowercase", "hayaku_CSS_colors_case": "lowercase",
"hayaku_CSS_numbers_leading_zero": false, "hayaku_CSS_numbers_leading_zero": false,
"hayaku_CSS_whitespace_after_colon": "", "hayaku_CSS_syntax_autoguess": [
" selector { ",
" property:value; ",
" } "
],
"highlight_line": true, "highlight_line": true,
"ignored_packages": "ignored_packages":
[ [

View File

@ -1,11 +0,0 @@
# Runs build system specified in `build_system` argument
# Based on http://www.bit-101.com/blog/?p=3439
import sublime_plugin
class RunBuildCommand(sublime_plugin.WindowCommand):
def run(self, build_system):
self.window.run_command("set_build_system", {"file": build_system})
self.window.run_command("build")
self.window.run_command("set_build_system") # Automatic

View File

@ -1,8 +1,11 @@
{ {
"disable_tab_abbreviations": true, "disable_tab_abbreviations": true,
// Whitespaces "hayaku_CSS_syntax_autoguess": [
"hayaku_CSS_whitespace_block_end_before": "\n", " selector { ",
" property:value; ",
" } "
],
// Syntax quirks // Syntax quirks
"hayaku_CSS_syntax_no_curly_braces": false, // Don't print braces for code blocks "hayaku_CSS_syntax_no_curly_braces": false, // Don't print braces for code blocks

View File

@ -0,0 +1,5 @@
{
"html": {
"filters": "html, bem"
}
}

View File

@ -1,17 +0,0 @@
# Finds directory with `grunt.js` and runs `grunt watch`
cd_to_project_root() {
dir=`pwd`
while [ "$dir" != "/" ]; do
if [ -f "$dir/grunt.js" ]; then
cd "$dir"
break
fi
dir=`dirname "$dir"`
done
}
cd_to_project_root
grunt deploy --no-color --debug
grunt watch --no-color --debug