Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/joker1007/gulp-rev-rails-manifest

Write gulp-rev manifest.json that is Rails assets helper compatible
https://github.com/joker1007/gulp-rev-rails-manifest

Last synced: 2 days ago
JSON representation

Write gulp-rev manifest.json that is Rails assets helper compatible

Awesome Lists containing this project

README

        

# [gulp](https://github.com/wearefractal/gulp)-rev-rails-manifest
[![Build Status](https://travis-ci.org/joker1007/gulp-rev-rails-manifest.svg?branch=master)](https://travis-ci.org/joker1007/gulp-rev-rails-manifest)

Write [gulp-rev](https://github.com/sindresorhus/gulp-rev "sindresorhus/gulp-rev") manifest.json that is Rails assets helper compatible

## Install

```bash
$ npm install --save-dev gulp-rev-rails-manifest
```

## Usage

```js
var gulp = require('gulp');
var rev = require('gulp-rev');
var manifest = require('gulp-rev-rails-manifest');

gulp.task('default', function () {
return gulp.src(['assets/css/*.css', 'assets/js/*.js'], {base: 'assets'})
.pipe(rev())
.pipe(gulp.dest('build/assets')) // write rev'd assets to build dir
.pipe(manifest())
.pipe(gulp.dest('build/assets')); // write manifest to build dir
});
```