alfred-link | Make your Alfred workflows installable from npm | BPM library
kandi X-RAY | alfred-link Summary
kandi X-RAY | alfred-link Summary
Make your Alfred workflows installable from npm
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of alfred-link
alfred-link Key Features
alfred-link Examples and Code Snippets
Community Discussions
Trending Discussions on alfred-link
QUESTION
I use the same package.json
for my dot files on MacOS and Linux. This was not a problem until recently when one of the packages stopped installing on Linux. (The reason for the failure is that the package is expecting Alfred
, a MacOS app, to be installed). When it's not found in my Linux env, the installation bails.
What's the best way to manage this kind of a thing? Should I have two different package.json
files? One for generic stuff and one for Mac-specific packages?
For reference, the dependencies I've currently got are:
...ANSWER
Answered 2019-Nov-21 at 17:24My solution to this is that I've decided to abuse devDependencies
. I've declared alfred-fkill
(the MacOS-only node module) as a dev dependency. Then on Linux I run yarn install --production=true
. This ignores the developer deps and I no longer have a failed installation. On my Mac I'll run yarn install
and it will install everything, as it did before. This works, but it's weird.
I'm left with:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install alfred-link
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page