# gplate

> It's a tool for generating files and folder structure depending on your setup. See [example](https://github.com/liltoto/GPlate/tree/master/example). Templates are created with handlebar.

Latest version **0.1.1** (published 2019-10-11) · ISC license · 0 weekly downloads

## Install

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

Provides the command `gplate`.

## 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.1 |
| Published | 2019-10-11 |
| First published | 2018-11-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.13.0 |
| Dependencies | 7 |
| Unpacked size | 16.7 KB |
| Known vulnerabilities | 0 (+23 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Güner Yildirim |
| Maintainers | liltoto |

## Links

- npm: https://www.npmjs.com/package/gplate
- Repository: https://github.com/liltoto/GPlate
- Homepage: https://github.com/liltoto/GPlate#readme
- Issues: https://github.com/liltoto/GPlate/issues
- npm.io page: https://npm.io/package/gplate

## Dependencies (7)

- [chalk](https://npm.io/package/chalk.md) 2.4.2
- [js-yaml](https://npm.io/package/js-yaml.md) 3.13.1
- [fs-extra](https://npm.io/package/fs-extra.md) 8.1.0
- [inquirer](https://npm.io/package/inquirer.md) 7.0.0
- [commander](https://npm.io/package/commander.md) 3.0.2
- [handlebars](https://npm.io/package/handlebars.md) 4.4.3
- [@babel/polyfill](https://npm.io/package/@babel/polyfill.md) 7.6.0

## Recent versions

- 0.1.1 (latest) — 2019-10-11
- 0.1.0 — 2018-11-26
- 0.0.7 — 2018-11-25
- 0.0.6 — 2018-11-25
- 0.0.5 — 2018-11-25

## README

# GPlate

It's a tool for generating files and folder structure depending on your setup. See [example](https://github.com/liltoto/GPlate/tree/master/example).
Templates are created with handlebar.

## Important

Create gplate.yaml

```yaml
version: 1
task:
  - flags: -s --stateless
    description: Will generate a stateless React component
    files:
      - input: template/stateless.js
        output: index.js
      - input: template/jest.js
        output: index.test.js
      - input: template/storybook.js
        output: index.stories.js
      - input: template/styles.js
        output: styles.js
        require: radium
    options:
      - radium
      - flow
    default:
      - flow: true
  - flags: -c --class
    description: Will generate a React PureComponent
    files:
      - input: template/class.js
        output: index.js
      - input: template/jest.js
        output: index.test.js
      - input: template/storybook.js
        output: index.stories.js
    options:
      - radium
      - flow
    default:
      - flow: true
      - radium: false
  - flags: -j --jest
    description: Will generate a standard jest file
    files:
      - input: template/jest.js
        output: index.test.js
```

\
Run command `gplate -h` output:

```
Usage: gplate [options]

Options:
  -v --version                  output the version number
  -p, --path <s>                The path of the folder(s) you want to create which contains the files
  -s --stateless [radium,flow]  Will generate a stateless React component (default: [{"flow":true}])
  -c --class [radium,flow]      Will generate a React PureComponent (default: [{"flow":true},{"radium":false}])
  -j --jest                     Will generate a standard jest file
  -h, --help                    output usage information
```

\
Example off command `gplate -p Components/Hello -s radium`

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