@nx-extend/react-email 6.0.4 → 6.1.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.
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,26 @@
|
|
|
1
1
|
|
|
2
|
+
# [6.1.0](https://github.com/tripss/nx-extend/compare/react-email@6.0.5...react-email@6.1.0) (2026-02-24)
|
|
3
|
+
|
|
4
|
+
### Dependency Updates
|
|
5
|
+
|
|
6
|
+
* `core` updated to version `10.1.0`
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **react-email:** Upgrade [@react-email](https://github.com/react-email) dependencies ([59abc7a](https://github.com/tripss/nx-extend/commit/59abc7ab0927fe74ee1a843829c7a3215c4afda4))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* Enhance README.md for all plugins with detailed usage and examples ([606ca93](https://github.com/tripss/nx-extend/commit/606ca933e0ac34db39048be562b0c4f10a3c606b))
|
|
16
|
+
* Upgrade Nx to version 22.5.2 ([c9feaa5](https://github.com/tripss/nx-extend/commit/c9feaa52ac6d5613056ca92a9a3119a7ff814667))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
## [6.0.5](https://github.com/tripss/nx-extend/compare/react-email@6.0.4...react-email@6.0.5) (2026-02-08)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
2
24
|
## [6.0.4](https://github.com/tripss/nx-extend/compare/react-email@6.0.3...react-email@6.0.4) (2026-02-05)
|
|
3
25
|
|
|
4
26
|
|
package/README.md
CHANGED
|
@@ -6,6 +6,14 @@
|
|
|
6
6
|
|
|
7
7
|
**Nx plugin for building emails with [React Email](https://react.email)**.
|
|
8
8
|
|
|
9
|
+
## Features
|
|
10
|
+
|
|
11
|
+
- Build and preview emails using React components
|
|
12
|
+
- Live development server for email templates
|
|
13
|
+
- Export emails to static HTML
|
|
14
|
+
- Full TypeScript support
|
|
15
|
+
- Integration with Nx workspace
|
|
16
|
+
|
|
9
17
|
## Setup
|
|
10
18
|
|
|
11
19
|
### Install
|
|
@@ -19,16 +27,56 @@ nx g @nx-extend/react-email:init
|
|
|
19
27
|
|
|
20
28
|
### Serve
|
|
21
29
|
|
|
30
|
+
Start the React Email development server to preview your email templates:
|
|
31
|
+
|
|
32
|
+
```sh
|
|
33
|
+
nx serve <project-name>
|
|
34
|
+
```
|
|
35
|
+
|
|
22
36
|
#### Available options:
|
|
23
37
|
|
|
24
|
-
|
|
|
25
|
-
|
|
38
|
+
| Name | Type | Default | Description |
|
|
39
|
+
|------------|----------|---------|---------------------------------------|
|
|
40
|
+
| **`port`** | `string` | - | Port to run the development server on |
|
|
26
41
|
|
|
27
42
|
### Export
|
|
28
43
|
|
|
44
|
+
Export your email templates to static HTML files:
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
nx export <project-name>
|
|
48
|
+
```
|
|
49
|
+
|
|
29
50
|
#### Available options:
|
|
30
51
|
|
|
31
|
-
|
|
|
32
|
-
|
|
33
|
-
|
|
|
52
|
+
| Name | Type | Default | Description |
|
|
53
|
+
|-------------------|----------|---------|------------------------------------|
|
|
54
|
+
| **`outputPath`** | `string` | - | Output path to output the build to |
|
|
55
|
+
|
|
56
|
+
## Examples
|
|
57
|
+
|
|
58
|
+
### Start Development Server
|
|
59
|
+
|
|
60
|
+
```sh
|
|
61
|
+
nx serve my-emails --port=3000
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Export Email Templates
|
|
65
|
+
|
|
66
|
+
```sh
|
|
67
|
+
nx export my-emails --outputPath=dist/emails
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Project Structure
|
|
71
|
+
|
|
72
|
+
After initialization, your project will typically have the following structure:
|
|
73
|
+
|
|
74
|
+
```
|
|
75
|
+
my-emails/
|
|
76
|
+
├── src/
|
|
77
|
+
│ └── emails/
|
|
78
|
+
│ └── welcome.tsx
|
|
79
|
+
└── project.json
|
|
80
|
+
```
|
|
34
81
|
|
|
82
|
+
Create email components in the `src/emails` directory using React Email components.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx-extend/react-email",
|
|
3
|
-
"version": "6.0
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"nx",
|
|
6
6
|
"react-email"
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"builders": "./executors.json",
|
|
22
22
|
"generators": "./generators.json",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@react-email/components": "1.0.
|
|
25
|
-
"react-email": "5.2.
|
|
24
|
+
"@react-email/components": "1.0.8",
|
|
25
|
+
"react-email": "5.2.8",
|
|
26
26
|
"shelljs": "^0.10.0",
|
|
27
|
-
"@nx-extend/core": "10.
|
|
27
|
+
"@nx-extend/core": "10.1.0",
|
|
28
28
|
"tslib": "2.8.1"
|
|
29
29
|
},
|
|
30
30
|
"packageManager": "yarn@4.12.0",
|
|
@@ -39,8 +39,8 @@ function default_1(host, options) {
|
|
|
39
39
|
addFiles(host, normalizedOptions);
|
|
40
40
|
yield (0, devkit_1.formatFiles)(host);
|
|
41
41
|
return (0, devkit_1.runTasksInSerial)((0, devkit_1.addDependenciesToPackageJson)(host, {}, {
|
|
42
|
-
'@react-email/components': '
|
|
43
|
-
'react-email': '2.
|
|
42
|
+
'@react-email/components': '1.0.7',
|
|
43
|
+
'react-email': '5.2.8'
|
|
44
44
|
}));
|
|
45
45
|
});
|
|
46
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.impl.js","sourceRoot":"","sources":["../../../../../../packages/react-email/src/generators/init/init.impl.ts"],"names":[],"mappings":";;AAuBA,4BA0CC;;AAjED,uCAQmB;AACnB,0CAAoE;AACpE,6BAA4B;AAI5B,SAAS,QAAQ,CAAC,IAAU,EAAE,OAAyB;IACrD,IAAA,sBAAa,EAAC,I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