1.2.0 • Published 11 months ago

@baltpeter/generator-ts v1.2.0

Weekly downloads
-
License
CC0-1.0
Repository
github
Last release
11 months ago

@baltpeter/generator-ts

A Yeoman generator that I use for scaffolding TypeScript modules.

This Yeoman generator generates the TypeScript boilerplate I use for my modules, using my configs for ESLint, Prettier and TypeScript. You probably don't want to use this unless you're working on a project with me.

Installation

You first need to install yo and this generator:

npm i -g yo @baltpeter/generator-ts

Usage

After installing, you can run the generator with:

yo @baltpeter/ts

The generator will interactively prompt you for the module name and some other information. You can also pass most of these options as command line arguments. Use yo @baltpeter/ts --help to see all available options:

$ yo @baltpeter/ts --help
Usage:
  yo @baltpeter/ts:app [<moduleName>] [options]

Options:
  -h,   --help           # Print the generator's options and usage
        --skip-cache     # Do not remember prompt answers                                   Default: false
        --skip-install   # Do not automatically install dependencies                        Default: false
        --force-install  # Fail on install dependencies error                               Default: false
        --ask-answered   # Show prompts for already configured options                      Default: false
        --description    # A short one-sentence description of the module.
        --name           # Your name.
        --email          # Your email.
        --githubRepo     # The GitHub repository where the module will be stored.
        --useTypeDoc     # Whether to use TypeDoc for generating the API docs as Markdown.

Arguments:
  moduleName  # The name of the module (this will also be the output directory).  Type: String  Required: false

License

This generator and the boilerplate it generates are licensed under the CC0 license, see the LICENSE file for details.