# react-native-coffee

> Non-boilerplate Coffeescript for React Native apps

Latest version **1.0.1** (published 2016-12-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-native-coffee
pnpm add react-native-coffee
yarn add react-native-coffee
bun add react-native-coffee
```

## 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.1 |
| Published | 2016-12-15 |
| First published | 2016-12-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sean Scally |
| Maintainers | scally |

## Links

- npm: https://www.npmjs.com/package/react-native-coffee
- npm.io page: https://npm.io/package/react-native-coffee

## Dependencies (6)

- [gulp](https://npm.io/package/gulp.md) ^3.9.1
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.7
- [gulp-coffee](https://npm.io/package/gulp-coffee.md) ^2.3.3
- [gulp-rename](https://npm.io/package/gulp-rename.md) ^1.2.2
- [gulp-plumber](https://npm.io/package/gulp-plumber.md) ^1.1.0
- [coffee-script](https://npm.io/package/coffee-script.md) ^1.12.1

## Recent versions

- 1.0.1 (latest) — 2016-12-15
- 1.0.0 — 2016-12-15

## README

# react-native-coffee

### Setup

1. Install dependencies via npm:

  ```bash
  npm i --save-dev gulp react-native-coffee

  ```

2. Create a Gulpfile.coffee

  ```coffeescript
  gulp = require 'gulp'
  require 'react-native-coffee'

  gulp.task 'default', ['watch']
  ```

3. Delete index.ios.js

4. Create index.ios.coffee. Put your app in there.

5. Run `gulp` to bootstrap your compilation.

6. From now on, after you run `react-native run-ios`, run `gulp`. Coffeescript should ensue each time you make a change to your `.coffee` files.

### Why

Most approaches to adding Coffeescript to React Native require you to do some kind of boilerplate setup where you clone someone's project and then make your modifications to that.

This approach has some drawbacks, including:

- clunky to change lots of minor things that the boilerplate includes (source control bindings, authors, project names)
- difficult to update/upgrade as upstream dependencies change

This package makes it a litle simpler to add turnkey coffeescript compilation to a React Native project, assuming you don't want to modify the build process much.

Thanks to [ReactNativeCoffee](https://github.com/diegodurli/ReactNativeCoffee) for inspiration/code samples

### Todo

-  Add support for Android

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