enricolucia/gulp-framework-dep

View on GitHub
README.md

Summary

Maintainability
Test Coverage
# gulp-framework-dep [![Code Climate](https://codeclimate.com/github/enricolucia/gulp-framework-dep/badges/gpa.svg)](https://codeclimate.com/github/enricolucia/gulp-framework-dep) [![npm version](https://badge.fury.io/js/gulp-framework-dep.svg)](http://badge.fury.io/js/gulp-framework-dep)

[![Join the chat at https://gitter.im/enricolucia/gulp-framework-dep](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/enricolucia/gulp-framework-dep?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
> 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:

```shell
npm install --save gulp-framework-dep
```

Then, add it to your `gulpfile.js`:

```javascript
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:

```javascript
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