# plopr

> A React plop generator to quickly and simply create React components with the latest React features, such as Hooks, Lazy and more.

Latest version **1.0.3** (published 2018-12-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install plopr
pnpm add plopr
yarn add plopr
bun add plopr
```

Provides the command `plopr`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2018-12-12 |
| First published | 2018-12-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.10.0 |
| Dependencies | 5 |
| Unpacked size | 25.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Tal Woolf |
| Maintainers | theboywhocriedwoolf |
| Keywords | plop generators, React Hooks, React generators |

## Links

- npm: https://www.npmjs.com/package/plopr
- Repository: https://github.com/theboyWhoCriedWoolf/plopr
- Homepage: https://github.com/theboyWhoCriedWoolf/plopr#readme
- Issues: https://github.com/theboyWhoCriedWoolf/plopr/issues
- npm.io page: https://npm.io/package/plopr

## Dependencies (5)

- [plop](https://npm.io/package/plop.md) ^2.1.0
- [yargs](https://npm.io/package/yargs.md) ^12.0.5
- [prettier](https://npm.io/package/prettier.md) ^1.15.3
- [cross-spawn](https://npm.io/package/cross-spawn.md) ^6.0.5
- [inquirer-directory](https://npm.io/package/inquirer-directory.md) ^2.1.0

## Recent versions

- 1.0.3 (latest) — 2018-12-12
- 1.0.2 — 2018-12-12
- 1.0.1 — 2018-12-12
- 1.0.0 — 2018-12-12

## README

## **plopR** - A React Plop Generator

A React plop generator to quickly and simply create React components with the latest React features, such as Hooks, Lazy and more.

> Quickly generate both Components & Containers with actions, reducers, Intl and test scaffolding.

### Installation

```js
// install using npm
npm -i -D plopr
// using yarn
yarn add plopr --dev
```

### Getting Started

```js
"Scripts": {
    // key can be any name or value you wish
    "plopr": "plopr"
}
```

Now, just call it with with whatever package manager you want. `yarn plopr`. Thats it!.

### Available Prompts

Plopr offers the following Prompts (for now anyway):

#### Component

```js
// Component type
 - [Stateless, Pure Stateless, Component]
// Component Name
 - [Name]
// Translations
 - [Intl]
// Load component asynchronously
 - [Anync Loadable]
```

#### Container

```js
// Component type
 - [Stateless, Pure Stateless, Component]
// Component Name
 - [Name]
// Headers using react-helmet
 - [Headers]
// Actions and Reducers using React Hooks
 - [Actions and Reducers]
// Translations
 - [Intl]
// Load component asynchronously
 - [Anync Loadable]
```

### Options

Plopr allows you to set two options:

```js
// set the app src folder - (default is src)
plopr --appSrc={your application src folder}
// Allows you to dynamically select your output location
// rather than using the defaults below:
// - containers = {appSrc}/containers
// - components = {appSrc}/components
plopr --freestyle˚
```

## Contribution

Please feel free to contribute. This generator was made to provide a basic starting point, however it is easily extensible.

---

###### made with :purple_heart: @theboyWhoCriedWoolf.

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