0.0.4 • Published 9 years ago

live-locator v0.0.4

Weekly downloads
12
License
MIT
Repository
-
Last release
9 years ago

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