MCPcopy
hub / github.com/ampproject/amphtml / printDistHelp

Function printDistHelp

build-system/tasks/dist.js:64–82  ·  view source on GitHub ↗

* Prints a useful help message prior to the amp dist task * * @param {!Object} options

(options)

Source from the content-addressed store, hash-verified

62 * @param {!Object} options
63 */
64function printDistHelp(options) {
65 if (argv.sanitize_vars_for_diff && !argv.pseudo_names) {
66 throw new Error('--sanitize_vars_for_diff requires --pseudo_names');
67 }
68
69 let cmd = 'amp dist';
70 if (options.fortesting) {
71 cmd = cmd + ' --fortesting';
72 }
73 printConfigHelp(cmd);
74 parseExtensionFlags();
75 if (argv.define_experiment_constant) {
76 log(
77 green('Enabling the'),
78 cyan(argv.define_experiment_constant),
79 green('experiment.')
80 );
81 }
82}
83
84/**
85 * Perform the prerequisite steps before starting the minified build.

Callers 1

distFunction · 0.85

Calls 5

printConfigHelpFunction · 0.85
parseExtensionFlagsFunction · 0.85
greenFunction · 0.85
cyanFunction · 0.85
logFunction · 0.50

Tested by

no test coverage detected