Skip to content

Commit

Permalink
Allow extension to be loaded via directus package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitrov-adrian committed Jul 24, 2021
1 parent 0bef313 commit 93e8d01
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.editorconfig
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
## How to install

Simple quick install step, just copy and paste in your Directus project root directory.

```bash
( source .env &&\
curl -o searchsync.zip -L https://github.com/dimitrov-adrian/directus-extension-searchsync/archive/refs/heads/main.zip &&\
Expand All @@ -19,6 +20,7 @@ Simple quick install step, just copy and paste in your Directus project root dir
cp "$EXTENSIONS_PATH/hooks/directus-extension-searchsync-main/example.searchsync.config.js" searchsync.config.js && \
cd "$EXTENSIONS_PATH/hooks/directus-extension-searchsync-main" && npm i)
```

Then open the `./searchsync.config.js` file and edit, and restart directus.

## Configuration
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
},
"main": "index.js",
"license": "MIT",
"directus:extension": {
"type": "hook"
},
"homepage": "https://github.com/dimitrov-adrian/directus-extension-searchsync",
"repository": {
"type": "git",
Expand Down

0 comments on commit 93e8d01

Please sign in to comment.