@nx-extend/react-email 3.1.3 → 4.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.
- package/CHANGELOG.md +23 -0
- package/package.json +2 -2
- package/src/executors/export/export.impl.d.ts +1 -1
- package/src/executors/export/export.impl.js +1 -1
- package/src/executors/export/export.impl.js.map +1 -1
- package/src/executors/export/export.impl.ts +3 -2
- package/src/executors/serve/serve.impl.js +1 -1
- package/src/executors/serve/serve.impl.js.map +1 -1
- package/src/executors/serve/serve.impl.ts +1 -1
- package/src/generators/init/files/.eslintrc.json.template +34 -0
- package/src/generators/init/files/tsconfig.json.template +12 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
|
|
2
|
+
# [4.0.0](https://github.com/tripss/nx-extend/compare/react-email@3.2.0...react-email@4.0.0) (2024-10-11)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* Update to NX v20.0.0 ([78dad2e](https://github.com/tripss/nx-extend/commit/78dad2e7a71d42ebf6bb9416389e4fdcb277313c))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### BREAKING CHANGES
|
|
11
|
+
|
|
12
|
+
* NX is updated to v20.0.0
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# [3.2.0](https://github.com/tripss/nx-extend/compare/react-email@3.1.3...react-email@3.2.0) (2024-10-10)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
* **react-email:** Add tsconfig.json and .eslintrc.json templates to init generator ([08a456a](https://github.com/tripss/nx-extend/commit/08a456ae6a413a03624cd342785ecbd0777e2d19))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
2
25
|
## [3.1.3](https://github.com/tripss/nx-extend/compare/react-email@3.1.2...react-email@3.1.3) (2024-09-23)
|
|
3
26
|
|
|
4
27
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx-extend/react-email",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"nx",
|
|
6
6
|
"react-email"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"react-email": "3.0.1",
|
|
26
26
|
"shelljs": "^0.8.5",
|
|
27
27
|
"@nx-extend/core": "8.0.2",
|
|
28
|
-
"tslib": "2.
|
|
28
|
+
"tslib": "2.7.0"
|
|
29
29
|
},
|
|
30
30
|
"packageManager": "yarn@4.3.1",
|
|
31
31
|
"type": "commonjs",
|
|
@@ -6,7 +6,7 @@ const core_1 = require("@nx-extend/core");
|
|
|
6
6
|
require("dotenv/config");
|
|
7
7
|
function exportExecutor(options, context) {
|
|
8
8
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
9
|
-
const { sourceRoot, root } = context.
|
|
9
|
+
const { sourceRoot, root } = context.projectsConfigurations.projects[context.projectName];
|
|
10
10
|
if (!options.outputPath) {
|
|
11
11
|
throw new Error('No "outputPath" defined in options!');
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export.impl.js","sourceRoot":"","sources":["../../../../../../packages/react-email/src/executors/export/export.impl.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"export.impl.js","sourceRoot":"","sources":["../../../../../../packages/react-email/src/executors/export/export.impl.ts"],"names":[],"mappings":";;AAYA,wCAmBC;;AA/BD,0CAAyE;AAIzE,yBAAsB;AAQtB,SAAsB,cAAc,CAClC,OAA6B,EAC7B,OAAwB;;QAExB,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,sBAAsB,CAAC,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,CAAA;QAEzF,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;YACxB,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAA;QACxD,CAAC;QAED,OAAO,IAAA,gCAAyB,EAAC,IAAA,mBAAY,EAAC;YAC5C,oBAAoB;YACpB,SAAS,UAAU,IAAI,IAAI,EAAE;YAC7B,YAAY,OAAO,CAAC,UAAU,EAAE;YAChC,OAAO,CAAC,MAAM,IAAI,UAAU;YAC5B,OAAO,CAAC,SAAS,IAAI,aAAa;SACnC,CAAC,EAAE;YACF,GAAG,EAAE,OAAO,CAAC,GAAG;SACjB,CAAC,CAAA;IACJ,CAAC;CAAA;AAED,kBAAe,cAAc,CAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ExecutorContext } from '@nx/devkit'
|
|
2
1
|
import { buildCommand, execPackageManagerCommand } from '@nx-extend/core'
|
|
3
2
|
|
|
3
|
+
import type { ExecutorContext } from '@nx/devkit'
|
|
4
|
+
|
|
4
5
|
import 'dotenv/config'
|
|
5
6
|
|
|
6
7
|
export interface ServeExecutorOptions {
|
|
@@ -13,7 +14,7 @@ export async function exportExecutor(
|
|
|
13
14
|
options: ServeExecutorOptions,
|
|
14
15
|
context: ExecutorContext
|
|
15
16
|
): Promise<{ success: boolean }> {
|
|
16
|
-
const { sourceRoot, root } = context.
|
|
17
|
+
const { sourceRoot, root } = context.projectsConfigurations.projects[context.projectName]
|
|
17
18
|
|
|
18
19
|
if (!options.outputPath) {
|
|
19
20
|
throw new Error('No "outputPath" defined in options!')
|
|
@@ -6,7 +6,7 @@ const core_1 = require("@nx-extend/core");
|
|
|
6
6
|
require("dotenv/config");
|
|
7
7
|
function serveExecutor(options, context) {
|
|
8
8
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
9
|
-
const { sourceRoot, root } = context.
|
|
9
|
+
const { sourceRoot, root } = context.projectsConfigurations.projects[context.projectName];
|
|
10
10
|
return (0, core_1.execPackageManagerCommand)((0, core_1.buildCommand)([
|
|
11
11
|
'react-email dev',
|
|
12
12
|
`--dir=${sourceRoot || root}`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serve.impl.js","sourceRoot":"","sources":["../../../../../../packages/react-email/src/executors/serve/serve.impl.ts"],"names":[],"mappings":";;AASA,sCAaC;;AArBD,0CAAyE;AAEzE,yBAAsB;AAMtB,SAAsB,aAAa,CACjC,OAA6B,EAC7B,OAAwB;;QAExB,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"serve.impl.js","sourceRoot":"","sources":["../../../../../../packages/react-email/src/executors/serve/serve.impl.ts"],"names":[],"mappings":";;AASA,sCAaC;;AArBD,0CAAyE;AAEzE,yBAAsB;AAMtB,SAAsB,aAAa,CACjC,OAA6B,EAC7B,OAAwB;;QAExB,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,sBAAsB,CAAC,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,CAAA;QAEzF,OAAO,IAAA,gCAAyB,EAAC,IAAA,mBAAY,EAAC;YAC5C,iBAAiB;YACjB,SAAS,UAAU,IAAI,IAAI,EAAE;YAC7B,OAAO,CAAC,IAAI,IAAI,UAAU,OAAO,CAAC,IAAI,EAAE;SACzC,CAAC,EAAE;YACF,GAAG,EAAE,OAAO,CAAC,GAAG;SACjB,CAAC,CAAA;IACJ,CAAC;CAAA;AAED,kBAAe,aAAa,CAAA"}
|
|
@@ -11,7 +11,7 @@ export async function serveExecutor(
|
|
|
11
11
|
options: ServeExecutorOptions,
|
|
12
12
|
context: ExecutorContext
|
|
13
13
|
): Promise<{ success: boolean }> {
|
|
14
|
-
const { sourceRoot, root } = context.
|
|
14
|
+
const { sourceRoot, root } = context.projectsConfigurations.projects[context.projectName]
|
|
15
15
|
|
|
16
16
|
return execPackageManagerCommand(buildCommand([
|
|
17
17
|
'react-email dev',
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": [
|
|
3
|
+
"plugin:@nx/react",
|
|
4
|
+
"<%= offsetFromRoot %>.eslintrc.json"
|
|
5
|
+
],
|
|
6
|
+
"ignorePatterns": [
|
|
7
|
+
"!**/*"
|
|
8
|
+
],
|
|
9
|
+
"overrides": [
|
|
10
|
+
{
|
|
11
|
+
"files": [
|
|
12
|
+
"*.ts",
|
|
13
|
+
"*.tsx",
|
|
14
|
+
"*.js",
|
|
15
|
+
"*.jsx"
|
|
16
|
+
],
|
|
17
|
+
"rules": {}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"files": [
|
|
21
|
+
"*.ts",
|
|
22
|
+
"*.tsx"
|
|
23
|
+
],
|
|
24
|
+
"rules": {}
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"files": [
|
|
28
|
+
"*.js",
|
|
29
|
+
"*.jsx"
|
|
30
|
+
],
|
|
31
|
+
"rules": {}
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "<%= offsetFromRoot %>tsconfig.base.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"jsx": "react-jsx",
|
|
5
|
+
"allowJs": false,
|
|
6
|
+
"esModuleInterop": false,
|
|
7
|
+
"allowSyntheticDefaultImports": true,
|
|
8
|
+
"strict": true
|
|
9
|
+
},
|
|
10
|
+
"files": [],
|
|
11
|
+
"include": ["src/**/*.js", "src/**/*.jsx", "src/**/*.ts", "src/**/*.tsx"]
|
|
12
|
+
}
|