@nx/remix 21.4.0-beta.1 → 21.4.0-beta.11

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/remix",
3
- "version": "21.4.0-beta.1",
3
+ "version": "21.4.0-beta.11",
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.1",
33
- "@nx/js": "21.4.0-beta.1",
34
- "@nx/react": "21.4.0-beta.1",
35
- "@nx/workspace": "21.4.0-beta.1",
32
+ "@nx/devkit": "21.4.0-beta.11",
33
+ "@nx/js": "21.4.0-beta.11",
34
+ "@nx/react": "21.4.0-beta.11",
35
+ "@nx/workspace": "21.4.0-beta.11",
36
36
  "tslib": "^2.3.1",
37
37
  "@phenomnomnominal/tsquery": "~5.0.1"
38
38
  },
39
39
  "devDependencies": {
40
- "nx": "21.4.0-beta.1"
40
+ "nx": "21.4.0-beta.11"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "@remix-run/dev": "^2.14.0"
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
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;AAOlD,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,sBAAsB,8BAOhC;AAED,wBAAsB,iCAAiC,CACrD,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,sBAAsB,8BAySjC;AAED,eAAe,yBAAyB,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: _options.useTsSolution,
33
+ addTsPlugin,
33
34
  formatter: _options.formatter,
34
35
  platform: 'web',
35
36
  }),
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
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;AAOvD,wBAAsB,qBAAqB,CACzC,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,sBAAsB,8BAO/B;AAED,wBAAsB,6BAA6B,CACjD,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,sBAAsB,8BAiE/B;AAED,eAAe,qBAAqB,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 options = await (0, lib_1.normalizeOptions)(tree, schema);
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: options.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://goo.gl/fbAQLP
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',