【发布时间】:2016-03-23 06:48:03
【问题描述】:
如何将placeholder 中的Yeoman 用于js 文件?我尝试添加它
writing: function () {
this.fs.copy(
this.templatePath('portanova_template'),
this.destinationPath(this.projectName)
);
if(this.answer) {
this.fs.copy(
this.templatePath('externalTemplate'),
this.destinationPath(this.projectName+'/app'),
{
title: this.projectName
}
);
}
},
并且在刚刚添加的js文件中
"<%= title %>"
任何需要的地方。但这似乎不起作用.. 有什么想法吗?
【问题讨论】:
标签: yeoman yeoman-generator yeoman-generator-angular