Skip to content

Commit f7e2f58

Browse files
alphpzenorocha
authored andcommitted
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
1 parent 2d5b2df commit f7e2f58

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

composer.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "zenorocha/clipboardjs",
3+
"description": "Modern copy to clipboard. No Flash. Just 3kb gzipped https://clipboardjs.com",
4+
"type": "component",
5+
"homepage": "https://clipboardjs.com/",
6+
"authors": [
7+
{
8+
"name": "Zeno Rocha",
9+
"url": "http://zenorocha.com/"
10+
}
11+
],
12+
"require": {
13+
"robloach/component-installer": "*"
14+
},
15+
"extra": {
16+
"component": {
17+
"scripts": [
18+
"dist/clipboard.js"
19+
],
20+
"files": [
21+
"dist/clipboard.min.js"
22+
]
23+
}
24+
}
25+
}

0 commit comments

Comments
 (0)