Skip to content

Commit f362b34

Browse files
Create composer.json (#262)
* Create composer.json * Add Composer usage to README
1 parent 3d5c048 commit f362b34

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,23 @@ bower install baguettebox.js --save
9191
<script src="js/baguetteBox.min.js" async></script>
9292
```
9393

94+
### Composer
95+
Add the following to your `composer.json` file (updating the version as required) and then run `composer install` or `composer update`:
96+
97+
```json
98+
{
99+
"repositories": [
100+
{
101+
"type": "vcs",
102+
"url": "https://github.com/feimosi/baguetteBox.js"
103+
}
104+
],
105+
"require": {
106+
"feimosi/baguettebox.js": "dev-main"
107+
}
108+
}
109+
```
110+
94111
## Importing
95112

96113
### Traditional approach

composer.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "feimosi/baguettebox.js",
3+
"description": "Simple and easy to use lightbox script",
4+
"type": "library",
5+
"license": "MIT",
6+
"authors": [
7+
{
8+
"name": "feimosi",
9+
"homepage": "https://github.com/feimosi"
10+
}
11+
],
12+
"homepage": "https://github.com/feimosi/baguetteBox.js",
13+
"keywords": ["lightbox", "gallery", "image", "javascript"],
14+
"minimum-stability": "stable",
15+
"require": {},
16+
"autoload": {
17+
"classmap": ["dist/"]
18+
}
19+
}

0 commit comments

Comments
 (0)