Skip to content

Instantly share code, notes, and snippets.

@akahigeg
Created June 20, 2013 08:11
Show Gist options
  • Save akahigeg/5821053 to your computer and use it in GitHub Desktop.
Save akahigeg/5821053 to your computer and use it in GitHub Desktop.
for Nanoc with Pow
# -*- coding: utf-8 -*-
Encoding.default_external = 'UTF-8'
require 'rubygems'
require 'bundler'
Bundler.setup
require 'rack'
require 'adsf'
app = Rack::Builder.new do
use Rack::CommonLogger
use Rack::ShowExceptions
use Rack::Head
use Adsf::Rack::IndexFileFinder, :root => 'output'
run Rack::File.new('output')
end.to_app
run app
source 'http://rubygems.org'
gem 'bundler'
gem 'rack'
gem 'rack-rewrite'
gem 'mime-types'
gem 'nanoc', '3.4'
gem 'adsf'
gem 'haml'
gem 'sass'
gem 'less'
gem 'redcarpet'
gem 'coderay'
gem 'nokogiri'
gem 'builder'
gem 'i18n'
gem 'rake'
gem 'fssm'
group :development, :test do
gem 'pry'
gem 'guard'
gem 'guard-bundler'
gem 'guard-livereload'
gem 'guard-pow'
gem 'guard-nanoc'
gem 'rb-fsevent'
gem 'rb-readline'
gem 'growl'
end
guard 'bundler' do
watch('Gemfile')
end
guard 'nanoc' do
watch(/^config.yaml/)
watch(/^Rules/)
watch(/^layouts\//)
watch(/^content\//)
end
guard 'livereload' do
watch(%r{output/.+\.(css|js|html)})
end
notification :off
guard 'pow' do
watch('.powrc')
watch('.powenv')
watch('.rvmrc')
watch('Gemfile')
watch('Gemfile.lock')
watch('config/application.rb')
watch('config/environment.rb')
watch(%r{^config/environments/.*\.rb$})
watch(%r{^config/initializers/.*\.rb$})
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment