gulp-externs
v0.0.11
Published
Externs-Extractor for gulp
Downloads
1
Readme
Gulp-Externs
Externs-Extractor for gulp
Parses interfaces and generates externs file for Closure Compiler.
gulpfile.js
var gulp = require('gulp');
var externs = require('gulp-externs');
gulp.task('externs', function() {
gulp.src('./bin/index.js')
.pipe(externs.extract())
.pipe(gulp.dest('./externs'))
});
In this example Externs-Extractor will generate externs file ./externs/index.js
from ./bin/index.js