title: Composer: Including a custom js script via composer (then load via require.js)?
body: <p>I've been tackling this for hours...</p>
  
  <p>When it comes to components, composer creates <code>require.js</code> and <code>require.css</code> files. I want to include my own script, so it can be loaded via the same <code>require.js</code>. </p>
  
  <p>Right now, even though it detects <code>core.js</code> and puts it in <code>/core/libs</code> folder:</p>
  
  <p><code>libs\WootWoot\core\js\core.js</code> </p>
  
  <p>It doesn't load via the <code>require.js</code> :(</p>
  
  <p>What am I doing wrong? This is my composer.json file:</p>
  
  <pre><code>{
      "name": "WootWoot",
      "config": {
          "component-dir": "public_html/core/libs",
          "component-baseurl": "/core/libs"
      },
      "require": {
          "robloach/component-installer": "^0.2.3",
          "components/jquery": "^3.3",
      },
      "extra": {
          "component": {
              "script": [
                  "/core/js/core.js"
               ] 
          }
      }
  }
  </code></pre>