Skip to content
This repository has been archived by the owner on Apr 16, 2019. It is now read-only.

Broccoli plugin for obtaining files that use a particular module system

License

Notifications You must be signed in to change notification settings

formatjs/broccoli-js-module-formats

Repository files navigation

broccoli-js-module-formats

Build Status Dependency Status NPM version

Broccoli plugin for obtaining files that use a particular module system.

Limitations

ES modules without import or export statements will not be detected.

API

pickModules(inputTree, options)

Generates a JSON file with the dependency information for all the files in the inputTree. Options:

  • type: Required. Module format to filter files by. Any of cjs, amd, es or yui.

Example

var pickModules = require('broccoli-js-module-formats');

var es6Modules = pickModules('./src/', {
    type: 'es'
});

License

This software is free to use under the Yahoo Inc. BSD license. See the LICENSE file for license text and copyright information.

Contribute

See the CONTRIBUTING file for info.

About

Broccoli plugin for obtaining files that use a particular module system

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages