@devavi-labs/duhh
v0.0.1
Published
A personal CLI tool.
Downloads
3
Readme
@devavi-labs/duhh
A personal CLI tool.
Usage
$ npm install -g duhh
$ duhh COMMAND
running command...
$ duhh (-v|--version|version)
duhh/0.0.1 linux-x64 node-v14.15.1
$ duhh --help [COMMAND]
USAGE
$ duhh COMMAND
...
Commands
duhh help [COMMAND]
display help for duhh
USAGE
$ duhh help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
duhh react-component [NAME]
Creates a component in /src/components/
USAGE
$ duhh react-component [NAME]
OPTIONS
-S, --style=(css|scss|sass) [default: css] creates a css, scss or sass file and links it
-T, --template=(jsx|tsx) [default: tsx] creates a .jsx or .tsx file
-c, --component=(functional|class) [default: functional] creates a React functional or class component
-e, --export=(default|named) [default: named] exports the component as a default or named export
-s, --includestyle whether to include a style file or not
-t, --includetype whether to include a type or not
See code: src/commands/react-component.ts