Coder Social home page Coder Social logo

ls-deps's Introduction

ls-deps

A utility for displaying the dependency graph of modules in your project. It's like npm ls, but for client-side projects using StealJS.

Usage

> ls-deps --help

Get all dependencies of a project

Examples:
  ls-deps --config config app/app    Use config to get the dependencies for app/app


Options:
  --config    A module used to configure the loader           
  --base-url  The root folder used to load modules from       
  --depth     The depth of modules to show                      [default: 3]
  --inverse   Show all of the modules that are dependants on N
  --steal     A Steal based project                           
  --version   Show version number                             

Must provide a module to fetch dependencies for

Example

> ls-deps main

├─┬ foo
| ├── bar
| └─┬ baz
| | └── qux
└── bar

In the above example main is the main module and the dependencies listed are all chidren. Use --depth to control how deep we go; by default we go 3 levels deep.

Options

--config

Specifies a module that will act as configuration for the main module you'll load. This is optional and package.json will be used by default.

--base-url

Specifies a folder to act as the root folder for your project. It is equivalent to System.baseURL.

--depth

Specifies how deep to go in showing a module's dependencies. By default ls-deps uses a depth of 3, which means we'll show your module's dependencies and its dependencies.

--inverse

Inverse is a nice feature when you're trying find out what modules depend on a certain other module. To follow our example above, what if you wanted to know which modules depend on bar. By specifying the inverse option you can see all of bars dependants.

> ls-deps --inverse bar main

├─ foo
└─ qux

As shown above foo and qux depend on bar. I use this feature to see if my coworkers are requiring all of lodash instead of the individual module they need.

License

MIT

ls-deps's People

Contributors

matthewp avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

ls-deps's Issues

--reverse

This option will do the reverse of what is normal. Instead of showing a modules dependencies it will show all modules that are dependents.

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.