gulp-framework-dep
v0.1.2
Published
dynamic framework bower dependencies injections
Downloads
5
Maintainers
Readme
gulp-framework-dep
Configurable dynamic install framework Bower dependencies.
gulp-framework-dep is the improved and arbitrary version of gulp-angular-dep.
Usage
First, install gulp-framework-dep
as a development dependency:
npm install --save gulp-framework-dep
Then, add it to your gulpfile.js
:
var gulp = require('gulp');
var frameworkDep = require('gulp-framework-dep');
gulp.task('default', function() {
return frameworkDep({
framework: 'angular' // or backbone or ember or any up to you!
})
.pipe(gulp.dest('lib/'))
});
This defaults to the directory configured in ./.bowerrc
or to ./bower_components
when no .bowerrc
could be found.
You can also pass a config Object with all these optional parameters to gulp-framework-dep:
var gulp = require('gulp');
var frameworkDep = require('gulp-framework-dep');
gulp.task('default', function() {
return frameworkDep({
// any framework in your project you depend on
framework: 'mvc-sample'
//path to .bowerrc
cwd: './',
//bower folders where to pick files
directory: './bower_components',
//pick minified version from bower folders
minified: true,
//exclude files from stream
exclude: ['arg1','arg2','arg3', .....]
//include files in stream (such as external libraries)
include: ['arg1','arg2','arg3', .....]
})
.pipe(gulp.dest('path/'))
});
Changelog
#####0.1.3
- updated reference
#####0.1.2
- exclude bug fixed
#####0.1.0
- include feature 'include' for adding external non-related libraries
#####0.0.1
- initial release