title: How to use a glob pattern in the scripts section of angular.json?
body: <p>I have a hybrid AngularJS/Angular application that will take some time to complete migration to fully be an Angular app. While this process occurs, I'd like to move away from the previous build system to using the CLI and webpack to manage all of the old AngularJS scripts as well. This is possible as I've done it before by adding all of my scripts to the <code>scripts</code> section in <code>angular.json</code> like the following:</p>
  
  <pre><code>"scripts": [              
    "src/app/angularjs/app.js",
    "src/app/angularjs/controllers/main.js",
    "src/app/angularjs/services/someService.js",
    "src/app/angularjs/controllers/someController.js"           
  ],
  </code></pre>
  
  <p>This works well and the CLI builds via <code>ng serve</code> and <code>ng build</code> continue to work for the hybrid bootstrapped app as needed. The problem I'm running into now is manually listing each file for the current application I'm migrating is not ideal. I have hundreds of scripts that need to be added, and what I need is to be able to use a globbing pattern like the following:</p>
  
  <pre><code>"scripts": [              
    "src/app/angularjs/**/*.js"
  ],
  </code></pre>
  
  <p>The problem is this syntax from what I can tell is not supported. The glob pattern <em>is</em> supported in the <code>assets</code> section of <code>angular.json</code> as stated here but not in the <code>scripts</code> section: <a href="https://angular.io/guide/workspace-config#assets-configuration" rel="noreferrer">https://angular.io/guide/workspace-config#assets-configuration</a></p>
  
  <p>In the <code>scripts</code> section I can't find a similar solution. It does have an expanded object API, but nothing that solves the problem I can tell to select <em>all</em> <code>.js</code> files from a particular directory as listed here: <a href="https://angular.io/guide/workspace-config#styles-and-scripts-configuration" rel="noreferrer">https://angular.io/guide/workspace-config#styles-and-scripts-configuration</a></p>
  
  <p>Is it possible by some means to use a glob pattern or similar approach to select all files of a directory for the <code>scripts</code> section in <code>angular.json</code> so I don't have to manually list out hundreds of individual <code>.js</code> files?</p>