From f7e2f58c962192c953506ce1a5a11cc312f02610 Mon Sep 17 00:00:00 2001 From: Fernando Herrero Date: Thu, 1 Mar 2018 02:05:21 +0100 Subject: [PATCH] Create composer.json for instalation with composer (#467) * Create composer.json for instalation with composer The installation is much simpler with Composer and https://github.com/RobLoach/component-installer After merged you can test it: ``` composer config repositories.zenorocha-clipboardjs vcs "https://github.com/zenorocha/clipboard.js/" composer require zenorocha-clipboardjs:dev-master ``` Before merged you can test using my git fork. Composer creates a "components" folder that contains the "clipboardjs" whith all files spec in "files" of composer.json. You can then register the "package" at https://packagist.org In this way the installation would be simpler: `composer require zenorocha-clipboardjs:dev-master` * Remove icon --- composer.json | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 composer.json diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..a712d5a --- /dev/null +++ b/composer.json @@ -0,0 +1,25 @@ +{ + "name": "zenorocha/clipboardjs", + "description": "Modern copy to clipboard. No Flash. Just 3kb gzipped https://clipboardjs.com", + "type": "component", + "homepage": "https://clipboardjs.com/", + "authors": [ + { + "name": "Zeno Rocha", + "url": "http://zenorocha.com/" + } + ], + "require": { + "robloach/component-installer": "*" + }, + "extra": { + "component": { + "scripts": [ + "dist/clipboard.js" + ], + "files": [ + "dist/clipboard.min.js" + ] + } + } +}