gulp.js plugin for ngBoba
First, install gulp-replace
as a development dependency:
npm install --save-dev macro1/gulp-ng-boba
Then, add it to your gulpfile.js
:
var ngBoba = require('gulp-ng-boba');
gulp.task('app-boba', function(){
gulp.src(['js/**/*.js'])
.pipe(ngBoba("app.boba.json", {
verbose: true,
dependencies: [
'lib/angular-1.3.0.js'
],
modules: ['app']
}))
.pipe(gulp.dest('build/'));
});
gulp-ng-boba should be called with a destination file and configuration.
Type: String
The file to save the ngBoba source configuration to.
Type: Object
Configuration to pass to ngBoba. options.file
is configured by the
gulp.js stream, do not configure it when using this gulp plugin.