title: NX Is possible to customize the new app folder structure?
body: <p>I received a task to see how to customize the folder structure for new apps, more precisely, nest apps. I'd a search and found that is possible to create a lib folder under the tools folder, and following patterns, I could populate a pre-created structure of files using <strong><code>generateFiles</code></strong> from <strong><code>@nrwl/devkit</code></strong>. The example below shows a simple structure that is used with a lib, where will change the variable names and populate the files with &quot;__ __&quot; in the name:</p>
  <pre><code>my-lib/
  ├── files/
     ├── mysql/
     |    ├── __originalName__.mwb
     |    └── schema.json
  ├── src/
      ├── index.ts__tmpl__
      └── models.ts__tmpl__
  </code></pre>
  <p>Well, first of all, I would like to know if it is possible to change a new app structure while still on memory and only after that, write on the disk.</p>
  <p>So using Nest as an example, a new nest app will look like this:</p>
  <pre><code>├── src/
     ├── app.controller.spec.ts
     ├── app.controller.ts
     ├── app.module.ts
     ├── app.service.ts
     ├── main.ts
  </code></pre>
  <p>But, let's imagine, I need to change the <code>app.controller.ts</code> and <code>app.controller.spec.ts</code> to a new folder and create a few other files <strong>to every new nest app</strong>. I don't have experience with nest yet.</p>
  <pre><code>├── src/
     ├── controllers/
        ├── app.controller.ts
        ├── app.controller.spec.ts
        ├── new.controller.ts
        ├── new.controller.spec.ts
     ├── app.module.ts
     ├── app.service.ts
     ├── main.ts
  </code></pre>
  <p><strong>If yes for the first question, how can I achieve that?</strong> Right now I'm trying to work with generators. I run <code>npx nx generate @nrwl/workspace:workspace-generator app-nest</code> which gives me a start point, but I have no idea how can I change the files.</p>
  <p>My reference: <a href="https://nx.dev/latest/angular/generators/workspace-generators/" rel="nofollow noreferrer">https://nx.dev/latest/angular/generators/workspace-generators/</a></p>