Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有可能在同步模式下在 yo 生成器中使用 this.copy?只有在复制了来自父生成器的所有文件之后,我才需要调用我的子生成器。
您可以使用
this.fs.commit(function(){});
将内存中的文件写入磁盘。