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

Windows support for Electron #189

Merged
merged 1 commit into from
Jun 14, 2016
Merged

Conversation

ldez
Copy link
Member

@ldez ldez commented Jun 11, 2016

Related to electron/electron#2033
Fix asciidoctor/atom-asciidoc-preview#159

I don't know how to write specs for this case.

@ggrossetie
Copy link
Member

I don't know how to write specs for this case.

Indeed this is not a simple task and we will just test our implementation anyway 😐

@@ -1,5 +1,6 @@
%x(
var isNode = typeof module !== 'undefined' && module.exports,
isElectron = process.versions !== undefined && process.versions.electron !== undefined,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we should check that process is defined ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

process is always defined with Node

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops isXX are not functions, I must test if process is defined.

@ggrossetie
Copy link
Member

@mojavelinux I don't remember if we agreed on a naming to define the runtime environment ?

Electron should be:

JAVASCRIPT_ENGINE=electron
JAVASCRIPT_PLATFORM=node // or maybe nodejs ?

@ldez
Copy link
Member Author

ldez commented Jun 12, 2016

Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.

JAVASCRIPT_ENGINE is V8 with Node.
Electron is a context, perhaps JAVASCRIPT_CONTEXT or JAVASCRIPT_APPLICATION

@ggrossetie
Copy link
Member

Yes you are right, that was part of the discussion but I think we "formalize" something (the problem is that I can't remember where)

@ggrossetie
Copy link
Member

I think we can track this improvement in another issue

@ggrossetie ggrossetie merged commit 74131e5 into asciidoctor:master Jun 14, 2016
@ggrossetie
Copy link
Member

👍 Thanks @ldez

@ldez ldez deleted the feature/electron branch June 14, 2016 18:54
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

Successfully merging this pull request may close these issues.

None yet

2 participants