Create a common environment stamping script in the ng-dev tooling as to be used in common release tasks. This is the first step in consolidating pieces of the release scripting process into a single location to develop a release tool. PR Close #36844
		
			
				
	
	
		
			27 lines
		
	
	
		
			1000 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			1000 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| #!/usr/bin/env node
 | |
| /**
 | |
|  * @license
 | |
|  * Copyright Google Inc. All Rights Reserved.
 | |
|  *
 | |
|  * Use of this source code is governed by an MIT-style license that can be
 | |
|  * found in the LICENSE file at https://angular.io/license
 | |
|  */
 | |
| import * as yargs from 'yargs';
 | |
| import {tsCircularDependenciesBuilder} from './ts-circular-dependencies/index';
 | |
| import {buildPullapproveParser} from './pullapprove/cli';
 | |
| import {buildCommitMessageParser} from './commit-message/cli';
 | |
| import {buildFormatParser} from './format/cli';
 | |
| import {buildReleaseParser} from './release/cli';
 | |
| 
 | |
| yargs.scriptName('ng-dev')
 | |
|     .demandCommand()
 | |
|     .recommendCommands()
 | |
|     .command('commit-message <command>', '', buildCommitMessageParser)
 | |
|     .command('format <command>', '', buildFormatParser)
 | |
|     .command('pullapprove <command>', '', buildPullapproveParser)
 | |
|     .command('release <command>', '', buildReleaseParser)
 | |
|     .command('ts-circular-deps <command>', '', tsCircularDependenciesBuilder)
 | |
|     .wrap(120)
 | |
|     .strict()
 | |
|     .parse();
 |