Skip to content

build: update ng-dev tool #23279

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .ng-dev/caretaker.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { CaretakerConfig } from '@angular/dev-infra-private/ng-dev';

/** The configuration for `ng-dev caretaker` commands. */
export const caretaker: CaretakerConfig = {
githubQueries: [
{
name: 'Merge Queue',
query: `is:pr is:open status:success label:"action: merge"`,
},
{
name: 'Merge Assistance Queue',
query: `is:pr is:open label:"action: merge-assistance"`,
},
],
caretakerGroup: 'angular-cli-caretaker',
};
2 changes: 1 addition & 1 deletion .ng-dev/commit-message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
COMMIT_TYPES,
CommitMessageConfig,
ScopeRequirement,
} from '@angular/dev-infra-private/ng-dev/commit-message/config';
} from '@angular/dev-infra-private/ng-dev';
import { packages } from '../lib/packages';

/**
Expand Down
3 changes: 2 additions & 1 deletion .ng-dev/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export { commitMessage } from './commit-message';
export { format } from './format';
export { github } from './github';
export { merge } from './merge';
export { pullRequest } from './pull-request';
export { release } from './release';
export { caretaker } from './caretaker';
2 changes: 1 addition & 1 deletion .ng-dev/format.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FormatConfig } from '@angular/dev-infra-private/ng-dev/format/config';
import { FormatConfig } from '@angular/dev-infra-private/ng-dev';

/**
* Configuration for the `ng-dev format` command.
Expand Down
2 changes: 1 addition & 1 deletion .ng-dev/github.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GithubConfig } from '@angular/dev-infra-private/ng-dev/utils/config';
import { GithubConfig } from '@angular/dev-infra-private/ng-dev';

/**
* Github configuration for the ng-dev command. This repository is
Expand Down
25 changes: 0 additions & 25 deletions .ng-dev/merge.ts

This file was deleted.

15 changes: 15 additions & 0 deletions .ng-dev/pull-request.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { PullRequestConfig } from '@angular/dev-infra-private/ng-dev';

/**
* Configuration for the merge tool in `ng-dev`. This sets up the labels which
* are respected by the merge script (e.g. the target labels).
*/
export const pullRequest: PullRequestConfig = {
githubApiMerge: {
default: 'rebase',
labels: [{ pattern: 'squash commits', method: 'squash' }],
},
mergeReadyLabel: /^action: merge(-assistance)?/,
caretakerNoteLabel: /(action: merge-assistance)/,
commitMessageFixupLabel: 'commit message fixup',
};
8 changes: 6 additions & 2 deletions .ng-dev/release.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
import '../lib/bootstrap-local';

import { ReleaseConfig } from '@angular/dev-infra-private/ng-dev/release/config';
import { ReleaseConfig } from '@angular/dev-infra-private/ng-dev';
import { releasePackages } from '../lib/packages';
import buildPackages from '../scripts/build';

const npmPackages = Object.keys(releasePackages);
const npmPackages = Object.entries(releasePackages).map(([name, { experimental }]) => ({
name,
experimental,
}));

/** Configuration for the `ng-dev release` command. */
export const release: ReleaseConfig = {
representativeNpmPackage: '@angular/cli',
npmPackages,
buildPackages: () => buildPackages(),
releaseNotes: {
Expand Down
8 changes: 8 additions & 0 deletions .ng-dev/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"noEmit": true
},
"include": ["**/*.ts"],
"exclude": []
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"@angular/compiler": "12.2.1",
"@angular/compiler-cli": "12.2.1",
"@angular/core": "12.2.1",
"@angular/dev-infra-private": "https://github.com/angular/dev-infra-private-builds.git#07a43c542704985a77ecabb4be12038e67419a65",
"@angular/dev-infra-private": "https://github.com/angular/dev-infra-private-builds.git#2fe60016e0ce6f1e53d4f5c5a1feb29d64ecd979",
"@angular/forms": "12.2.1",
"@angular/localize": "12.2.1",
"@angular/material": "12.1.4",
Expand Down
Loading