Skip to content

Commit 31c2810

Browse files
committed
feat(angular-rspack): add angular rspack to nx repo
1 parent e691e4b commit 31c2810

37 files changed

+326
-1019
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ node_modules
33
/.fleet
44
/.vscode
55
dist
6+
out-tsc
67
/build
78
/coverage
89
./test

docs/generated/packages-metadata.json

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nx.json

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
]
5656
},
5757
"release": {
58-
"projects": ["packages/*", "packages/nx/native-packages/*"],
5958
"releaseTagPattern": "{version}",
6059
"changelog": {
6160
"workspaceChangelog": {
@@ -76,10 +75,27 @@
7675
},
7776
"currentVersionResolver": "registry",
7877
"preserveLocalDependencyProtocols": false,
79-
"manifestRootsToUpdate": ["dist/packages/{projectName}"],
8078
"versionActionsOptions": {
8179
"skipLockFileUpdate": true
8280
}
81+
},
82+
"groups": {
83+
"nx-packages": {
84+
"projects": [
85+
"packages/*",
86+
"packages/nx/native-packages/*",
87+
"!angular-rspack-compiler"
88+
],
89+
"version": {
90+
"manifestRootsToUpdate": ["dist/packages/{projectName}"]
91+
}
92+
},
93+
"angular-rspack": {
94+
"projects": ["angular-rspack-compiler"],
95+
"version": {
96+
"manifestRootsToUpdate": ["packages/{projectName}"]
97+
}
98+
}
8399
}
84100
},
85101
"targetDefaults": {
@@ -202,6 +218,13 @@
202218
},
203219
"plugins": [
204220
"@monodon/rust",
221+
{
222+
"plugin": "@nx/vite/plugin",
223+
"include": ["packages/angular-rspack-compiler/**"],
224+
"options": {
225+
"testTargetName": "test"
226+
}
227+
},
205228
{
206229
"plugin": "@nx/js/typescript",
207230
"options": {
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"extends": "../../.eslintrc.json",
3+
"rules": {},
4+
"ignorePatterns": ["!**/*", "node_modules"],
5+
"overrides": [
6+
{
7+
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
8+
"rules": {
9+
"no-restricted-imports": [
10+
"error",
11+
{
12+
"name": "chalk",
13+
"message": "Please use `picocolors` in place of `chalk` for rendering terminal colors"
14+
}
15+
]
16+
}
17+
},
18+
{
19+
"files": ["*.ts", "*.tsx"],
20+
"rules": {}
21+
},
22+
{
23+
"files": ["*.js", "*.jsx"],
24+
"rules": {}
25+
},
26+
{
27+
"files": ["./package.json"],
28+
"parser": "jsonc-eslint-parser",
29+
"rules": {
30+
"@nx/nx-plugin-checks": "error"
31+
}
32+
},
33+
{
34+
"files": ["./package.json"],
35+
"parser": "jsonc-eslint-parser",
36+
"rules": {
37+
"@nx/dependency-checks": [
38+
"error",
39+
{
40+
"ignoredFiles": [
41+
"{projectRoot}/eslint.config.{js,cjs,mjs}",
42+
"{projectRoot}/vite.config.{js,ts,mjs,mts}"
43+
],
44+
"ignoredDependencies": [
45+
"@angular/core",
46+
"@code-pushup/models",
47+
"@code-pushup/utils",
48+
"jsonc-eslint-parser",
49+
"vitest",
50+
"memfs",
51+
"tslib"
52+
]
53+
}
54+
]
55+
}
56+
}
57+
]
58+
}
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
!dist
22
dist/tsconfig.lib.tsbuildinfo
3-
code-pushup.config.ts
4-
eslint.next.config.js
5-
eslint.config.*js
3+
.eslintrc.json
64
project.json
75
tsconfig.json
86
tsconfig.lib.json
@@ -12,4 +10,4 @@ src/**/*.ts
1210
mocks
1311
**/*.tgz
1412
vitest.config.mts
15-
vitest.integration.config.mts
13+
test-utils
Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
1-
<div style="text-align: center;">
1+
<p style="text-align: center;">
2+
<picture>
3+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-dark.svg">
4+
<img alt="Nx - Smart Repos · Fast Builds" src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-light.svg" width="100%">
5+
</picture>
6+
</p>
27

3-
<img src="http://github.com/nrwl/angular-rspack/raw/main/rsbuild-plugin-angular.png" alt="Rsbuild Plugin Angular" />
8+
{{links}}
49

5-
</div>
10+
<hr>
11+
12+
# Nx: Smart Repos · Fast Builds
13+
14+
An AI-first build platform that connects everything from your editor to CI. Helping you deliver fast, without breaking things.
615

716
# @nx/angular-rspack-compiler
817

9-
## Compilation Utilities for Angular with Rspack and Rsbuild
18+
## Compilation Utilities for Angular with Rspack
1019

11-
This library provides utilities for compiling Angular applications with Rspack and Rsbuild.
20+
This library provides utilities for compiling Angular applications with Rspack.

packages/angular-rspack-compiler/code-pushup.config.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

packages/angular-rspack-compiler/eslint.config.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

packages/angular-rspack-compiler/eslint.next.config.js

Lines changed: 0 additions & 29 deletions
This file was deleted.

packages/angular-rspack-compiler/mocks/fixtures/integration/minimal/other/mock.main.ts

Whitespace-only changes.

0 commit comments

Comments
 (0)