Write gulp-rev manifest.json that is Rails assets helper compatible
CoffeeScript JavaScript CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
fixtures
.gitignore
.travis.yml
LICENSE
README.md
enable-power-assert.js
index.coffee
index.js
package.json
test.coffee

README.md

gulp-rev-rails-manifest

Build Status

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

Install

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

Usage

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
});