Zenwolf / broccoli-FileRenamer

A Broccoli plugin to rename files based on a digest JSON mapping.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Summary

This is a Broccoli plugin that renames files based on a digest JSON file.

Config Example

{
  digestPath: "digest.json"
}

Usage Example

var fileRenamer = require('broccoli-FileRenamer');

//...

var renamedFileTree = fileRenamer(anotherFileTree, {
    digestPath: 'digest.json'
});

Example Digest JSON

{
  "src/Foo.js": "src/Foo-e2246d0f58599ee36fd42d7676594171.js"
}

Using the above digest JSON mapping, the src/Foo.js file will be renamed to src/Foo-e2246d0f58599ee36fd42d7676594171.js.

About

A Broccoli plugin to rename files based on a digest JSON mapping.

License:Other


Languages

Language:JavaScript 100.0%