Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you bundle this to an alfred workflow? #14

Open
muuvmuuv opened this issue Nov 22, 2019 · 4 comments
Open

Can you bundle this to an alfred workflow? #14

muuvmuuv opened this issue Nov 22, 2019 · 4 comments

Comments

@muuvmuuv
Copy link

I don't want to install workflows with package managers because I use NVM and don't want them in every version. WOuld it be possible to bundle it?

@anoff
Copy link
Owner

anoff commented Nov 22, 2019

bundle it how? I haven't used Alfred workflows outside of npm, sorry for the stupid question.

@muuvmuuv
Copy link
Author

I don't know either 😄 Just saw that some packages do have a release with a package ending with .alfredworkflow.

Here an example repo: https://github.com/xilopaint/alfred-about-this-mac/

@anoff
Copy link
Owner

anoff commented Nov 27, 2019

Did some research and I think that bundling is not possible at the moment. I am relying on sindresorhus alfy package that allows writing the workflows using Node.js. Looking at the comment in alfred-npm-search it seems like node needs to be present on the client to run these kinds of workflows.

I also stumbled across another GitHub workflow alfred-github-search by the same guy as the above workflow. It has a download link to a workflow - but sadly no docs how this workflow was created.
Even though I would love to bundle the workflow - if I knew how - maybe the the alternative also works for you? :)

@muuvmuuv
Copy link
Author

The problem is that when your package relies on other NPM packages they would need to be bundled as well. The alfred-github-search has no dependencies so I think he just zipped it and renamed it? We could ask him. I have also asked Sindre himself on one package. Where he gave a better explanation:

sindresorhus/alfred-npms#28 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants