@nx/angular-rspack 22.0.0-rc.0 → 22.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"angular-rspack-plugin.d.ts","sourceRoot":"","sources":["../../../src/lib/plugins/angular-rspack-plugin.ts"],"names":[],"mappings":"AAgBA,OAAO,EACL,KAAK,QAAQ,EAEb,KAAK,oBAAoB,EAE1B,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,KAAK,WAAW,EAGhB,KAAK,oCAAoC,EAC1C,MAAM,WAAW,CAAC;AAUnB,qBAAa,mBAAoB,YAAW,oBAAoB;;gBAU5D,OAAO,EAAE,oCAAoC,EAC7C,WAAW,CAAC,EAAE,WAAW;IAuB3B,KAAK,CAAC,QAAQ,EAAE,QAAQ;
|
|
1
|
+
{"version":3,"file":"angular-rspack-plugin.d.ts","sourceRoot":"","sources":["../../../src/lib/plugins/angular-rspack-plugin.ts"],"names":[],"mappings":"AAgBA,OAAO,EACL,KAAK,QAAQ,EAEb,KAAK,oBAAoB,EAE1B,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,KAAK,WAAW,EAGhB,KAAK,oCAAoC,EAC1C,MAAM,WAAW,CAAC;AAUnB,qBAAa,mBAAoB,YAAW,oBAAoB;;gBAU5D,OAAO,EAAE,oCAAoC,EAC7C,WAAW,CAAC,EAAE,WAAW;IAuB3B,KAAK,CAAC,QAAQ,EAAE,QAAQ;YAoTV,gBAAgB;CAkC/B"}
|
|
@@ -76,6 +76,17 @@ class AngularRspackPlugin {
|
|
|
76
76
|
callback();
|
|
77
77
|
});
|
|
78
78
|
compiler.hooks.thisCompilation.tap(PLUGIN_NAME, (compilation) => {
|
|
79
|
+
// Handle errors thrown by loaders that prevent sealing
|
|
80
|
+
compilation.hooks.afterSeal.tapAsync(PLUGIN_NAME, (callback) => {
|
|
81
|
+
if (compilation.errors.length > 0) {
|
|
82
|
+
const stats = compilation.getStats();
|
|
83
|
+
const compilationError = (0, stats_1.statsErrorsToString)(stats.toJson(), (0, get_stats_options_1.getStatsOptions)(tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin__options, "f").verbose));
|
|
84
|
+
callback(new Error(compilationError));
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
callback();
|
|
88
|
+
}
|
|
89
|
+
});
|
|
79
90
|
compilation.hooks.processAssets.tap({
|
|
80
91
|
name: PLUGIN_NAME,
|
|
81
92
|
stage: compiler.rspack.Compilation.PROCESS_ASSETS_STAGE_ADDITIONS,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/angular-rspack",
|
|
3
|
-
"version": "22.0.0
|
|
3
|
+
"version": "22.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"@ampproject/remapping": "2.3.0",
|
|
49
49
|
"@babel/core": "7.28.3",
|
|
50
50
|
"@discoveryjs/json-ext": "0.6.3",
|
|
51
|
-
"@nx/angular-rspack-compiler": "22.0.0
|
|
52
|
-
"@nx/devkit": "22.0.0
|
|
51
|
+
"@nx/angular-rspack-compiler": "22.0.0",
|
|
52
|
+
"@nx/devkit": "22.0.0",
|
|
53
53
|
"ansi-colors": "4.1.3",
|
|
54
54
|
"autoprefixer": "10.4.21",
|
|
55
55
|
"deepmerge": "^4.3.1",
|
|
@@ -113,7 +113,12 @@
|
|
|
113
113
|
},
|
|
114
114
|
"targets": {
|
|
115
115
|
"build": {
|
|
116
|
-
"command": "node ./scripts/copy-readme.js angular-rspack packages/angular-rspack/
|
|
116
|
+
"command": "node ./scripts/copy-readme.js angular-rspack packages/angular-rspack/readme-template.md packages/angular-rspack/README.md",
|
|
117
|
+
"inputs": [
|
|
118
|
+
"{projectRoot}/readme-template.md",
|
|
119
|
+
"{workspaceRoot}/scripts/copy-readme.js",
|
|
120
|
+
"{workspaceRoot}/scripts/readme-fragments"
|
|
121
|
+
],
|
|
117
122
|
"outputs": [
|
|
118
123
|
"{projectRoot}/README.md"
|
|
119
124
|
]
|
package/README.md__tpl__
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
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>
|
|
7
|
-
|
|
8
|
-
{{links}}
|
|
9
|
-
|
|
10
|
-
<hr>
|
|
11
|
-
|
|
12
|
-
# Nx: Smart Repos · Fast Builds
|
|
13
|
-
|
|
14
|
-
Get to green PRs in half the time. Nx optimizes your builds, scales your CI, and fixes failed PRs. Built for developers and AI agents.
|
|
15
|
-
|
|
16
|
-
## Build Angular with Rspack
|
|
17
|
-
|
|
18
|
-
The goal of `@nx/angular-rspack` is to make easy and straightforward to build Angular applications with [rspack](https://rspack.dev).
|
|
19
|
-
|
|
20
|
-
### Getting Started
|
|
21
|
-
|
|
22
|
-
#### Step 1: Create a new Nx Workspace with Angular Rspack Application
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
npx create-nx-workspace myorg
|
|
26
|
-
|
|
27
|
-
NX Let's create a new workspace [[https://nx.dev/getting-started/intro](https://nx.dev/getting-started/intro)]
|
|
28
|
-
✔ Which stack do you want to use? · angular
|
|
29
|
-
✔ Integrated monorepo, or standalone project? · integrated
|
|
30
|
-
✔ Application name · myorg
|
|
31
|
-
✔ Which bundler would you like to use? · rspack
|
|
32
|
-
✔ Default stylesheet format · css
|
|
33
|
-
✔ Do you want to enable Server-Side Rendering (SSR)? · No
|
|
34
|
-
✔ Which unit test runner would you like to use? · vitest
|
|
35
|
-
✔ Test runner to use for end to end (E2E) tests · playwright
|
|
36
|
-
✔ Which CI provider would you like to use? · skip
|
|
37
|
-
✔ Would you like remote caching to make your build faster? · skip
|
|
38
|
-
NX Creating your v20.8.0 workspace.
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
#### Step 2: Run Build and Serve commands
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
npx nx build myorg
|
|
45
|
-
npx nx serve myorg
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
{{content}}
|