【发布时间】:2014-05-20 14:09:33
【问题描述】:
【问题讨论】:
标签: node.js yeoman yeoman-generator
【问题讨论】:
标签: node.js yeoman yeoman-generator
你试过做这样的事情吗?
显示消息时记得使用this.log,如何使用优先级在documentation中
module.exports = yeoman.generators.Base.extend({
initializing: function() {
this.fs.copy(
this.templatePath('blah.js'),
this.destinationPath('blah.js')
);
},
end: function() {
this.log("All Done!");
},
});
【讨论】: