Skip to content

Commit cb820c7

Browse files
Merge pull request #23 from bigbite/fix/local-instructions
adds local instructions
2 parents 3fd98a5 + 688718b commit cb820c7

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,50 @@ Image Comparison provides a versatile draggable slider component that allows use
1515
## Documentation
1616

1717
### Installing
18+
When installing to your site, add the following to your `composer.json` file. This will ensure that installation will use the built version of the package, and allow it to be loaded using Composer in the preferred path.
19+
20+
```json
21+
{
22+
"repositories": [
23+
{
24+
"type": "vcs",
25+
"url": "[email protected]:bigbite/image-comparison.git"
26+
}
27+
],
28+
"require": {
29+
"bigbite/image-comparison": "dev-main-built"
30+
},
31+
"extra": {
32+
"installer-paths": {
33+
"plugins/{$name}/": [
34+
"type:wordpress-plugin"
35+
]
36+
}
37+
}
38+
}
39+
40+
```
1841

1942
### Local Development or Manual Install
43+
Clone the repository into your `plugins` or `client-mu-plugins` directory.
44+
```
45+
git clone [email protected]:bigbite/image-comparison.git && cd image-comparison
46+
```
47+
48+
Install JS packages.
49+
```
50+
npm install
51+
```
52+
53+
Build all assets
54+
```
55+
npm run build:dev
56+
```
57+
58+
Install PHP packages and create autoloader for the plugin.
59+
```
60+
composer install
61+
```
2062

2163
## Requirements
2264

0 commit comments

Comments
 (0)