Compatible with oclif 4.x, build debian packages from dist, create manpage from README.md and include prerm, postrm, preinst and postinst scripts for Debian package.
Add the package to your package.json as devDependencies
"perrisbrewery": "^9.7.12*,
and create a script deb:
"deb": "tsc -p . && pb deb",
Create a config dir perrisbrewery
inside the project followind the sample,
then use the script deb with your favourite package manager, mine is pnpm:
pnpm deb
Pack CLI into debian package.
USAGE
$ pb deb [PATHSOURCE] [-h] [-a] [-c <value>] [-m] [-r <value>] [-v]
ARGUMENTS
PATHSOURCE pathSource
FLAGS
-a, --all all architectures
-c, --codename=<value> codename
-h, --help Show CLI help.
-m, --mantain
-r, --release=<value> release
-v, --verbose verbose
DESCRIPTION
Pack CLI into debian package.
Create a deb package from your npm package
See code: src/commands/deb.ts
Display help for pb.
USAGE
$ pb help [COMMAND...] [-n]
ARGUMENTS
COMMAND... Command to show help for.
FLAGS
-n, --nested-commands Include all nested commands in the output.
DESCRIPTION
Display help for pb.
See code: @oclif/plugin-help
USAGE
$ pb version [--json] [--verbose]
FLAGS
--verbose Show additional information about the CLI.
GLOBAL FLAGS
--json Format output as json.
FLAG DESCRIPTIONS
--verbose Show additional information about the CLI.
Additionally shows the architecture, node version, operating system, and versions of plugins that the CLI is using.
See code: @oclif/plugin-version
You can contact me by mail or follow me on blog, facebook, github, jtsi, reddit, telegram, twitter.
Copyright (c) 2017, 2023 Piero Proietti, dual licensed under the MIT or GPL Version 2 licenses.