@cley_faye/boilerplate 3.2.1 → 3.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/grunt/args.d.ts +4 -0
- package/lib/grunt/args.js +3 -2
- package/package.json +1 -1
package/README.md
CHANGED
package/lib/grunt/args.d.ts
CHANGED
|
@@ -66,6 +66,10 @@ export declare type OptionDefinition = OptionDefinitionString | OptionDefinition
|
|
|
66
66
|
* Expected options from command line
|
|
67
67
|
*/
|
|
68
68
|
export declare type ConfigDefinition = Record<string, OptionDefinition>;
|
|
69
|
+
/**
|
|
70
|
+
* Display help to the user
|
|
71
|
+
*/
|
|
72
|
+
export declare const displayHelp: (configDef: ConfigDefinition) => void;
|
|
69
73
|
/**
|
|
70
74
|
* Construct the full config object from command line values.
|
|
71
75
|
*
|
package/lib/grunt/args.js
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
*/
|
|
27
27
|
"use strict";
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.getOptionsFromGruntCLI = exports.OptType = void 0;
|
|
29
|
+
exports.getOptionsFromGruntCLI = exports.displayHelp = exports.OptType = void 0;
|
|
30
30
|
const util_js_1 = require("../util.js");
|
|
31
31
|
// eslint-disable-next-line no-shadow
|
|
32
32
|
var OptType;
|
|
@@ -125,6 +125,7 @@ const displayHelp = (configDef) => {
|
|
|
125
125
|
outputHelp("Accepted command line arguments:");
|
|
126
126
|
Object.keys(configDef).forEach(configKey => displayHelpForConfigKey(configKey, configDef[configKey]));
|
|
127
127
|
};
|
|
128
|
+
exports.displayHelp = displayHelp;
|
|
128
129
|
/**
|
|
129
130
|
* Construct the full config object from command line values.
|
|
130
131
|
*
|
|
@@ -132,7 +133,7 @@ const displayHelp = (configDef) => {
|
|
|
132
133
|
*/
|
|
133
134
|
const getOptionsFromGruntCLI = (optionProvider, configDef) => {
|
|
134
135
|
if (getFromOptionProvider("help", optionProvider) === true) {
|
|
135
|
-
displayHelp(configDef);
|
|
136
|
+
(0, exports.displayHelp)(configDef);
|
|
136
137
|
return null;
|
|
137
138
|
}
|
|
138
139
|
const result = {};
|