npx eunice --reverseFileContent=false
npx eunice --stack-file-content=true
Files and sub-directories with names that start with a "." or are named node_modules are ignored by default.
A regular expression can be specified to override the default:
npx eunice --ignore-path-pattern="(^|/)(\..*|node_modules)$"
The forward slash character is converted to an escaped backslash when backslash is the path segment separator.
All non-conflicting Babel parser plugins and the TypeScript plugin (conflicts with Flow) are enabled by default. To override the default plugins:
Only the current directory is included in analysis by default. Multiple sources of analysis can be specified:
By default files with the .js extension are analysed. The default can be replaced or amended (extensions must be prefixed with .):
Eunice will infer stacks when none are implied or defined. By default this is enabled, but can be disable with:
When multiple sources of analysis are specified (see source directories), a directory of stack files (.eunice-stack.yaml) can be applied to the combined sources:
A stack file can be specified that will be used to modify the structure of all stacks. It only modifies and does not add new items.
Optionally a key and regular expression pattern can also be specified to restrict which items have their stacks modified. For example to only modify items that are in files:
Item identifiers can be specified so dependencies resolve to their children even though the items weren't specified in the dependency. For example, sub-directories such as, node_modules or src in a mono-repository.
Identifiers for a parent root items can also be specified for each source directory (see source directories):
For additional output files of SVG or YAML:
To name the output files differently or in a different directory:
To disable the default output file of HTML:
Packages installed in the node_modules directory are not analysed by default (see ignore paths). They can included using the "directories" option above or with:
To aid readability a package prefix and scope can also be specified that will not be included in the output:
// e.g. @scope/prefix-package