asciidoctor-web-pdf icon indicating copy to clipboard operation
asciidoctor-web-pdf copied to clipboard

Create a package to quickly initialize an Asciidoctor PDF project

Open ggrossetie opened this issue 5 years ago • 3 comments

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

ggrossetie avatar Nov 03 '19 17:11 ggrossetie

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.

thom4parisot avatar Nov 03 '19 20:11 thom4parisot

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.

ggrossetie avatar Nov 03 '19 21:11 ggrossetie

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.

thom4parisot avatar Nov 05 '19 07:11 thom4parisot