live-locator
v0.0.4
Published
> Find modules containing Live plugins (`live*.js` files) of a specific type.
Downloads
6
Readme
live-locator
Find modules containing Live plugins (
live*.js
files) of a specific type.
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.
Preferences > Appearance & Behaviour > Scopes
- Create a new scope with the
Pattern
:file:(modules||node_modules)/**/live.*js
Add other search paths added in the config. See https://www.jetbrains.com/idea/help/scope-language-syntax-reference.html