RobLoach / component-installer

Install Web Components through Composer
https://asset-packagist.org/
Other
280 stars 35 forks source link

component-installer isn't getting my [extra][component] array #63

Open sdbruder opened 10 years ago

sdbruder commented 10 years ago

Im trying to do a install-by-composer to a HTML theme (sb-admin-v2) and composer-installer isn't getting my [extra][component] definition (with scripts, styles and files).

the relevant portion of my composer.json:

    "repositories": [
        {
            "type": "package",
            "package": {
                "name": "components/sb-admin-v2",
                "type": "component",
                "version": "2.0.0",
                "dist": {
                    "url": "http://startbootstrap.com/downloads/sb-admin-v2.zip",
                    "type": "zip"
                },
                "require": {
                    "robloach/component-installer": "*"
                },
                "extra": {
                    "component": {
                        "scripts": [
                            "js/*"
                        ],
                        "styles": [
                            "css/*",
                            "css/plugins/*"
                        ],
                        "files": [
                            "font-awesome/*",
                            "font-awesome/css/*",
                            "font-awesome/fonts/*",
                            "fonts/*"
                        ]
                    }
                }
            }
        }
    ],
sdbruder commented 10 years ago

Update: following the documentation in http://robloach.github.io/component-installer/, Ive thrown away the "extra" array and listed directly the component array in the same level.

Same result, the code still 'see' a default component array, only with js/* and css/*.