1.0.0-alpha.2 • Published 4 years ago
hunt-affected-cli v1.0.0-alpha.2
hunt-affected-cli
The CLI for detecting where your file exports are used and potentially afffected by it's changes.
Based on hunt-affected with limited support.
Quick starting
Install globally via npm:
npm i hunt-affected -gAnd run the script under your source code path:
hunt-affected <entryFile> [*|[export1[,export2[,exports]]]]Options
--source
All the .js files will be scanned under the script running path by default. You may change this by --source=<glob> option, e.g.:
hunt-affected myFile.js default --source=src/*.js--parser-plugins
As hunt-affected is using @babel/parser to parse JS files, you may need to take care of the parser configurations. So far it only supports passing plugin option.
Following plugins are enabled on .js|.jsx|.ts|.tsx files by default:
dynamicImportclassPropertiesflowCommentsobjectRestSpreadfunctionBindjsxflow(.js and .jsx only)typescript(.ts and .tsx only)
1.0.0-alpha.2
4 years ago
1.0.0-alpha.1
6 years ago