Sha256: 4086d6158a1cc3aa4342714f1b4a9d96b73c741047bec76b6cc43987d2d1feb6

Contents?: true

Size: 1.56 KB

Versions: 2

Compression:

Stored size: 1.56 KB

Contents

# middleman-remover

[![Gem Version](https://badge.fury.io/rb/middleman-remover.svg)](http://badge.fury.io/rb/middleman-remover)
[![Build Status](https://travis-ci.org/yterajima/middleman-remover.svg?branch=master)](https://travis-ci.org/yterajima/middleman-remover)

`middleman-remover` is an extension of [Middleman](http://middlemanapp.com/).  
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:

```ruby
gem 'middleman-remover'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install middleman-remover

## Usage

Basic usage:

```ruby
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:

```ruby
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:

```ruby
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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
middleman-remover-1.0.1 README.md
middleman-remover-1.0.0 README.md