0.0.3 • Published 5 years ago

yarg-scripts v0.0.3

Weekly downloads
2
License
MIT
Repository
-
Last release
5 years ago

yarg-scripts

Automatically load git-style subcommand pattern with yargs

Usage

First install yarg-scripts as usual:

yarn add yarg-scripts or npm install --save yarg-scripts

Then set your bin directive in your package.json to point to yarg-scripts:

...
  "bin": {
    "<your command name>": "./node_modules/yarg-scripts/index.js"
  },
...

Now, create a directory called scripts, and fill it with javascript files that export configuration for yargs subcommands as specified by yarg's command function.

See yargs command documentation for more details.

0.0.3

5 years ago

0.0.2

6 years ago

0.0.1

7 years ago