# gulp-react-rails-style

> Gulp plugin to process React on Rails compiled components to one or multiple CSS stylesheets.

Latest version **0.1.0** (published 2014-10-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-react-rails-style
pnpm add gulp-react-rails-style
yarn add gulp-react-rails-style
bun add gulp-react-rails-style
```

## 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 | 2014-10-07 |
| First published | 2014-10-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+4 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Elie Rotenberg |
| Maintainers | elie.rotenberg |
| Keywords | react, react-rails, gulpplugin, css |

## Links

- npm: https://www.npmjs.com/package/gulp-react-rails-style
- Repository: git@github.com:elierotenberg/gulp-react-rails-style
- Homepage: https://github.com/elierotenberg/gulp-react-rails-style
- Issues: https://github.com/elierotenberg/gulp-react-rails-style/issues
- npm.io page: https://npm.io/package/gulp-react-rails-style

## Dependencies (3)

- [lodash](https://npm.io/package/lodash.md) ^2.4.1
- [through2](https://npm.io/package/through2.md) ^0.6.2
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2014-10-07
- 0.0.4 — 2014-10-03
- 0.0.3 — 2014-10-03
- 0.0.2 — 2014-10-03

## README

gulp-react-rails-style
======================

`gulp` plugin to statically process React on Rails components into CSS files.

Usage
=====

```js
var gulp = require("gulp");
var R = require("react-rails");
var style = require("gulp-react-rails-style")(R, [R.Style.Processors.autoprefixer, R.Style.Processors.min]);

gulp.task("style", function() {
    return gulp.src(["tests/**/*.js"])
    .pipe(style())
    .pipe(gulp.dest("tests/"));
});
```


There is an optional argument, `cachebust`, which allows to clear the `require` cache for a specific module path.
It is useful when used in conjunction with `gulp.watch`.
Assume all your components depend on a `dist/styles` module which contains your color swatches, etc.
Then use:
```js
gulp.task("style", function() {
    return gulp.src(["test/**/*.js"])
    .pipe(style("dist/styles"))
    .pipe(gulp.dest("tests/"));
});
...
gulp.watch("tests/**/*.js", ["style"]);
```

`cachebust` can be `null` (default), a string, or on array of strings.

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