0.0.9 • Published 2 years ago
@calmbyte/cli v0.0.9
CalmByte CLI
The CalmByte CLI is a command-line interface tool for creating ReactJS components.
Development Setup
Prerequisites
- Install Node.js which includes Node Package Manager
Install CalmByte CLI globally:
npm install -g @calmbyte/cliDocumentation
For help
cb --helpCommands
| Command | Alias | Description |
|---|---|---|
| generate | g | Generates and/or modify files |
Generating component
cb generate [options] component <name>cb generate -p src/molecules component AvatarOptions
| Option | Alias | Description | Default value |
|---|---|---|---|
| --extension | --ext | File extension ts/js/tsx/jsx | tsx |
| --path | --p | File path | ./ |
| --dry | --d | Dry run | |
| --type | --t | Component as function declaration or function expression (dcl/expr) | dcl |