Skip to content

Instantly share code, notes, and snippets.

@cesarhdz
Created July 20, 2013 19:26
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 cesarhdz/6046153 to your computer and use it in GitHub Desktop.
Save cesarhdz/6046153 to your computer and use it in GitHub Desktop.
Archivo para desarrollar sitios estáticos, permite utilizar la extension livereload, incicia un servidor y compila Compass
# GuardFile
#
# Versiones requeridas para que corra apropiadamente
# guard (1.8.1)
# guard-compass (0.0.8)
# guard-livereload (1.4.0)
# guard-webrick (0.1.4)
guard 'livereload' do
watch(%r{assets/.+\.(css|js|html)})
watch(%r{.+\.(css|js|html)})
end
# Guard::Compass
#
# You don't need to configure watchers for guard 'compass' declaration as they generated
# from your Compass configuration file. You might need to define the Compass working directory
# and point to the configuration file depending of your project structure.
#
# Available options:
#
# * :workging_directory => Define the Compass working directory, relative to the Guardfile directory
# * :configuration_file => Path to the Compass configuration file, relative to :project_path
#
# Like usual, the Compass configuration path are relative to the :project_path
# guard 'compass', :project_path => 'not_current_dir', :configuration_file => 'path/to/my/compass_config.rb'
guard :compass, :project_path => 'assets', :configuration_file => 'assets/config.rb'
## Ageragmos webrick, para tener el servidor
guard 'webrick', :port => '1234', :host => 'localhost', :launchy => false do
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment