Open mojavelinux opened 7 years ago
Have you a real use case ?
Yes. I plan to integrate highlights as the convert-time syntax highlighter in Asciidoctor.js.
Can you create an Org on NPM for Asciidoctor ? Create org
We already have one. I'll add you.
Done.
Description
Publish the package to npm so that it can be used with the highlights syntax highlighter in headless / library mode.
This seems to be a simple matter of running
npm publish
during a release. However, we may want to consider some excludes (using an .npmignore file). We should also qualify the package name asatom-language-asciidoc
since we're publishing outside of the Atom ecosystem. (Another option for the name ishighlights-language-asciidoc
since technically it is not coupled to Atom).For an example of another language, see https://www.npmjs.com/package/atom-language-nginx. I can't find a project that contains a script that shows how they are publishing to npm and apm under different package names.
Code example
If this package were published to npm, you could install packages using:
Then use it as follows: