build: add github config for ng-dev configuration (#37097)
Adds the gitub configuration to the ng-dev configuration. This github configuration provides information needed for making API requests to github. Upcoming tooling related PRs will require these API requests being possible. PR Close #37097
This commit is contained in:
parent
20d377c11b
commit
564ca9e8ec
|
@ -72,8 +72,15 @@ const format = {
|
|||
'buildifier': true
|
||||
};
|
||||
|
||||
// Github metadata information for `ng-dev` commands.
|
||||
const github = {
|
||||
owner: 'angular',
|
||||
name: 'angular',
|
||||
};
|
||||
|
||||
// Export function to build ng-dev configuration object.
|
||||
module.exports = {
|
||||
commitMessage,
|
||||
format,
|
||||
github,
|
||||
};
|
||||
|
|
|
@ -11,10 +11,10 @@ import {exec} from 'shelljs';
|
|||
|
||||
/** The common configuration for ng-dev. */
|
||||
type CommonConfig = {
|
||||
// Github repository configuration used for API Requests, determining upstream remote, etc.
|
||||
/* Github repository configuration used for API Requests, determining upstream remote, etc. */
|
||||
github: {
|
||||
owner: string;
|
||||
name: string;
|
||||
owner: string,
|
||||
name: string,
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -24,8 +24,10 @@ type CommonConfig = {
|
|||
*/
|
||||
export type NgDevConfig<T = {}> = CommonConfig&T;
|
||||
|
||||
// The filename expected for creating the ng-dev config, without the file
|
||||
// extension to allow either a typescript or javascript file to be used.
|
||||
/**
|
||||
* The filename expected for creating the ng-dev config, without the file
|
||||
* extension to allow either a typescript or javascript file to be used.
|
||||
*/
|
||||
const CONFIG_FILE_NAME = '.ng-dev-config';
|
||||
|
||||
/** The configuration for ng-dev. */
|
||||
|
|
Loading…
Reference in New Issue