An ember blueprint has a static property called renamedFiles that by default renames gitignore from the files folder to .gitignore in the target folder.
The question is, how can I extend this list?
So far I tried these in the index.js of my blueprint, but they don't seem to work:
module.exports = {
renamedFiles: {
'something': 'somethingElse'
},
beforeInstall: function() {
this._super.renamedFiles = {
'something': 'somethingElse',
};
}
};
renamedFilesis a static property. You can access it viathis.constructor.renamedFilesinbeforeInstallhook. You can also modify it. Since this is a static propery, the modification may have some side-effects.The correct way to modify the file name is to use
fileMapTokenshook. You don't need to manipulaterenamedFiles.Here is a code sample: