0.2.0 • Published 8 years ago
gulp-dependency-visualizer v0.2.0
gulp-dependency-visualizer
Install
$ npm install --save-dev gulp-dependency-visualizer
Usage
Example gulpfile.js
.
var gulp = require('gulp');
var Visualizer = require('gulp-dependency-visualizer');
gulp.task('visualizer', function () {
gulp.src('./fixtures/*.js')
.pipe(Visualizer());
});
gulp.task('default', ['visualizer']);
You have to add dependency definition to target JavaScript files such as following.
bar.js
//@depend baz.js
function Bar() {
this.message = 'bar';
}
Bar.prototype.echo = function () {
console.log(this.message);
};
baz.js
function Baz() {
this.message = 'baz';
}
Baz.prototype.echo = function () {
console.log(this.message);
};
To see detail, check https://github.com/ysugimoto/js-dependency-visualizer .
License
MIT