Skip to content

Commit 0d3b581

Browse files
committed
build: setup ng-dev
1 parent 5cbba5a commit 0d3b581

8 files changed

Lines changed: 3122 additions & 72 deletions

File tree

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,8 @@ bazel-*
22
node_modules/
33
.vscode/
44
dist/
5+
6+
# Ignore ng-dev logs and user-config
7+
.ng-dev.err*
8+
.ng-dev.log
9+
.ng-dev.user*

.ng-dev/commit-message.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/**
2+
* @type { import("@angular/ng-dev").CommitMessageConfig }
3+
*/
4+
export const commitMessage = {
5+
maxLineLength: Infinity,
6+
minBodyLength: 0,
7+
scopes: [],
8+
};

.ng-dev/config.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export {format} from './format.mjs';
2+
export {github} from './github.mjs';
3+
export {pullRequest} from './pull-request.mjs';
4+
export {commitMessage} from './commit-message.mjs';

.ng-dev/format.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/**
2+
* @type { import("@angular/ng-dev").FormatConfig }
3+
*/
4+
export const format = {
5+
'buildifier': true,
6+
};

.ng-dev/github.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**
2+
* @type { import("@angular/ng-dev").GithubConfig }
3+
*/
4+
export const github = {
5+
owner: 'angular',
6+
name: 'rules_angular',
7+
mainBranchName: 'main',
8+
mergeMode: 'team-only',
9+
};

.ng-dev/pull-request.mjs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/**
2+
* @type { import("@angular/ng-dev").PullRequestConfig }
3+
*/
4+
export const pullRequest = {
5+
githubApiMerge: {
6+
default: 'auto',
7+
labels: [{pattern: 'merge: squash commits', method: 'squash'}],
8+
},
9+
requiredStatuses: [],
10+
11+
// Disable target labeling as we don't have release trains and version branches.
12+
__noTargetLabeling: true,
13+
};

package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,14 @@
99
"author": "",
1010
"license": "ISC",
1111
"pnpm": {
12-
"onlyBuiltDependencies": []
12+
"onlyBuiltDependencies": [],
13+
"packageExtensions": {
14+
"grpc-gcp": {
15+
"peerDependencies": {
16+
"protobufjs": "*"
17+
}
18+
}
19+
}
1320
},
1421
"packageManager": "pnpm@10.30.3",
1522
"engines": {
@@ -27,6 +34,7 @@
2734
"@angular/common": "21.0.3",
2835
"@angular/compiler": "21.0.3",
2936
"@angular/core": "21.0.3",
37+
"@angular/ng-dev": "https://github.com/angular/dev-infra-private-ng-dev-builds.git#5a0a8a72a00865eb0d787908876eacb51138113a",
3038
"@angular/platform-browser": "21.0.3",
3139
"@babel/core": "^7.28.5",
3240
"@bazel/bazelisk": "1.26.0",

0 commit comments

Comments
 (0)