Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nvedant/create-chakra

🌈 cli tool to scaffold chakra ui projects, without wasting time
https://github.com/nvedant/create-chakra

chakra chakra-ui chakra-ui-react chakraui nextjs reactjs typescript vue

Last synced: about 16 hours ago
JSON representation

🌈 cli tool to scaffold chakra ui projects, without wasting time

Awesome Lists containing this project

README

        

![create-chakra example](https://user-images.githubusercontent.com/70624701/184507059-bbed2dad-513e-4d27-b5bf-3bd43e027331.png)

## Create Chakra Project (create-chakra)
âš’ Tool to scaffold chakra apps, without wasting time. It uses existing tools like `create-next-app` and `create-vite` and then configures chakra ui in the project.

## Usage
### npx
```
npx create-chakra@latest

# OR

npx create-chakra@latest --template
```
### yarn
```
yarn create chakra

# OR

yarn create chakra --template
```

### pnpm
```
pnpm create chakra

# OR

pnpm create chakra --template
```

### Scaffolding tools

|id | Template | Tool |
|:---------|:-----------|:----------------|
|nextjs | Next.js | create-next-app |
|react | React | create-vite |
|vue | Vue | create-vite |

NOTE: Add the `-ts` postfix to the ID to install with TypeScript

### Include template id to skip input steps

```bash
npx create-chakra@latest --template
# OR
yarn create chakra --template
```

## Contributing
Pull requests are always welcome, but please ensure that you've properly tested and the project is working correctly.

### Testing locally
Just clone the repo and run:
```bash
pnpm build && ./dist/index.js

# OR
pnpm build && npm i --location=global .
```

**Please, prefer using `pnpm` rather than `npm` or `yarn` while building `create-chakra` locally as it will avoid conflicts. I have not tested `create-chakra` with `npm` or `yarn`.**