最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

nrwl nx - How can we specify folder structure when generating a library in NX? - Stack Overflow

programmeradmin2浏览0评论

Whenever I generate a new library, I wind up having to manually migrate things up a few folders to get them where I want them to be. I generate my libraries into different folders within libs to keep them anized so I have an apps folder, ui folder types folder, etc. Ideally I would like my new libraries to generate as

libs => apps => myNewApp => index.ts, project.json, package.json and everything else.

But instead it goes

libs => apps => myNewApp => src => lib => myNewApp => all my files.

.... at least as far as I can recall because I've so far migrated everything back up to the top level. But how can I control that to make it generate them as in the first example?

发布评论

评论列表(0)

  1. 暂无评论