Giter VIP home page Giter VIP logo

gulp-archy's Introduction

gulp-archy

NPM

Gulp plugin to pretty print files list inside gulp stream in a tree-structure for better debug

It's just gulp wrapper for archy

The usual way to list files from the stream:

gulp
    .src(['test/**/*'])
    .on(
        'data',
        function(file){
            console.log(file.path);
        }
    );

Ugly list

test/a
test/k
test/a/b
test/a/d
test/a/e
test/a/file.css
test/a/file.html
test/k/v
test/a/b/c
test/a/d/file.css
test/a/e/file.html
test/k/v/file-1.js
test/k/v/file-2.js
test/k/v/file-3.js
test/k/v/file.js
test/a/b/c/file.js

Pretty print

gulp
    .src(['**/*'])
    .pipe(archy(options));

The tree

root
└─┬ test
  ├─┬ a
  │ ├─┬ b
  │ │ └─┬ c
  │ │   └── file.js
  │ ├─┬ d
  │ │ └── file.css
  │ ├─┬ e
  │ │ └── file.html
  │ ├── file.css
  │ └── file.html
  └─┬ k
    └─┬ v
      ├── file-1.js
      ├── file-2.js
      ├── file-3.js
      └── file.js

Options

  • label - replace process.cwd() in paths with given value (default 'root')
  • callback - for further results processing (default console.log)
  • prefix - prefix for archy
  • opts - options for archy

License

MIT Copyright (c) 2014-2015 Yandex, LLC. http://yandex.com Copyright (c) 2014-2015 Anton Kirshanov, [email protected]

gulp-archy's People

Contributors

maetchkin avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

vitaly-z

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.