Skip to content

Get the app entry points defined in a config or found within a directory

Notifications You must be signed in to change notification settings

dependents/node-get-driver-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

get-driver-scripts npm npm

Gets the entry point filepaths to an application from a build configuration or by finding them about a directory.

npm install get-driver-scripts

Usage

var getDrivers = require('get-driver-scripts');

getDrivers({
  directory: 'path/to/my/js',
  success: function(err, drivers) {

  }
})
Optional properties:
  • exclusions: a list of (sub)directory names to exclude from the search
  • buildConfig: a RequireJS build configuration that contains a list of modules
  • This config will be parsed and you'll get back the filepaths of those modules
  • config: a RequireJS configuration that lists aliased paths.
  • This is necessary when you don't supply a build config and want the plugin to find all of the driver scripts.
  • Aliased paths need to be resolved to real filepaths during the search

About

Get the app entry points defined in a config or found within a directory

Resources

Stars

Watchers

Forks

Packages

No packages published