# rnautomate

> rnautomate CLI

Latest version **1.2.2** (published 2020-06-14) · MIT license · 0 weekly downloads

## Install

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

Provides the command `rnautomate`.

## 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.2.2 |
| Published | 2020-06-14 |
| First published | 2020-05-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | migw03 |

## Links

- npm: https://www.npmjs.com/package/rnautomate
- npm.io page: https://npm.io/package/rnautomate

## Dependencies (1)

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

## Recent versions

- 1.2.2 (latest) — 2020-06-14
- 1.2.1 — 2020-06-14
- 1.2.0 — 2020-06-14
- 1.0.1 — 2020-05-21
- 0.0.2 — 2020-05-21
- 1.1.1 — 2020-05-21
- 1.1.0 — 2020-05-21
- 0.0.1 — 2020-05-21

## README

# rnautomate CLI

CLI to automate some commom tasks in React Native

using rnautomate you can create pages or components automatically

## Commmands

#### rnautomate create:page <Page Name>

Create a page inside src/pages with the template
You can create how many pages you want, by passing the names, for example:

```bash
    rnautomate create:page <Page 1> <Page 2> <Page 3>
```

#### rnautomate create:component <Component Name>

Create a component inside src/components with the template
You can create how many components you want, by passing the names, for example:

```bash
    rnautomate create:page <Component 1> <Component 2> <Component 3>
```

### Template

The template used to create the pages and the components:

```javascript
import React, { useState } from 'react'
import {
  StyleSheet,
  Text,
  View,
  TouchableOpacity,
  Alert,
  StatusBar
} from 'react-native'

export default function <%= props.name %>() {
  return (
    <View style={styles.container}>
      <Text><%= props.name %></Text>
    </View>
  )
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    alignItems: 'center',
    justifyContent: 'center'
  }
})
```

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