blueprints/blueprint/files/blueprints/__name__/index.js
const path = require('path')
module.exports = {
locals: function (options) {
// Return custom template variables here.
return {}
},
fileMapTokens: function (options) {
// Return custom tokens to be replaced in your files
return {
__token__: function (options) {
// logic to determine value goes here
return 'value'
}
}
},
// Should probably never need to be overriden
filesPath: function () {
return path.join(this.path, 'files')
},
beforeInstall: function (options) {},
afterInstall: function (options) {}
}