middleman-remover
middleman-remover is an extension of Middleman.
This extension works when $ middleman build and provides Delete function of files or Directories in build directory.
Installation
Add this line to your application's Gemfile:
gem 'middleman-remover'
And then execute:
$ bundle
Or install it yourself as:
$ gem install middleman-remover
Usage
Basic usage:
configure :build do
activate :remover, :paths => %w(empty)
end
middleman-remover will remove build/empty.
By specifying :paths option, you can remove files and directories from build directory.
You can also specify the path using the wild card:
configure :build do
activate :remover, :paths => %w(dir/*.html .DS_Store)
end
middleman-remover will remove build/dir/*.html and build/.DS_Store.
Also you can remove directory:
configure :build do
activate :remover, :paths => %w(/dir)
end
middleman-remover will remove build/dir/ directory.
Contributing
- Fork it ( https://github.com/yterajima/middleman-remover/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request