This is alternative for PR #18, which I ended up writing before noticing that there already existed a PR for such a feature.
Main differences from PR #18:
Defaulted to searching through all .js and .rb files, which should work for most users. It might not be fastest, in which case a more specific path can be configured.
Configuration lives in a separate file.
Different name for the setting. PR #18 uses step_path, while this PR uses searchPaths which I think better follows JS convention of using camelCase and is also in plural, hinting that it's an array.
Hard-coded 'cucumber-step.searchPaths' v/s pkg.name + '.step_path' in PR #18.
Perhaps there is something to include from both PR-s.
I think the important question is how to best name this, and what would be the good default values so it would work well out of the box for most users.
This is alternative for PR #18, which I ended up writing before noticing that there already existed a PR for such a feature.
Main differences from PR #18:
step_path
, while this PR usessearchPaths
which I think better follows JS convention of using camelCase and is also in plural, hinting that it's an array.'cucumber-step.searchPaths'
v/spkg.name + '.step_path'
in PR #18.Perhaps there is something to include from both PR-s.
I think the important question is how to best name this, and what would be the good default values so it would work well out of the box for most users.