@nx/remix 0.0.0-pr-28808-ae8ea8d → 0.0.0-pr-28808-41aa4e0
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/package.json +4 -4
- package/src/generators/application/application.impl.js +4 -4
- package/src/generators/application/files/{integrated → non-root}/package.json__tmpl__ +2 -6
- package/src/generators/application/files/ts-solution/package.json__tmpl__ +28 -0
- package/src/generators/application/lib/add-e2e.js +23 -9
- /package/src/generators/application/files/{integrated → non-root}/.gitignore__tmpl__ +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/remix",
|
|
3
|
-
"version": "0.0.0-pr-28808-
|
|
3
|
+
"version": "0.0.0-pr-28808-41aa4e0",
|
|
4
4
|
"description": "The Remix plugin for Nx contains executors and generators for managing Remix applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Vitest, Jest, Playwright, Cypress, and Storybook.\n\n- Generators for applications, libraries, routes, loaders, and more.\n\n- Library build support for publishing packages to npm or other registries.\n\n- Utilities for automatic workspace refactoring.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"migrations": "./migrations.json"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@nx/devkit": "0.0.0-pr-28808-
|
|
33
|
-
"@nx/js": "0.0.0-pr-28808-
|
|
34
|
-
"@nx/react": "0.0.0-pr-28808-
|
|
32
|
+
"@nx/devkit": "0.0.0-pr-28808-41aa4e0",
|
|
33
|
+
"@nx/js": "0.0.0-pr-28808-41aa4e0",
|
|
34
|
+
"@nx/react": "0.0.0-pr-28808-41aa4e0",
|
|
35
35
|
"tslib": "^2.3.1",
|
|
36
36
|
"@phenomnomnominal/tsquery": "~5.0.1"
|
|
37
37
|
},
|
|
@@ -67,16 +67,16 @@ async function remixApplicationGeneratorInternal(tree, _options) {
|
|
|
67
67
|
isUsingTsSolution,
|
|
68
68
|
};
|
|
69
69
|
(0, devkit_1.generateFiles)(tree, (0, devkit_1.joinPathFragments)(__dirname, 'files/common'), options.projectRoot, vars);
|
|
70
|
-
if (isUsingTsSolution) {
|
|
71
|
-
(0, devkit_1.generateFiles)(tree, (0, devkit_1.joinPathFragments)(__dirname, 'files/ts-solution'), options.projectRoot, vars);
|
|
72
|
-
}
|
|
73
70
|
(0, devkit_1.generateFiles)(tree, (0, devkit_1.joinPathFragments)(__dirname, './files/nx-welcome', onBoardingStatus), options.projectRoot, { ...vars, connectCloudUrl });
|
|
74
71
|
if (options.rootProject) {
|
|
75
72
|
const gitignore = tree.read('.gitignore', 'utf-8');
|
|
76
73
|
tree.write('.gitignore', `${gitignore}\n.cache\nbuild\npublic/build\n.env\n`);
|
|
77
74
|
}
|
|
78
75
|
else {
|
|
79
|
-
(0, devkit_1.generateFiles)(tree, (0, devkit_1.joinPathFragments)(__dirname, 'files/
|
|
76
|
+
(0, devkit_1.generateFiles)(tree, (0, devkit_1.joinPathFragments)(__dirname, 'files/non-root'), options.projectRoot, vars);
|
|
77
|
+
}
|
|
78
|
+
if (isUsingTsSolution) {
|
|
79
|
+
(0, devkit_1.generateFiles)(tree, (0, devkit_1.joinPathFragments)(__dirname, 'files/ts-solution'), options.projectRoot, vars);
|
|
80
80
|
}
|
|
81
81
|
if (options.unitTestRunner !== 'none') {
|
|
82
82
|
if (options.unitTestRunner === 'vitest') {
|
|
@@ -17,14 +17,10 @@
|
|
|
17
17
|
"@types/react-dom": "<%= typesReactDomVersion %>",
|
|
18
18
|
"eslint": "<%= eslintVersion %>",
|
|
19
19
|
"typescript": "<%= typescriptVersion %>",
|
|
20
|
-
"vite": "<%= viteVersion %>"
|
|
20
|
+
"vite": "<%= viteVersion %>",
|
|
21
21
|
},
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=20"
|
|
24
24
|
},
|
|
25
|
-
"sideEffects": false
|
|
26
|
-
"nx": {
|
|
27
|
-
"name": "<%= name %>"
|
|
28
|
-
}
|
|
29
|
-
<% } %>
|
|
25
|
+
"sideEffects": false
|
|
30
26
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"private": true,
|
|
3
|
+
"name": "<%= projectName %>",
|
|
4
|
+
"scripts": {},
|
|
5
|
+
"type": "module",
|
|
6
|
+
"dependencies": {
|
|
7
|
+
"@remix-run/node": "<%= remixVersion %>",
|
|
8
|
+
"@remix-run/react": "<%= remixVersion %>",
|
|
9
|
+
"@remix-run/serve": "<%= remixVersion %>",
|
|
10
|
+
"isbot": "<%= isbotVersion %>",
|
|
11
|
+
"react": "<%= reactVersion %>",
|
|
12
|
+
"react-dom": "<%= reactDomVersion %>"
|
|
13
|
+
},
|
|
14
|
+
"devDependencies": {
|
|
15
|
+
"@remix-run/dev": "<%= remixVersion %>",
|
|
16
|
+
"@types/react": "<%= typesReactVersion %>",
|
|
17
|
+
"@types/react-dom": "<%= typesReactDomVersion %>"
|
|
18
|
+
},
|
|
19
|
+
"engines": {
|
|
20
|
+
"node": ">=20"
|
|
21
|
+
},
|
|
22
|
+
"sideEffects": false<% if (isUsingTsSolution) { %>,
|
|
23
|
+
"nx": {<%_ if (name !== projectName) { _%>
|
|
24
|
+
"name": "<%= name %>",
|
|
25
|
+
<%_ } _%>"projectType": "application"
|
|
26
|
+
}
|
|
27
|
+
<% } %>
|
|
28
|
+
}
|
|
@@ -20,7 +20,8 @@ async function addE2E(tree, options) {
|
|
|
20
20
|
version: '0.0.1',
|
|
21
21
|
private: true,
|
|
22
22
|
nx: {
|
|
23
|
-
|
|
23
|
+
projectType: 'application',
|
|
24
|
+
implicitDependencies: [options.projectName],
|
|
24
25
|
},
|
|
25
26
|
});
|
|
26
27
|
}
|
|
@@ -69,14 +70,27 @@ async function addE2E(tree, options) {
|
|
|
69
70
|
}
|
|
70
71
|
else if (options.e2eTestRunner === 'playwright') {
|
|
71
72
|
const { configurationGenerator } = (0, devkit_1.ensurePackage)('@nx/playwright', (0, versions_1.getPackageVersion)(tree, 'nx'));
|
|
72
|
-
(0,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
73
|
+
if ((0, ts_solution_setup_1.isUsingTsSolutionSetup)(tree)) {
|
|
74
|
+
(0, devkit_1.writeJson)(tree, (0, devkit_1.joinPathFragments)(options.e2eProjectRoot, 'package.json'), {
|
|
75
|
+
name: options.e2eProjectName,
|
|
76
|
+
version: '0.0.1',
|
|
77
|
+
private: true,
|
|
78
|
+
nx: {
|
|
79
|
+
projectType: 'application',
|
|
80
|
+
implicitDependencies: [options.projectName],
|
|
81
|
+
},
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
(0, devkit_1.addProjectConfiguration)(tree, options.e2eProjectName, {
|
|
86
|
+
projectType: 'application',
|
|
87
|
+
root: options.e2eProjectRoot,
|
|
88
|
+
sourceRoot: (0, devkit_1.joinPathFragments)(options.e2eProjectRoot, 'src'),
|
|
89
|
+
targets: {},
|
|
90
|
+
tags: [],
|
|
91
|
+
implicitDependencies: [options.projectName],
|
|
92
|
+
});
|
|
93
|
+
}
|
|
80
94
|
const e2eTask = await configurationGenerator(tree, {
|
|
81
95
|
project: options.e2eProjectName,
|
|
82
96
|
skipFormat: true,
|
|
File without changes
|