Previously we used gulp to run our formatter, currently clang-format, across our repository. This new tool within ng-dev allows us to migrate away from our gulp based solution as our gulp solution had issue with memory pressure and would cause OOM errors with too large of change sets. PR Close #36726
25 lines
892 B
JavaScript
25 lines
892 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';
|
|
|
|
yargs.scriptName('ng-dev')
|
|
.demandCommand()
|
|
.recommendCommands()
|
|
.command('ts-circular-deps <command>', '', tsCircularDependenciesBuilder)
|
|
.command('pullapprove <command>', '', buildPullapproveParser)
|
|
.command('commit-message <command>', '', buildCommitMessageParser)
|
|
.command('format <command>', '', buildFormatParser)
|
|
.wrap(120)
|
|
.strict()
|
|
.parse();
|