Rename fp mapping rename to remap.

This commit is contained in:
John-David Dalton
2016-02-14 23:47:03 -08:00
parent aae02af265
commit c163659713
5 changed files with 6 additions and 6 deletions

View File

@@ -59,7 +59,7 @@ function isThru(funcName) {
function getTemplate(moduleName) {
var data = {
'name': _.result(mapping.aliasToReal, moduleName, moduleName),
'rename': mapping.rename
'mapping': mapping
};
if (isAlias(moduleName)) {
@@ -98,7 +98,7 @@ function build(target) {
});
// Add FP alias and remapped module paths.
_.each([mapping.aliasToReal, mapping.rename], function(data) {
_.each([mapping.aliasToReal, mapping.remap], function(data) {
_.forOwn(data, function(realName, alias) {
if (!_.startsWith(alias, '_')) {
modulePaths.push(path.join(target, alias + '.js'));

View File

@@ -1,2 +1,2 @@
var convert = require('./convert');
module.exports = convert('<%= name %>', require('../<%= _.result(rename, name, name) %>'));
module.exports = convert('<%= name %>', require('../<%= _.result(mapping.remap, name, name) %>'));