0.1.7 • Published 10 years ago

mimosa-rename v0.1.7

Weekly downloads
1
License
Apache2
Repository
github
Last release
10 years ago

mimosa-rename

This Mimosa module will rename files before they are written.

For more information regarding Mimosa, see http://mimosa.io

Usage

Add 'rename' to your list of modules.

Default Config

rename: {
  map: []
}

map array of arrays

Each mapping array contains two elements: a regex to match a file name, and the regex replace string/function. The regex is matched against the output name of the file relative to the root of the project.

Example Config

rename: {
  map: [
    [/public\/javascripts\/foo.js/, "public/javascripts/bar.js"],
    [/public\/svgs\/([A-Za-z0-9-_]+).svg/, "public/images/svgs/$1.svg"]
  ]
}
  • The first entry in the map above does a simple full name replace.
  • The second entry moves all your svgs/*.svg to the images/svgs directory.
0.1.7

10 years ago

0.1.6

11 years ago

0.1.5

11 years ago

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago