gulp-rjs
v0.1.0
Published
A gulp interface to r.js
Downloads
30
Readme
gulp-rjs
r.js optimizer plugin for gulp
Usage
First, install gulp-rjs
as a development dependency:
npm install --save-dev gulp-rjs
Then, use it in your gulpfile.js
:
var rjs = require("gulp-rjs");
gulp.src('app/scripts/*.js')
.pipe(gulp.dest('./dist/scripts'))
.pipe(rjs({baseUrl:'dist/scripts'}))
CoffeeScript pipeline example:
var rjs = require("gulp-rjs");
gulp.src('app/scripts/*.coffee')
.pipe(coffee().on('error', gutil.log))
.pipe(gulp.dest('./dist/scripts'))
.pipe(rjs({baseUrl:'dist/scripts'}))