options/checkoutdated.js: grunt-check-outdated
- grunt-check-outdated/options/checkoutdated
- .getCheckOutdatedPath(grunt) ⇒
string - .getChkOutdatedOptions() ⇒
object - .getChkOutdatedIgnoreOptions() ⇒
object - .getOptions() ⇒
Object - .getTaskOptions(task) ⇒
Object - .toArgs(grunt, task, [options]) ⇒
Promise.<Object>
- .getCheckOutdatedPath(grunt) ⇒
Returns the path to the check-outdated
Returns: string - path to check-outdated
| Param | Type |
|---|---|
| grunt | grunt |
Returns default settings for basic check-outdated options.
Returns: object - default settings for basic check-outdated options.
Returns default settings for basic check-outdated ignore options.
Returns: object - default settings for basic check-outdated ignore options.
Defines and returns the set of options that is passed to task 'check_outdated'.
Returns: Object - check_outdated default options
Returns grunt task specific options for 'check_outdated'.
Note:
- Default options and configuration options have already been merged.
- Array-valued options (notably
checkoutdated.columns) are treated as explicit overrides: If the user specifies an array in the task configuration, it fully replaces the corresponding default array.- This behavior is intentional and allows users to precisely control which columns are emitted, without implicit completion or merging.
Returns: Object - 'check_outdated' options for grunt task
| Param | Type |
|---|---|
| task | grunt.task |
Converts grunt task specific options for 'check_outdated' to an array of arguments for the check-outdated CLI.
Note:
- All values under
options.checkoutdated(columns, depth, global, preferwanted, ignore, opts) are passed as-is to the third-party toolcheckoutdated.- No validation of these values is performed here, because:
- Validating columns or other flags would require keeping in sync with
checkoutdatedversions, which is impractical.- The third-party tool is responsible for handling invalid inputs.
- Responsibility of
toArgsis only to consistently transform the merged task options into CLI arguments for the spawn call.
Returns: Promise.<Object> - resolves with { args, opts }
| Param | Type | Description |
|---|---|---|
| grunt | grunt |
|
| task | grunt.task |
|
| [options] | Object |
optional pre-merged task options |