# generator-client-swag

> None

Latest version **0.1.0** (published 2019-10-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install generator-client-swag
pnpm add generator-client-swag
yarn add generator-client-swag
bun add generator-client-swag
```

## 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.1.0 |
| Published | 2019-10-28 |
| First published | 2017-07-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 10.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Eugen1992 |
| Maintainers | eugenealforov |
| Keywords | yeoman-generator |

## Links

- npm: https://www.npmjs.com/package/generator-client-swag
- Repository: https://github.com/Eugen1992/generator-client-swag
- Homepage: https://github.com/Eugen1992/generator-client-swag#readme
- Issues: https://github.com/Eugen1992/generator-client-swag/issues
- npm.io page: https://npm.io/package/generator-client-swag

## Dependencies (1)

- [yeoman-generator](https://npm.io/package/yeoman-generator.md) ^1.1.1

## Recent versions

- 0.1.0 (latest) — 2019-10-28
- 0.0.7 — 2018-02-03
- 0.0.6 — 2018-02-03
- 0.0.5 — 2018-02-03
- 0.0.4 — 2018-02-02
- 0.0.3 — 2017-08-28
- 0.0.2 — 2017-07-16
- 0.0.1 — 2017-07-16

## README

# generator-client-swag

This is a yeoman generator for a faster client side development

## Installing

Run from your terminal:

```{r, engine='bash'}
npm install yo -g
npm isntall generator-client-swag -g
```

## Usage

### Dumb component with unit test (not connected to redux)

```{r, engine='bash'}
yo client-swag:component {{ComponentName}}
```

Will create next file structure:
```
+-- {{component-name}}
|   -- index.js
|   -- {{compnent-name}}.jsx
|   -- {{compnent-name}}.spec.jsx
|   -- {{compnent-name}}.scss
```
### Dumb component without unit test (not connected to redux)

Adding --skip-test option will skip test file.
```{r, engine='bash'}
yo client-swag:component {{ComponentName}} --skip-test
```

Will create next file structure:
```
+-- {{component-name}}
|   -- index.js
|   -- {{compnent-name}}.jsx
|   -- {{compnent-name}}.scss
```

### Smart component with unit test (connected to redux)
```{r, engine='bash'}
yo client-swag:container {{ConteinerName}}
```

Will create next file structure:
```
+-- {{component-name}}
|   -- index.js
|   -- {{compnent-name}}.jsx
|   -- {{compnent-name}}.spec.jsx
|   -- {{compnent-name}}.scss
```

### Smart component with unit test (connected to redux)

Adding --skip-test option will skip test file.
```{r, engine='bash'}
yo client-swag:container {{ConteinerName}} --skip-test
```

Will create next file structure:
```
+-- {{component-name}}
|   -- index.js
|   -- {{compnent-name}}.jsx
|   -- {{compnent-name}}.scss
```

### Redux store slice

```{r, engine='bash'}
yo client-swag:redux {{sliceName}}
```

Will create next file structure:
```
+-- {{slice-name}}
|   -- {{slice-name}}.reducor.js
|   -- {{slice-name}}.actions.js
|   -- {{slice-name}}.selectors.js
|   -- {{slice-name}}.dispatchers.js
```

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