1.2.3 • Published 1 month ago

@versatiles/release-tool v1.2.3

Weekly downloads
-
License
Unlicense
Repository
github
Last release
1 month ago

Code Coverage GitHub Workflow Status)

VersaTiles Release Tools

Tools used internally for:

Installation

npm i -D @versatiles/release-tool

configure scripts

You need to configure the scripts in the package.json:

{
  "scripts": {
    "check": "npm run lint && npm run build && npm run test",
    "prepack": "npm run build && npm run doc",
    "release": "vrt release-npm",
    ...
  },
  ...
}
  • scripts.check is required by the release command. Here you can lint, build and test your code.
  • scripts.prepack is recommended to ensure that all files are up-to-date before releasing. Here you can build code and documentation.
  • scripts.release is recommended to make it easy to release a new version.

Have a look at this package.json as an example.

Command vrt

$ vrt
Usage: vrt [options] [command]

versatiles release and documentaion tool

Options:
  -h, --help                              display help for command

Commands:
  ts2md <typescript> <tsconfig>           documents a TypeScript file and outputs it to stdout
  cmd2md <command>                        documents a runnable command and outputs it to stdout
  insertmd <readme> [heading] [foldable]  takes Markdown from stdin and insert it into a Markdown file
  inserttoc <readme> [heading]            updates the TOC in a Markdown file
  release-npm [path]                      release a npm package
  help [command]                          display help for command

Subcommand: vrt ts2md

$ vrt ts2md
Usage: vrt ts2md [options] <typescript> <tsconfig>

documents a TypeScript file and outputs it to stdout

Arguments:
  typescript  Filename of the TypeScript file
  tsconfig    Filename of tsconfig.json

Options:
  -h, --help  display help for command

Subcommand: vrt cmd2md

$ vrt cmd2md
Usage: vrt cmd2md [options] <command>

documents a runnable command and outputs it to stdout

Arguments:
  command     command to run

Options:
  -h, --help  display help for command

Subcommand: vrt insertmd

$ vrt insertmd
Usage: vrt insertmd [options] <readme> [heading] [foldable]

takes Markdown from stdin and insert it into a Markdown file

Arguments:
  readme      Markdown file, like a readme.md
  heading     Heading in the Markdown file (default: "# API")
  foldable    Make content foldable (default: false)

Options:
  -h, --help  display help for command

Subcommand: vrt inserttoc

$ vrt inserttoc
Usage: vrt inserttoc [options] <readme> [heading]

updates the TOC in a Markdown file

Arguments:
  readme      Markdown file, like a readme.md
  heading     Heading in the Markdown file (default: "# Table of Content")

Options:
  -h, --help  display help for command

Subcommand: vrt release-npm

$ vrt release-npm
Usage: vrt release-npm [options] [path]

release a npm package

Arguments:
  path        root path of the Node.js project

Options:
  -h, --help  display help for command
1.2.3

1 month ago

1.2.2

3 months ago

1.2.1

3 months ago

1.2.0

3 months ago

1.1.0

3 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

6 months ago

1.0.0

6 months ago