Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/joker1007/gulp-rev-rails-manifest
- Owner: joker1007
- License: mit
- Created: 2014-09-16T19:07:13.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-07-23T06:25:19.000Z (over 9 years ago)
- Last Synced: 2024-10-06T15:09:15.436Z (about 1 month ago)
- Language: CoffeeScript
- Homepage:
- Size: 143 KB
- Stars: 25
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
});
```