* Prints a useful help message prior to the amp dist task * * @param {!Object} options
(options)
| 62 | * @param {!Object} options |
| 63 | */ |
| 64 | function 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. |
no test coverage detected