0.0.9 • Published 1 year 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/cli
Documentation
For help
cb --help
Commands
Command | Alias | Description |
---|---|---|
generate | g | Generates and/or modify files |
Generating component
cb generate [options] component <name>
cb generate -p src/molecules component Avatar
Options
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 |