Sublime: remove Grunt build, update Hayaku settings, add Emmet bem filter.
This commit is contained in:
		@@ -1,6 +1,4 @@
 | 
			
		||||
[
 | 
			
		||||
	{ "keys": ["ctrl+d"], "command": "duplicate_line" },
 | 
			
		||||
	{ "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"} }
 | 
			
		||||
	{ "keys": ["ctrl+y"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} }
 | 
			
		||||
]
 | 
			
		||||
							
								
								
									
										3
									
								
								sublime/User/Emmet.sublime-settings
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								sublime/User/Emmet.sublime-settings
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
{
 | 
			
		||||
	"extensions_path": "../User/emmet"
 | 
			
		||||
}
 | 
			
		||||
@@ -1,5 +0,0 @@
 | 
			
		||||
{
 | 
			
		||||
	"cmd": ["$packages/User/grunt-watch.sh"],
 | 
			
		||||
	"file_regex": "^>> Stylus: .*?: (.*?):([0-9]*)",
 | 
			
		||||
	"shell": true
 | 
			
		||||
}
 | 
			
		||||
@@ -12,7 +12,11 @@
 | 
			
		||||
	"font_size": 14,
 | 
			
		||||
	"hayaku_CSS_colors_case": "lowercase",
 | 
			
		||||
	"hayaku_CSS_numbers_leading_zero": false,
 | 
			
		||||
	"hayaku_CSS_whitespace_after_colon": "",
 | 
			
		||||
	"hayaku_CSS_syntax_autoguess": [
 | 
			
		||||
		"    selector {              ",
 | 
			
		||||
		"        property:value;     ",
 | 
			
		||||
		"        }                   "
 | 
			
		||||
	],
 | 
			
		||||
	"highlight_line": true,
 | 
			
		||||
	"ignored_packages":
 | 
			
		||||
	[
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
@@ -1,8 +1,11 @@
 | 
			
		||||
{
 | 
			
		||||
	"disable_tab_abbreviations": true,
 | 
			
		||||
 | 
			
		||||
	// Whitespaces
 | 
			
		||||
	"hayaku_CSS_whitespace_block_end_before": "\n",
 | 
			
		||||
	"hayaku_CSS_syntax_autoguess": [
 | 
			
		||||
		"    selector {              ",
 | 
			
		||||
		"        property:value;     ",
 | 
			
		||||
		"    }                       "
 | 
			
		||||
	],
 | 
			
		||||
 | 
			
		||||
	// Syntax quirks
 | 
			
		||||
	"hayaku_CSS_syntax_no_curly_braces": false,  // Don't print braces for code blocks
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										5
									
								
								sublime/User/emmet/snippets.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								sublime/User/emmet/snippets.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
{
 | 
			
		||||
	"html": {
 | 
			
		||||
		"filters": "html, bem"
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
@@ -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
 | 
			
		||||
		Reference in New Issue
	
	Block a user