# receipt-cli

> Helpers to create components, containers and pages into react projects.

Latest version **0.0.6** (published 2022-01-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install receipt-cli
pnpm add receipt-cli
yarn add receipt-cli
bun add receipt-cli
```

Provides the command `rc`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2022-01-06 |
| First published | 2021-12-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 13.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | cl4pper |
| Keywords | react, receipt, cli, helper, template, component, container, pages, boilerplate, gluegun, javascript, typescript |

## Links

- npm: https://www.npmjs.com/package/receipt-cli
- Repository: https://github.com/Chef-UI/receipt-cli
- Homepage: https://github.com/Chef-UI/receipt-cli#readme
- Issues: https://github.com/Chef-UI/receipt-cli/issues
- npm.io page: https://npm.io/package/receipt-cli

## Dependencies (1)

- [gluegun](https://npm.io/package/gluegun.md) latest

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.0.6 (latest) — 2022-01-06
- 0.0.5 — 2021-12-22
- 0.0.4 — 2021-12-09
- 0.0.3 — 2021-12-07
- 0.0.2 — 2021-12-03
- 0.0.1 — 2021-12-03

## README

# receipt-CLI

Helpers to create components, containers and pages into react projects.

Each new folder contains a **.jsx**, a **.test.js** and a **.scss** files inside.

To install: ```yarn global add receipt-cli``` or ```npm i -g receipt-cli```.

## Commands:

Start each command with ```rc```.

### :smiley: new:template `DIR` `NAME`
Creates a template into **DIR** folder named **NAME** (creates the folder if it doesn't exist).

```js
rc new:template src/lib Button // creates Button folder into the respective DIR
```

### :smiley: new:component `NAME`
Creates a new component into components folder (creates the folder if it doesn't exist).

```js
rc new:component Topbar // creates Topbar component folder into components folder
```

### :smiley: new:container `NAME`
Creates a new container into containers folder (creates the folder if it doesn't exist).

```js
rc new:container Table // creates Table container folder into containers folder
```

### :smiley: new:page `NAME`
Creates a new page into pages folder (creates the folder if it doesn't exist).

```js
rc new:page Profile // creates Profile page folder into pages folder
```

### Others commands:
- ```rc -h``` opens help menu.
- ```rc -v``` returns cli version.

## Options:

### :wink: ```--named```
Set **.jsx** and **.test.js** file names as `NAME` parameter.

```js
rc new:component Topbar --named // creates Topbar.jsx, Topbar.test.js and style.scss into Topbar folder
```

### :wink: ```--ts```
Create files in typescript format (**.tsx**, **.test.tsx**).

```js
rc new:component Box --ts // creates Box.tsx, Box.test.tsx, types.ts and style.scss into Box folder
```

### Enjoy it! :facepunch:


Engineered by [gluegun](https://github.com/infinitered/gluegun).

---
_Source: https://npm.io/package/receipt-cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
