Skip to content

Instantly share code, notes, and snippets.

@ka2n
Created June 3, 2012 14:14
Show Gist options
  • Save ka2n/2863673 to your computer and use it in GitHub Desktop.
Save ka2n/2863673 to your computer and use it in GitHub Desktop.
guardで監視してJSXをコンパイルしてlivereload
# 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