asciidoctor-web-pdf
asciidoctor-web-pdf copied to clipboard
Create a package to quickly initialize an Asciidoctor PDF project
Publish a package named create-asciidoctor-pdf-project
. The idea is to quickly initialize a project using npm init
command:
$ npm init asciidoctor-pdf-project ./my-asciidoctor-pdf-project
The package should contain:
- A sample document named
sample.adoc
- A
package.json
file
Reference: https://docs.npmjs.com/cli/init
The first example I read on https://docs.npmjs.com/cli/init is a bit misleading. What I understand is if you run npm init asciidoctor-pdf-project
, the implied package name is create-asciidoctor-pdf-project
.
An alias is npx create-asciidoctor-pdf-project
.
Yes you're right, good catch 👍
The package should be named create-asciidoctor-pdf-project
. We can discuss about the name but it should start with create-
by convention.
Exactly. It sounds like @asciidoctor/create-pdf-project
works too (depending on where you are up to regarding using the @org
stuff), thus enabling npm init @asciidoctor/pdf-project
.