1.2.0 • Published 9 years ago
gulp-aspnet-deps v1.2.0
gulp-aspnet-deps
A gulp plugin that helps with processing client side resources when working with MR.AspNet.Deps
.
Usage
var deps = require('gulp-aspnet-deps').init(require('./deps.json'));
// An example with minification of js.
gulp.task('min:js', function () {
return deps.process('js', function (bundle) {
return gulp.src(bundle.src)
.pipe(concat(path.join(bundle.dest, bundle.name + '.js')))
.pipe(uglify())
.pipe(gulp.dest('.'));
});
});
deps.process
takes a section from the deps.json
file and a function that will be called with a bundle object and the files with their full paths so you can directly call gulp.src
on them.
The bundle
object you get in the callback of the process
function will have the dest
and the src
properties resolved and normalized relative to config.base
in deps.json
so you can use them in your gulpfile.
Utils you can use
deps.makeAbsolutePath
: takes a path and returns the absolute path relative toconfig.base
.deps.makeAbsoluteFiles
: takes a bundle and returns the absolute files relative toconfig.base
.
1.2.0
9 years ago
1.1.0
9 years ago
1.0.0
9 years ago
1.0.0-rc4
9 years ago
1.0.0-rc3
9 years ago
1.0.0-rc2
9 years ago
1.0.0-rc1
9 years ago
1.0.0-beta5
9 years ago
1.0.0-beta4
9 years ago
1.0.0-beta3
9 years ago
1.0.0-beta2
9 years ago
1.0.0-beta1
9 years ago