middleman/bin/mm-build

10 lines
265 B
Plaintext
Raw Normal View History

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