@nx/angular-rspack 23.3.0-pr.37036.2b7abf9 → 23.3.0-pr.37036.f6e3fb2
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.
- package/LICENSE +22 -0
- package/dist/lib/config/config-utils/common-config.d.ts +1 -1
- package/dist/lib/config/config-utils/common-config.d.ts.map +1 -1
- package/dist/lib/config/config-utils/optimization-config.d.ts.map +1 -1
- package/dist/lib/config/config-utils/optimization-config.js +4 -0
- package/dist/lib/config/config-utils/user-defined-config-helpers.d.ts +2 -2
- package/package.json +4 -4
- package/readme-template.md +48 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
(The MIT License)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2017-2026 Narwhal Technologies Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
'Software'), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
20
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
21
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
22
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { HashFormat, I18nOptions, NormalizedAngularRspackPluginOptions } from '../../models';
|
|
2
|
-
export declare function getCommonConfig(normalizedOptions: NormalizedAngularRspackPluginOptions, i18n: I18nOptions, i18nHash: string | (() => void), hashFormat: HashFormat): Promise<import("@rspack/core").RspackOptions>;
|
|
2
|
+
export declare function getCommonConfig(normalizedOptions: NormalizedAngularRspackPluginOptions, i18n: I18nOptions, i18nHash: string | (() => void), hashFormat: HashFormat): Promise<import("@rspack/core", { with: { "resolution-mode": "import" } }).RspackOptions>;
|
|
3
3
|
//# sourceMappingURL=common-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common-config.d.ts","sourceRoot":"","sources":["../../../../src/lib/config/config-utils/common-config.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,UAAU,EACV,WAAW,EACX,oCAAoC,EACrC,MAAM,cAAc,CAAC;AAYtB,wBAAsB,eAAe,CACnC,iBAAiB,EAAE,oCAAoC,EACvD,IAAI,EAAE,WAAW,EACjB,QAAQ,EAAE,MAAM,GAAG,CAAC,MAAM,IAAI,CAAC,EAC/B,UAAU,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"common-config.d.ts","sourceRoot":"","sources":["../../../../src/lib/config/config-utils/common-config.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,UAAU,EACV,WAAW,EACX,oCAAoC,EACrC,MAAM,cAAc,CAAC;AAYtB,wBAAsB,eAAe,CACnC,iBAAiB,EAAE,oCAAoC,EACvD,IAAI,EAAE,WAAW,EACjB,QAAQ,EAAE,MAAM,GAAG,CAAC,MAAM,IAAI,CAAC,EAC/B,UAAU,EAAE,UAAU,4FAyLvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optimization-config.d.ts","sourceRoot":"","sources":["../../../../src/lib/config/config-utils/optimization-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,aAAa,EACd,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,oCAAoC,EAAE,MAAM,cAAc,CAAC;AAGpE,eAAO,MAAM,YAAY,QAA2B,CAAC;AAErD,wBAAgB,eAAe,CAC7B,iBAAiB,EAAE,oCAAoC,EACvD,QAAQ,EAAE,SAAS,GAAG,QAAQ,GAC7B,aAAa,CAAC,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"optimization-config.d.ts","sourceRoot":"","sources":["../../../../src/lib/config/config-utils/optimization-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,aAAa,EACd,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,oCAAoC,EAAE,MAAM,cAAc,CAAC;AAGpE,eAAO,MAAM,YAAY,QAA2B,CAAC;AAErD,wBAAgB,eAAe,CAC7B,iBAAiB,EAAE,oCAAoC,EACvD,QAAQ,EAAE,SAAS,GAAG,QAAQ,GAC7B,aAAa,CAAC,cAAc,CAAC,CAiE/B"}
|
|
@@ -16,6 +16,10 @@ function getOptimization(normalizedOptions, platform) {
|
|
|
16
16
|
new core_1.SwcJsMinimizerRspackPlugin({
|
|
17
17
|
minimizerOptions: {
|
|
18
18
|
minify: true,
|
|
19
|
+
// Keeps SWC from hoisting a callback passed in a class field
|
|
20
|
+
// initializer into one binding shared by all instances:
|
|
21
|
+
// https://github.com/swc-project/swc/issues/12380
|
|
22
|
+
compress: { inline: 0, reduce_funcs: false },
|
|
19
23
|
...(platform === 'server'
|
|
20
24
|
? {
|
|
21
25
|
mangle: {
|
|
@@ -73,10 +73,10 @@ export declare function handleConfigurations(defaultOptions: {
|
|
|
73
73
|
vendorChunk?: boolean;
|
|
74
74
|
verbose?: boolean;
|
|
75
75
|
watch?: boolean;
|
|
76
|
-
watchOptions?: import("@rspack/core").WatchOptions;
|
|
76
|
+
watchOptions?: import("@rspack/core", { with: { "resolution-mode": "import" } }).WatchOptions;
|
|
77
77
|
webWorkerTsConfig?: string;
|
|
78
78
|
};
|
|
79
|
-
mergedRspackConfigOverrides: Partial<import("@rspack/core").RspackOptions>;
|
|
79
|
+
mergedRspackConfigOverrides: Partial<import("@rspack/core", { with: { "resolution-mode": "import" } }).RspackOptions>;
|
|
80
80
|
};
|
|
81
81
|
export declare function parseConfigurationMode(configurationMode: string): string[];
|
|
82
82
|
//# sourceMappingURL=user-defined-config-helpers.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/angular-rspack",
|
|
3
|
-
"version": "23.3.0-pr.37036.
|
|
3
|
+
"version": "23.3.0-pr.37036.f6e3fb2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -56,6 +56,8 @@
|
|
|
56
56
|
"@ampproject/remapping": "2.3.0",
|
|
57
57
|
"@babel/core": "^7.29.6",
|
|
58
58
|
"@discoveryjs/json-ext": "0.6.3",
|
|
59
|
+
"@nx/angular-rspack-compiler": "23.3.0-pr.37036.f6e3fb2",
|
|
60
|
+
"@nx/devkit": "23.3.0-pr.37036.f6e3fb2",
|
|
59
61
|
"ansi-colors": "4.1.3",
|
|
60
62
|
"autoprefixer": "^10.4.9",
|
|
61
63
|
"deepmerge": "^4.3.1",
|
|
@@ -76,9 +78,7 @@
|
|
|
76
78
|
"source-map-loader": "^5.0.0",
|
|
77
79
|
"tslib": "^2.3.0",
|
|
78
80
|
"webpack-merge": "^6.0.1",
|
|
79
|
-
"ws": "^8.18.0"
|
|
80
|
-
"@nx/angular-rspack-compiler": "23.3.0-pr.37036.2b7abf9",
|
|
81
|
-
"@nx/devkit": "23.3.0-pr.37036.2b7abf9"
|
|
81
|
+
"ws": "^8.18.0"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
84
|
"jsonc-eslint-parser": "^2.4.0"
|
|
@@ -0,0 +1,48 @@
|
|
|
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 Monorepos · 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 Monorepos · 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}}
|