Use any editor, master any codebase
Currently supports JavaScript (AMD, CommonJS, and ES6) and CSS Preprocessor (Sass and Stylus) codebases.
You must have Node.js installed on your system. Anything v0.10 and above is fine.
PATH
variable but you must reboot to reload it.If you have issues with running Node.js from within the package see the node_path
setting under configuring settings below.
node_path
.deprc
shared with a team, consider not committing node_path
changes (as it’s only for your machine).
git update-index --assume-unchanged .deprc
to ignore changes
git update-index --no-assume-unchanged .deprc
to track changes againPut a .deprc
file in the root directory of your project. See below for all possible settings.
At a minimum, you must specify a root
or styles_root
.
{
"root": "path/to/all/js/files",
"styles_root": "path/to/my/stylesheets",
"require_config": "path/to/my/requirejs/config.js",
"build_config": "path/to/requirejs/build.json",
"webpack_config": "path/to/my/webpack.config.js",
"exclude": ["jquery.js", "require.js", "vendor"]
}
'./'
.deprc
file there too with the reduced/correct relative paths.node_path
: (Optional) path to your node installation.
PATH
environment variable should preclude having to use this but for unusual cases we provide this setting.
/usr/local/bin
is install path on OSX and Linux.PATH
is set during by the Node.js installer (be sure to reboot).root
: the ultimate/root path at which to limit JS dependent searching.config
: (Optional) the path to your RequireJS configuration filewebpack_config
: (Optional) the path to your webpack configuration fileexclude
: (Optional) a list of paths and/or folder names to exclude from the search for dependents
node_modules
, bower_components
, vendor
build_config
: (Optional) path to your RequireJS build configuration file
styles_root
: the ultimate/root path for your stylesheets.
There are four ways to trigger the package’s commands
File → Dependents
Right click → Dependents
Quickly jump to a file that the current file @imports (sass/stylus) or requires (js)
Jump to dependency
command in one of the four ways noted above.For JavaScript if a dependency is aliased, you’ll need to supply the path to your requirejs or webpack configuration
Dependents are files that immediately depend/require/import the current file.
Trigger the Find dependents
command in one of the four ways noted above.
You can also open all of the dependents at once:
Dependents → Open all dependents
to open all dependent files in the editorFind relevant application entry points that depend on the current file somewhere within their dependency tree
Dependents → Find relevant app entry points
You can also open all relevant app entry points at once via:
Dependents → Open all relevant app entry points
View a snapshot of the current file’s dependency tree (as a JSON file)
Dependents → View this file's dependency tree
Copy the rootless path of the current module to the clipboard. (JS and Sass)
For example, if the root is assets/js
and the filename is path/to/assets/js/myFeature/file.js
,
then the command will copy myFeature/file
to the clipboard.
This is useful when you want to include the current module as a dependency of another module.
Dependents → Copy path to the clipboard
Or via its key binding. Please check with your editor integration of Dependents for key bindings.
Feel free to chat with me on Gitter if you need help or ping me @mrjoelkemp.