Socket
Socket
Sign inDemoInstall

broccoli-dependency-funnel

Package Overview
Dependencies
38
Maintainers
4
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-dependency-funnel

Funnels a set of files included (or excluded) from a JS dependency graph


Version published
Maintainers
4
Weekly downloads
9,062
decreased by-11.09%
Install size
4.01 MB

Weekly downloads

Readme

Source

broccoli-dependency-funnel

Build Status Build Status

This Broccoli plugin funnels a set of files included (or excluded) from a JS dependency graph.

In other words, you specify an ES6 module as an entry point and the plugin will walk its import graph and only copy-forward the files included in the graph. Alternatively, you can copy forward all files except those in the graph.

Usage

const DependencyFunnel = require('broccoli-dependency-funnel');
const input = 'src'; // Can be a directory or Broccoli plugin/node

module.exports = new DependencyFunnel(input, {
  include: true,
  entry: 'app.js',
  external: [ 'lodash' ]
});

Options

  • include / exclude: you must specify exactly one of these options set to true. This determines whether the files included in the dependency graph or the files excluded from the dependency graph will be funneled forward.

  • entry: you must specify an entry point to the dependency graph you wish to funnel. This should be a string path relative the input directory/node.

  • external: an optional array of imports to be treated as external, meaning they aren't present in the given input directory structure.

Development

Installation

  • git clone <repository-url>
  • cd broccoli-dependency-funnel
  • npm install

Testing

  • npm run test or npm run test:debug

Keywords

FAQs

Last updated on 14 Sep 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc