middleman/bin/mm-build

12 lines
292 B
Text
Raw Normal View History

2009-07-27 16:25:32 -07:00
#!/usr/bin/env ruby
2009-09-29 10:10:47 -07:00
ENV['MM_ENV'] = "build"
2009-09-28 19:43:08 -07:00
# Require app
2009-09-29 10:10:47 -07:00
require File.join(File.dirname(__FILE__), "..", "lib", "middleman")
require 'middleman/builder'
2009-10-15 16:31:05 -07:00
#Middleman::Base.init!
Middleman::Builder.init!
2009-09-29 10:10:47 -07:00
2009-10-08 10:49:23 -07:00
Middleman::Generators.run_cli(Dir.pwd, 'mm-build', 1, %w(build --force).concat(ARGV))