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.
我使用Yeoman构建Ember应用程序。
我想复制一个应用程序(更改目录和应用程序名称(这意味着更改所有 Ember 视图、控制器等中的名称)。
目前我正在手动完成所有操作,有没有更好的方法呢?
There is no built-in tool in Yeoman, but if your app name is unique, you can just replace it in all your files by running something like this:
git ls-files | egrep '\.(js|html)$' | xargs sed -i s/OldAppName/NewAppName/g