{"action":"closed","issue":{"url":"https://api.github.com/repos/francoispluchino/composer-asset-plugin/issues/132","labels_url":"https://api.github.com/repos/francoispluchino/composer-asset-plugin/issues/132/labels{/name}","comments_url":"https://api.github.com/repos/francoispluchino/composer-asset-plugin/issues/132/comments","events_url":"https://api.github.com/repos/francoispluchino/composer-asset-plugin/issues/132/events","html_url":"https://github.com/francoispluchino/composer-asset-plugin/issues/132","id":93034550,"number":132,"title":"provide/replace/conflict support","user":{"login":"nazar-pc","id":928965,"avatar_url":"https://avatars.githubusercontent.com/u/928965?v=3","gravatar_id":"","url":"https://api.github.com/users/nazar-pc","html_url":"https://github.com/nazar-pc","followers_url":"https://api.github.com/users/nazar-pc/followers","following_url":"https://api.github.com/users/nazar-pc/following{/other_user}","gists_url":"https://api.github.com/users/nazar-pc/gists{/gist_id}","starred_url":"https://api.github.com/users/nazar-pc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nazar-pc/subscriptions","organizations_url":"https://api.github.com/users/nazar-pc/orgs","repos_url":"https://api.github.com/users/nazar-pc/repos","events_url":"https://api.github.com/users/nazar-pc/events{/privacy}","received_events_url":"https://api.github.com/users/nazar-pc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/francoispluchino/composer-asset-plugin/labels/support","name":"support","color":"f7c6c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-07-04T17:56:23Z","updated_at":"2015-08-06T02:33:24Z","closed_at":"2015-08-06T02:33:24Z","body":"I'm trying to integrate this awesome plugin into my CMS.\r\nIt comes with some components already bundled (jQuery, Polymer, UIkit, etc.), but since they are not installed via this plugin I need to prevent duplicated installation to avoid conflicts.\r\n\r\nIn my case `composer.json` is generated on-fly, I've tried two forms, in both cases jQuery was installed:(\r\n\r\nFirst:\r\n```json\r\n{\r\n    \"repositories\": [\r\n        {\r\n            \"type\": \"package\",\r\n            \"package\": {\r\n                \"name\": \"modules/WebSockets\",\r\n                \"version\": \"0.31.0+build-49\",\r\n                \"require\": {\r\n                    \"bower-asset/jquery\": \"^2.1\",\r\n                    \"bower-asset/bootstrap\": \"^3\"\r\n                },\r\n                \"dist\": {\r\n                    \"url\": \"/web/cscms.org/www/components/modules/Composer/empty.zip\",\r\n                    \"type\": \"zip\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"type\": \"package\",\r\n            \"package\": {\r\n                \"name\": \"plugins/Composer_assets\",\r\n                \"version\": \"0.1.0+build-1\",\r\n                \"require\": {\r\n                    \"fxp/composer-asset-plugin\": \"^1.0.2\",\r\n                    \"oyejorge/less.php\": \"~1.7\",\r\n                    \"leafo/scssphp\": \"^0.1.7\"\r\n                },\r\n                \"dist\": {\r\n                    \"url\": \"/web/cscms.org/www/components/modules/Composer/empty.zip\",\r\n                    \"type\": \"zip\"\r\n                },\r\n                \"provide\": {\r\n                    \"bower-asset/jquery\": \"3.0.0-alpha\",\r\n                    \"npm-asset/jquery\": \"3.0.0-alpha\",\r\n                    \"bower-asset/polymer\": \"0.5.5\",\r\n                    \"npm-asset/polymer\": \"0.5.5\",\r\n                    \"bower-asset/uikit\": \"2.21\",\r\n                    \"npm-asset/uikit\": \"2.21\",\r\n                    \"bower-asset/webcomponentsjs\": \"0.7.3\",\r\n                    \"npm-asset/webcomponentsjs\": \"0.7.3\",\r\n                    \"bower-asset/webcomponents.js\": \"0.7.3\",\r\n                    \"npm-asset/webcomponents.js\": \"0.7.3\",\r\n                    \"bower-asset/jsSHA\": \"1.6.1\",\r\n                    \"npm-asset/jsSHA\": \"1.6.1\",\r\n                    \"bower-asset/jssha\": \"1.6.1\",\r\n                    \"npm-asset/jssha\": \"1.6.1\"\r\n                }\r\n            }\r\n        }\r\n    ],\r\n    \"require\": {\r\n        \"modules/WebSockets\": \"0.31.0+build-49\",\r\n        \"plugins/Composer_assets\": \"0.1.0+build-1\"\r\n    }\r\n}\r\n```\r\nSecond:\r\n```json\r\n{\r\n    \"repositories\": [\r\n        {\r\n            \"type\": \"package\",\r\n            \"package\": {\r\n                \"name\": \"modules/WebSockets\",\r\n                \"version\": \"0.31.0+build-49\",\r\n                \"require\": {\r\n                    \"bower-asset/jquery\": \"^2.1\",\r\n                    \"bower-asset/bootstrap\": \"^3\"\r\n                },\r\n                \"dist\": {\r\n                    \"url\": \"/web/cscms.org/www/components/modules/Composer/empty.zip\",\r\n                    \"type\": \"zip\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"type\": \"package\",\r\n            \"package\": {\r\n                \"name\": \"plugins/Composer_assets\",\r\n                \"version\": \"0.1.0+build-1\",\r\n                \"require\": {\r\n                    \"fxp/composer-asset-plugin\": \"^1.0.2\",\r\n                    \"oyejorge/less.php\": \"~1.7\",\r\n                    \"leafo/scssphp\": \"^0.1.7\"\r\n                },\r\n                \"dist\": {\r\n                    \"url\": \"/web/cscms.org/www/components/modules/Composer/empty.zip\",\r\n                    \"type\": \"zip\"\r\n                }\r\n            }\r\n        }\r\n    ],\r\n    \"require\": {\r\n        \"modules/WebSockets\": \"0.31.0+build-49\",\r\n        \"plugins/Composer_assets\": \"0.1.0+build-1\"\r\n    },\r\n    \"provide\": {\r\n        \"bower-asset/jquery\": \"3.0.0-alpha\",\r\n        \"npm-asset/jquery\": \"3.0.0-alpha\",\r\n        \"bower-asset/polymer\": \"0.5.5\",\r\n        \"npm-asset/polymer\": \"0.5.5\",\r\n        \"bower-asset/uikit\": \"2.21\",\r\n        \"npm-asset/uikit\": \"2.21\",\r\n        \"bower-asset/webcomponentsjs\": \"0.7.3\",\r\n        \"npm-asset/webcomponentsjs\": \"0.7.3\",\r\n        \"bower-asset/webcomponents.js\": \"0.7.3\",\r\n        \"npm-asset/webcomponents.js\": \"0.7.3\",\r\n        \"bower-asset/jsSHA\": \"1.6.1\",\r\n        \"npm-asset/jsSHA\": \"1.6.1\",\r\n        \"bower-asset/jssha\": \"1.6.1\",\r\n        \"npm-asset/jssha\": \"1.6.1\"\r\n    }\r\n}\r\n```\r\n\r\nIs there any possibility to explain that jQuery is already installed or provided by some other package, and do not even download it, just ignore from the beginning?\r\nI'm using version `1.0.2`."}}