lib/generators/jekyll/blog/templates/tasks/gen.rake.tt in bloggy-0.2.2 vs lib/generators/jekyll/blog/templates/tasks/gen.rake.tt in bloggy-0.3
- old
+ new
@@ -1,6 +1,12 @@
-desc 'Run Jekyll in config/jekyll directory without having to cd there'''
+desc 'Run Jekyll in config/jekyll directory without having to cd there'
task :generate do
Dir.chdir("config/jekyll") do
- system('jekyll')
+ system('bundle exec jekyll build')
end
-end
\ No newline at end of file
+end
+desc 'Run Jekyll in config/jekyll directory with --watch'
+task :autogenerate do
+ Dir.chdir("config/jekyll") do
+ system('bundle exec jekyll build --watch')
+ end
+end