gulp-dependency-visualizer

0.2.0 • Public • Published

gulp-dependency-visualizer

Build Status NPM version Dependency Status devDependency Status

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

Readme

Keywords

none

Package Sidebar

Install

npm i gulp-dependency-visualizer

Weekly Downloads

2

Version

0.2.0

License

MIT

Last publish

Collaborators

  • 1000ch