live-locator

0.0.4 • Public • Published

live-locator

Find modules containing Live plugins (live*.js files) of a specific type.

NPM Version Linux Build Test Coverage

Install

npm i -S live-locator

Usage

TODO

Options

modules
 - foo
   - live.js
   - live.browser.js
 - bar
   - live.js
   - live.routes.js
   - live.gulp.js
liveLocator({
  moduleDirectories: ['modules', 'node_modules'],
  suffixes: ['browser']
  // suffixes: ['', 'browser']
})
 
>>> [{moduleName: 'foo', modulePath: 'modules/foo', filePath: 'modules/foo/live.js', fileSuffix: 'browser'}]

JetBrains Webstorm/IntelliJ Tip

Scope

Create a Scope to allow filtering the Project Tool Window to only show live.js files.

This can be useful to debug Live app startup and the ordering of callbacks.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i live-locator

Weekly Downloads

6

Version

0.0.4

License

MIT

Last publish

Collaborators

  • vjpr