ggrossetie / asciidoctor-web-pdf

Convert AsciiDoc documents to PDF using web technologies
https://asciidoctor.org
MIT License
448 stars 92 forks source link

Create a package to quickly initialize an Asciidoctor PDF project #101

Open ggrossetie opened 4 years ago

ggrossetie commented 4 years ago

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:

Reference: https://docs.npmjs.com/cli/init

thom4parisot commented 4 years ago

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.

ggrossetie commented 4 years ago

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.

thom4parisot commented 4 years ago

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.