Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit ca98ae5

Browse files
committed
Add composer package
1 parent 468b3be commit ca98ae5

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,23 @@ Check the [examples](https://github.com/angular-ui/ui-select/blob/master/example
2828
- select.js: `<script src="bower_components/angular-ui-select/dist/select.min.js"></script>`
2929
- select.css: `<link rel="stylesheet" href="bower_components/angular-ui-select/dist/select.min.css">`
3030

31+
## Installation using [Composer](http://getcomposer.org/)
32+
33+
Make sure composer is install globally before we proceed. After that we need to add below piece of code in `composer.json` file located inside your project root folder.
34+
35+
```
36+
{
37+
"require": {
38+
"components/ui-select": "dev-master"
39+
}
40+
}
41+
```
42+
43+
- Run `composer update` and composer will install the component.
44+
- Inside your HTML add below script and link tags.
45+
- select.js: `<script src="components/ui-select/dist/select.min.js"></script>`
46+
- select.css: `<link rel="stylesheet" href="components/ui-select/dist/select.min.css">`
47+
3148
### Bootstrap theme
3249

3350
If you already use Bootstrap, this theme will save you a lot of CSS code compared to the Select2 and Selectize themes.

composer.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"name": "components/ui-select",
3+
"version": "0.4.0",
4+
"description": "AngularJS UI Select",
5+
"type": "component",
6+
"homepage": "https://github.com/angular-ui/ui-select",
7+
"license": "MIT",
8+
"support": {
9+
"issues": "https://github.com/angular-ui/ui-select/issues",
10+
"wiki": "https://github.com/angular-ui/ui-select/wiki",
11+
"source": "https://github.com/angular-ui/ui-select"
12+
},
13+
"authors": [
14+
"AngularUI"
15+
],
16+
"require": {
17+
"robloach/component-installer": "*"
18+
},
19+
"extra": {
20+
"component": {
21+
"scripts": [
22+
"dist/select.js"
23+
],
24+
"files": [
25+
"dist/select.js",
26+
"dist/select.css",
27+
"dist/select.min.js",
28+
"dist/select.min.css"
29+
]
30+
}
31+
}
32+
}

0 commit comments

Comments
 (0)