node package manager
Stop writing boring code. Discover, share, and reuse within your team. Create a free org »

sre-gulp-rjs

gulp-rjs NPM version

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

License

MIT License