re-define-include-external

0.4.1 • Public • Published

re-define-include-external

re-define plugin for finding external files, outside the scope of the project.

Usage:

var findExternal = require('re-define-include-external')({
    external     : {"lodash":"./vendor/lodash.js"}
  , discoverable : ['node_modules', 'bower_component']
  , descriptors  : ['package.json', 'bower.json']
  , skip         : ['module_name'] //do not load these modules and treat as external
  , exclude      : ['module_name'] //exclude external dep from template
 
  //you can also specify your custom location using callbacks for descriptors and files
  , descriptorLocations: function(file, config) {}
  , fileLocations: function(file, config) {}
 
  //to merge your custom paths with default ones to create uber set, you can use defaults
  fileLocations: function(file, config) {
    return findExternal.defaults.fileLocations(file.config).concat(['your custom array of paths'])
  }
 
  })

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.4.1969latest

Version History

VersionDownloads (Last 7 Days)Published
0.4.1969
0.4.00
0.3.50
0.3.40
0.3.30
0.3.20
0.3.10
0.3.00
0.2.120
0.2.110
0.2.100
0.2.91
0.2.81
0.2.71
0.2.62
0.2.51
0.2.41
0.2.31
0.2.21
0.2.11
0.2.01
0.1.70
0.1.60
0.1.50
0.1.41
0.1.30
0.1.20
0.1.10
0.1.01
0.0.30
0.0.20
0.0.10
0.0.00

Package Sidebar

Install

npm i re-define-include-external

Weekly Downloads

57

Version

0.4.1

License

MIT

Last publish

Collaborators

  • damianbaar