Created
June 3, 2012 14:14
-
-
Save ka2n/2863673 to your computer and use it in GitHub Desktop.
guardで監視してJSXをコンパイルしてlivereload
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Guardfile | |
# livereload and compile .jsx | |
guard :shell do | |
watch(/(.+)\.jsx/) {|m| `./node_modules/jsx/bin/jsx --output #{m[1]}.js #{m[0]}` } | |
end | |
guard 'livereload' do | |
watch(/.jsx/) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment