-
Notifications
You must be signed in to change notification settings - Fork 188
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
Upgrade to Asciidoctor.js 2.0.0 #252
Comments
When I come back to this with fresh eyes, the order strikes me as awkward. As much as the programmer in me wants it to be inverted, I think we should use |
If we want the following to be working, we will need to agree on an API.
The reason is that the CLI will have to "automatically" register the converter.
In my opinion it's more intuitive than to require the user to create a JavaScript file to load and register the converters/extensions: init.js require('@asciidoctor/reveal.js-converter').register()
|
@Mogztter's PR I just merged didn't contain the package name change. Since this release is going to be a major one due to the Node API change, I suggest we change the package name right now if it still makes sense to do so. Should this be renamed To me |
You're right.
I had the same thought and I think we can safely remove the extra I will wait for @mojavelinux's approval to make sure that we are on the same page. |
@mojavelinux: @Mogztter and I would go with |
I think that's a reasonable and intutive assumption. I'll vote 👍 on |
With #291 merged, now we probably need to do something on npm. Releasing an interim version of |
I think it's a good idea 👍 |
Release candidate 1 packages are out there: https://www.npmjs.com/package/@asciidoctor/reveal.js |
I just tested the javascript API (which resulted in this PR #298 to update our Babel example API usage) and it works. I also tested the README setup instructions: npm i --save asciidoctor @asciidoctor/reveal.js
$(npm bin)/asciidoctor --version
$(npm bin)/asciidoctor -r @asciidoctor/reveal.js -b reveal.js README.adoc And it worked. This successfully completes all remaining tasks in this ticket. Closing. |
The final version is not yet available but I've published a second release candidate today.
A few notes:
asciidoctor
asciidoctor
is now a meta-package that contains@asciidoctor/core
and@asciidoctor/cli
@asciidoctor/reveal.js-converter
The text was updated successfully, but these errors were encountered: