@code-spark/cli
v0.0.4
Published
A CLI tool for generating TypeScript and React files.
Downloads
14
Readme
Quickly create standardized React project files
Introduction
🚀 Usage Guide
Installation
Install globally via npm:
npm install @code-spark/cli -gVerify Installation
Run the following command to check the installed version:
code-spark v
# Current version: 0.1.3View Command List
code-spark infoSupported commands are as follows:
|name|alias|description| |---|---|---| |component|co|Create Component| |hook|h|Create Hook| |context|ctx|Create Context| |layout|l|Create Layout| |page|p|Create Page| |store|s|Create Store| |api|a|Create API| |utils|u|Create Utils|
Usage Examples
General format for generating files:
code-spark g [options] [filename]
code-spark g component MyComponentGenerate files using custom templates:
code-spark g [options] [filename] -t [relativePath]
code-spark g component aaa -a /workspace/templates/component/component
code-spark g [options] [filename] -a [absolutePath]
code-spark g component aaa -a ./templates/component