title: composer set a git repository as type component
body: <p>I'm trying to install some external JS libraries located in Github in a SF2 project with composer.json.</p>
  
  <p>composer.json:</p>
  
  <pre><code>{
  "name": "myproject",
  "license": "my project",
  "type": "project",
  "description": "my project",
  "autoload": {
      "psr-0": { "": "src/" }
  },
  "repositories": {
      "medium-editor" : {
          "type": "package",
          "package": {
              "name": "daviferreira/medium-editor",
              "type": "component",
              "version": "master",
              "source": {
                  "url": "git://github.com/daviferreira/medium-editor.git",
                  "type": "git",
                  "reference": "master"
              },
              "extra": {
                  "component": {
                      "scripts": [
                          "dist/js/medium-editor.min.js"
                      ],
                      "styles": [
                          "dist/css/medium-editor.min.css",
                          "dist/css/themes/*.min.css"
                      ]
                  }
              },
              "require": {
                  "robloach/component-installer": "*"
              }
          }
      },
      "classList" : {
          "type": "package",
          "package": {
              "name": "eligrey/classList.js",
              "type": "component",
              "version": "master",
              "source": {
                  "url": "git://github.com/eligrey/classList.js.git",
                  "type": "git",
                  "reference": "master"
              },
              "extra": {
                  "component": {
                      "scripts": [
                          "classList.min.js"
                      ]
                  }
              },
              "require": {
                  "robloach/component-installer": "*"
              }
          }
      }
  },
  "require": {
      ...
  
      "daviferreira/medium-editor" : "dev-master",
      "eligrey/classList.js" : "dev-master"
  },
  "require-dev": {
      "phpunit/phpunit": "3.7.*"
  },    
  "scripts": {
      "post-install-cmd": [
          "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
          "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
          "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
          "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
          "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
      ],
      "post-update-cmd": [
          "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
          "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
          "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
          "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
          "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
      ]
  },
  "config": {
      "bin-dir": "bin",
      "component-dir": "web/components"
  },
  "minimum-stability": "stable",
  "extra": {
      "symfony-app-dir": "app",
      "symfony-web-dir": "web",
      "symfony-assets-install": "symlink",
      "incenteev-parameters": {
          "file": "app/config/parameters.yml"
      },
      "branch-alias": {
          "dev-master": "2.3-dev"
      }
  }
  }
  </code></pre>
  
  <p>The libraries are downloaded but...
  I'm expecting that composer will create, with the "robloach/component-installer" dependency, a copy of the files specified in "extra" of the "component" type package to the "web/component" directory, but it doesn't.</p>
  
  <p>What's wrong with my config? Thanks!</p>