Repository is archived
No commit activity in last 3 years
No release in over 3 years
Remove some files fron build dir
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0.6
>= 1.5
>= 1.3
>= 10

Runtime

>= 3.3
 Project Readme

middleman-remover

Gem Version Build Status

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.

NOTICE: From v4.beta, Middleman remove build/dir if that is empty.

Also you can remove directory:

configure :build do
  activate :remover, :paths => %w(/dir)
end

middleman-remover will remove build/dir/ directory.

Contributing

  1. Fork it ( https://github.com/yterajima/middleman-remover/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request