@nx/remix 21.4.0-beta.1 → 21.4.0-beta.10
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 +6 -6
- package/src/generators/application/__snapshots__/application.impl.spec.ts.snap +3 -1
- package/src/generators/application/application.impl.d.ts.map +1 -1
- package/src/generators/application/application.impl.js +2 -1
- package/src/generators/library/__snapshots__/library.impl.spec.ts.snap +2 -1
- package/src/generators/library/library.impl.d.ts.map +1 -1
- package/src/generators/library/library.impl.js +7 -5
- package/src/generators/storybook-configuration/__snapshots__/storybook-configuration.impl.spec.ts.snap +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/remix",
|
|
3
|
-
"version": "21.4.0-beta.
|
|
3
|
+
"version": "21.4.0-beta.10",
|
|
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,15 +29,15 @@
|
|
|
29
29
|
"migrations": "./migrations.json"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@nx/devkit": "21.4.0-beta.
|
|
33
|
-
"@nx/js": "21.4.0-beta.
|
|
34
|
-
"@nx/react": "21.4.0-beta.
|
|
35
|
-
"@nx/workspace": "21.4.0-beta.
|
|
32
|
+
"@nx/devkit": "21.4.0-beta.10",
|
|
33
|
+
"@nx/js": "21.4.0-beta.10",
|
|
34
|
+
"@nx/react": "21.4.0-beta.10",
|
|
35
|
+
"@nx/workspace": "21.4.0-beta.10",
|
|
36
36
|
"tslib": "^2.3.1",
|
|
37
37
|
"@phenomnomnominal/tsquery": "~5.0.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"nx": "21.4.0-beta.
|
|
40
|
+
"nx": "21.4.0-beta.10"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@remix-run/dev": "^2.14.0"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://
|
|
1
|
+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
2
|
|
|
3
3
|
exports[`Remix Application Integrated Repo --directory should create the application correctly 1`] = `
|
|
4
4
|
"import {
|
|
@@ -262,6 +262,7 @@ export default defineConfig(() => ({
|
|
|
262
262
|
// },
|
|
263
263
|
test: {
|
|
264
264
|
setupFiles: ['test-setup.ts'],
|
|
265
|
+
name: 'test',
|
|
265
266
|
watch: false,
|
|
266
267
|
globals: true,
|
|
267
268
|
environment: 'jsdom',
|
|
@@ -465,6 +466,7 @@ export default defineConfig(() => ({
|
|
|
465
466
|
// },
|
|
466
467
|
test: {
|
|
467
468
|
setupFiles: ['test-setup.ts'],
|
|
469
|
+
name: 'test',
|
|
468
470
|
watch: false,
|
|
469
471
|
globals: true,
|
|
470
472
|
environment: 'jsdom',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/remix/src/generators/application/application.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,iBAAiB,EAMjB,IAAI,EAGL,MAAM,YAAY,CAAC;AA6BpB,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"application.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/remix/src/generators/application/application.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,iBAAiB,EAMjB,IAAI,EAGL,MAAM,YAAY,CAAC;AA6BpB,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAQlD,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,sBAAsB,8BAOhC;AAED,wBAAsB,iCAAiC,CACrD,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,sBAAsB,8BA8SjC;AAED,eAAe,yBAAyB,CAAC"}
|
|
@@ -22,6 +22,7 @@ function remixApplicationGenerator(tree, options) {
|
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
async function remixApplicationGeneratorInternal(tree, _options) {
|
|
25
|
+
const addTsPlugin = (0, ts_solution_setup_1.shouldConfigureTsSolutionSetup)(tree, _options.addPlugin, _options.useTsSolution);
|
|
25
26
|
const tasks = [
|
|
26
27
|
await (0, init_1.default)(tree, {
|
|
27
28
|
skipFormat: true,
|
|
@@ -29,7 +30,7 @@ async function remixApplicationGeneratorInternal(tree, _options) {
|
|
|
29
30
|
}),
|
|
30
31
|
await (0, js_1.initGenerator)(tree, {
|
|
31
32
|
skipFormat: true,
|
|
32
|
-
addTsPlugin
|
|
33
|
+
addTsPlugin,
|
|
33
34
|
formatter: _options.formatter,
|
|
34
35
|
platform: 'web',
|
|
35
36
|
}),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://
|
|
1
|
+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
2
|
|
|
3
3
|
exports[`Remix Library Generator --unitTestRunner should create the correct config files for testing with jest 1`] = `
|
|
4
4
|
"export default {
|
|
@@ -38,6 +38,7 @@ export default defineConfig(() => ({
|
|
|
38
38
|
// },
|
|
39
39
|
test: {
|
|
40
40
|
setupFiles: ['./src/test-setup.ts'],
|
|
41
|
+
name: 'test',
|
|
41
42
|
watch: false,
|
|
42
43
|
globals: true,
|
|
43
44
|
environment: 'jsdom',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"library.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/remix/src/generators/library/library.impl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAe,iBAAiB,EAAoB,MAAM,YAAY,CAAC;AAS9E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"library.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/remix/src/generators/library/library.impl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAe,iBAAiB,EAAoB,MAAM,YAAY,CAAC;AAS9E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAQvD,wBAAsB,qBAAqB,CACzC,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,sBAAsB,8BAO/B;AAED,wBAAsB,6BAA6B,CACjD,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,sBAAsB,8BAoE/B;AAED,eAAe,qBAAqB,CAAC"}
|
|
@@ -17,15 +17,17 @@ async function remixLibraryGenerator(tree, schema) {
|
|
|
17
17
|
}
|
|
18
18
|
async function remixLibraryGeneratorInternal(tree, schema) {
|
|
19
19
|
const tasks = [];
|
|
20
|
-
const
|
|
21
|
-
if (options.isUsingTsSolutionConfig) {
|
|
22
|
-
await (0, ts_solution_setup_1.addProjectToTsSolutionWorkspace)(tree, options.projectRoot);
|
|
23
|
-
}
|
|
20
|
+
const addTsPlugin = (0, ts_solution_setup_1.shouldConfigureTsSolutionSetup)(tree, schema.addPlugin);
|
|
24
21
|
const jsInitTask = await (0, js_1.initGenerator)(tree, {
|
|
25
|
-
js:
|
|
22
|
+
js: schema.js,
|
|
23
|
+
addTsPlugin,
|
|
26
24
|
skipFormat: true,
|
|
27
25
|
});
|
|
28
26
|
tasks.push(jsInitTask);
|
|
27
|
+
const options = await (0, lib_1.normalizeOptions)(tree, schema);
|
|
28
|
+
if (options.isUsingTsSolutionConfig) {
|
|
29
|
+
await (0, ts_solution_setup_1.addProjectToTsSolutionWorkspace)(tree, options.projectRoot);
|
|
30
|
+
}
|
|
29
31
|
const libGenTask = await (0, react_1.libraryGenerator)(tree, {
|
|
30
32
|
directory: options.directory,
|
|
31
33
|
name: options.name,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://
|
|
1
|
+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
2
|
|
|
3
3
|
exports[`Storybook Configuration it should create a storybook configuration and use react-vite framework with testing framework jest 1`] = `
|
|
4
4
|
"/// <reference types="vitest" />
|
|
@@ -102,6 +102,7 @@ export default defineConfig(() => ({
|
|
|
102
102
|
// },
|
|
103
103
|
test: {
|
|
104
104
|
setupFiles: ['./src/test-setup.ts'],
|
|
105
|
+
name: 'storybook-test',
|
|
105
106
|
watch: false,
|
|
106
107
|
globals: true,
|
|
107
108
|
environment: 'jsdom',
|