JSPM

collect-js-deps

0.1.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1449
  • Score
    100M100P100Q116833F
  • License Apache-2.0

Collect the minimal list of dependencies required by a JS file.

Package Exports

  • collect-js-deps
  • collect-js-deps/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (collect-js-deps) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

collect-js-deps

Build Status npm version

Collect the minimal list of dependencies required by a JS file.

This module allows you to examine all dependencies of your Javascript project, and collect or list just those files that it relies on. It uses Browserify, and supports transforms (incuding tsify to compile TypeScript) to produce transformed or compiled files as output.

Installation

npm install --save-dev collect-js-deps

Usage

$(npm bin)/collect-js-deps --outdir <path> [--list] [browserify_options] <entry_files...>