use fullname for new bin, add bash cmds for old names
This commit is contained in:
parent
2634c4156f
commit
fcf9764512
|
@ -1,5 +1,4 @@
|
|||
#!/usr/bin/env ruby
|
||||
|
||||
require "rubygems"
|
||||
|
||||
libdir = File.join(File.dirname(File.dirname(__FILE__)), "lib")
|
2
bin/mm-build
Executable file
2
bin/mm-build
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
/usr/bin/env middleman build $@
|
2
bin/mm-init
Executable file
2
bin/mm-init
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
/usr/bin/env middleman init $@
|
2
bin/mm-server
Executable file
2
bin/mm-server
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
/usr/bin/env middleman server $@
|
|
@ -3,13 +3,13 @@ require 'middleman/cli'
|
|||
|
||||
Given /^a built test app$/ do
|
||||
target = File.join(File.dirname(File.dirname(File.dirname(__FILE__))), "fixtures", "test-app")
|
||||
build_cmd = File.expand_path(File.join(File.dirname(File.dirname(File.dirname(__FILE__))), "bin", "mm build"))
|
||||
build_cmd = File.expand_path(File.join(File.dirname(File.dirname(File.dirname(__FILE__))), "bin", "middleman build"))
|
||||
`cd #{target} && #{build_cmd}`
|
||||
end
|
||||
|
||||
Given /^a built test app with flags "([^"]*)"$/ do |flags|
|
||||
target = File.join(File.dirname(File.dirname(File.dirname(__FILE__))), "fixtures", "test-app")
|
||||
build_cmd = File.expand_path(File.join(File.dirname(File.dirname(File.dirname(__FILE__))), "bin", "mm build"))
|
||||
build_cmd = File.expand_path(File.join(File.dirname(File.dirname(File.dirname(__FILE__))), "bin", "middleman build"))
|
||||
`cd #{target} && #{build_cmd} #{flags}`
|
||||
end
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ require 'fileutils'
|
|||
|
||||
Given /^generated directory at "([^\"]*)"$/ do |dirname|
|
||||
target = File.join(File.dirname(File.dirname(File.dirname(__FILE__))), "fixtures", dirname)
|
||||
init_cmd = File.expand_path(File.join(File.dirname(File.dirname(File.dirname(__FILE__))), "bin", "mm init"))
|
||||
init_cmd = File.expand_path(File.join(File.dirname(File.dirname(File.dirname(__FILE__))), "bin", "middleman init"))
|
||||
`cd #{File.dirname(target)} && #{init_cmd} #{File.basename(target)}`
|
||||
end
|
||||
|
||||
|
|
|
@ -9,9 +9,9 @@
|
|||
# To accomplish its goals, Middleman supports provides access to:
|
||||
#
|
||||
#### Command-line tool:
|
||||
# * **mm init**: A tool for creating to new static sites.
|
||||
# * **mm server**: A tool for rapidly developing your static site.
|
||||
# * **mm build**: A tool for exporting your site into optimized HTML, CSS & JS.
|
||||
# * **middleman init**: A tool for creating to new static sites.
|
||||
# * **middleman server**: A tool for rapidly developing your static site.
|
||||
# * **middleman build**: A tool for exporting your site into optimized HTML, CSS & JS.
|
||||
#
|
||||
#### Tons of templating languages including:
|
||||
# * ERB (.erb)
|
||||
|
|
Loading…
Reference in a new issue