Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeboer committed Jun 24, 2019
2 parents 5809c80 + 4a7fba8 commit a558f6c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
14 changes: 5 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,28 +38,24 @@ Please see the [docs](./docs) for documentation and examples on how to use Hugo

### Publishing your workflow to NPM

To publish your workflow to NPM, use [alfred-link](github.com/samverschueren/alfred-link).

> Add the `alfred-link` command as `postinstall` script of your Alfred package and add `alfred-unlink` as `preuninstall` script to clean up the resources when the workflow gets uninstalled.
To publish your workflow to NPM, set up the `postinstall` and `preuninstall` scripts in your `package.json` as follows to automatically add your workflow to Alfred.

```json
{
"name": "alfred-unicorn",
"scripts": {
"postinstall": "alfred-link",
"preuninstall": "alfred-unlink"
"postinstall": "hugo-link",
"preuninstall": "hugo-unlink"
}
}
```

> You can now install the `alfred-unicorn` package like this
People can now install your package globally like this:

```bash
$ npm install -g alfred-unicorn
$ npm install -g my-alfred-package
```

> This will update `info.plist` with the information from `package.json` and creates a `unicorn` symlink inside the Alfred workflows directory that points to the location of the `alfred-unicorn` module.
## Workflows using Hugo

List of Alfred workflows using Hugo.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "alfred-hugo",
"version": "2.0.0",
"version": "2.0.1",
"description": "Alfred workflow bindings for NodeJS",
"author": "Maarten de Boer <maarten@cloudstek.nl> (https://cloudstek.nl)",
"contributors": [
Expand Down

0 comments on commit a558f6c

Please sign in to comment.