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

Swift for Linux support #1

Open
Mike-Gough opened this issue Mar 12, 2020 · 0 comments
Open

Swift for Linux support #1

Mike-Gough opened this issue Mar 12, 2020 · 0 comments

Comments

@Mike-Gough
Copy link

As a developer building a static website using Publish, I'd like to be able to import this Plugin and use it in my build pipeline. However, JavaScriptCore is not available on Linux and this causes the following exception to be thrown:

/mnt/c/git/mike.gough.me/.build/checkouts/highlightjspublishplugin/Sources/HighlightJS/HighlightJS.swift:1:8: error: no such module 'JavaScriptCore'
import JavaScriptCore
       ^"
Output: ""

Is it possible for this plugin to log a warning if this framework is not available rather than throw an exception?

This would enable developers to prototype their websites on a Linux machine, or a Windows machine via WSL, but still enable them to build and publish the final product on a mac via something like github actions.

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

1 participant