0.2.2 • Published 7 months ago

gwjun-ui v0.2.2

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

gwjun-ui

A CLI tool to directly add component code to your React project.

Installation

If you have not set up a React project, please follow the instructions in the Getting Started Guide.

If you have already set up a React project, please proceed with the following steps.

Add tsconfig alias

Add baseUrl and alias in your tsconfig.json to correctly configure the import paths for utility functions. If configured differently, you must input the alias according to the corresponding path when running init.

{
  "compilerOptions": {
    // ...
    "baseUrl": ".",
    "paths": {
      "#*": ["./src/*"]
    }
  }
}

Note If you are using other frameworks or build tool such as Vite, additional steps may be required to configure alias.

Please refer to the documentation in the Getting Started Guide for detailed instructions.

Usage

init

Use the init command to initialize dependencies for a new project.

The init command sets up the component-config.json file, which makes configuration settings.

npx gwjun-ui init

add

Use the add command to add components to your project.

The add command adds a component to your project and installs all required dependencies.

npx gwjun-ui add [component]

Example

npx gwjun-ui add button
0.2.1

7 months ago

0.2.0

7 months ago

0.2.2

7 months ago

0.1.7

11 months ago

0.1.6

11 months ago

0.1.5

11 months ago

0.1.4

11 months ago

0.1.3

11 months ago

0.1.2

11 months ago

0.1.1

11 months ago

0.1.0

11 months ago