grunt-bower-task icon indicating copy to clipboard operation
grunt-bower-task copied to clipboard

Rename files during copy

Open butchewing opened this issue 10 years ago • 3 comments

It would be great if files could be renamed when grunt-bower-task is copying them to their new destination. Example:

{
  "name" : "test",
  "version": "0.1",
  "dependencies" : {
    "jquery-ui" : "latest"
  },
  "install" : {
    "path" : "some/path",
    "sources" : {
      "jquery-ui" : {
        "mapping": [
          {"bower_components/jquery-ui/ui/jquery-ui.js": "jquery-ui.js"},
          {"bower_components/jquery-ui/ui/minified/jquery-ui.min.js": "jquery-ui-min-new-name.js"}
        ]
      }
    }
  }
}

As found in: https://github.com/blittle/bower-installer#rename-files-during-copy

butchewing avatar Aug 05 '14 16:08 butchewing

+1

Kienz avatar Aug 08 '14 09:08 Kienz

+1

chrisl8888 avatar Aug 24 '14 17:08 chrisl8888

+1

stavinsky avatar Jan 23 '16 23:01 stavinsky