bin/jekyll-auth in jekyll-auth-0.1.0 vs bin/jekyll-auth in jekyll-auth-0.1.1
- old
+ new
@@ -21,11 +21,11 @@
c.action do |args, options|
source = File.expand_path( "../", File.dirname(__FILE__) )
destination = Dir.pwd
say "Initaiting new Jekyll Auth site in #{destination}"
- ["Rakefile", "config.ru"].each do |file|
+ ["Rakefile", "config.ru", ".gitignore"].each do |file|
if File.exist? "#{destination}/#{file}"
say "* #{destination}/#{file} already exists... skipping."
else
say "* creating #{destination}/#{file}"
FileUtils.cp "#{source}/#{file}", "#{destination}/#{file}"
@@ -120,15 +120,18 @@
sh "bundle exec rackup -p 4000"
end
end
+# Run the standard jekyll build command
+# Called by Rake task, to allow the gem
+# to add functionality here in the future
command :build do |c|
c.syntax = 'jekyll-auth build'
c.description = "Build Jekyll site"
c.action do |args, options|
say "building the site..."
- sh "bundle exec rake assets:precompile"
+ sh "bundle exec jekyll build"
say "site built."
end
end
default_command :serve