Skip to content

Commit

Permalink
Guard compiles assets on filechange
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkirk committed Jul 1, 2012
1 parent de41433 commit 40578b7
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 7 deletions.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ source :rubygems

gem 'jekyll'
gem 'RedCloth'

gem 'guard-jekyll'
18 changes: 18 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ GEM
fast-stemmer (>= 1.0.0)
directory_watcher (1.4.1)
fast-stemmer (1.0.1)
ffi (1.0.11)
guard (1.2.1)
listen (>= 0.4.2)
thor (>= 0.14.6)
guard-jekyll (0.0.2)
guard (>= 0.2.2)
jekyll
jekyll (0.11.2)
albino (~> 1.3)
classifier (~> 1.3)
Expand All @@ -17,14 +24,25 @@ GEM
maruku (~> 0.5)
kramdown (0.13.7)
liquid (2.3.0)
listen (0.4.7)
rb-fchange (~> 0.0.5)
rb-fsevent (~> 0.9.1)
rb-inotify (~> 0.8.8)
maruku (0.6.0)
syntax (>= 1.0.0)
posix-spawn (0.3.6)
rb-fchange (0.0.5)
ffi
rb-fsevent (0.9.1)
rb-inotify (0.8.8)
ffi (>= 0.5.0)
syntax (1.0.0)
thor (0.15.4)

PLATFORMS
ruby

DEPENDENCIES
RedCloth
guard-jekyll
jekyll
6 changes: 6 additions & 0 deletions Guardfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# A sample Guardfile
# More info at https://github.com/guard/guard#readme

guard 'jekyll' do
watch(/.*/)
end
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,22 @@ Installation
# run local webserver
bundle exec jekyll --server

You have to recompile assets and restart the server as you make changes.

bundle exec jekyll && bundle exec jekyll --server

Deployment
==========

Anytime you push to master, Github will compile and deploy
your assets to http://jackpine.github.com

TODO
====

set up watch file to recompile assets and restart server whenever any
files change.
Development
===========
You have to recompile assets and restart the server as you make changes.

You can do this manually

bundle exec jekyll && bundle exec jekyll --server

Or - you can use guard to recompile assets whenever any files change.

bundle exec guard

0 comments on commit 40578b7

Please sign in to comment.