@nx/remix 17.3.0-rc.1 → 17.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/remix",
3
- "version": "17.3.0-rc.1",
3
+ "version": "17.3.0",
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, 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",
@@ -28,12 +28,12 @@
28
28
  "migrations": "./migrations.json"
29
29
  },
30
30
  "dependencies": {
31
- "@nx/devkit": "17.3.0-rc.1",
32
- "@nx/js": "17.3.0-rc.1",
33
- "@nx/react": "17.3.0-rc.1",
31
+ "@nx/devkit": "17.3.0",
32
+ "@nx/js": "17.3.0",
33
+ "@nx/react": "17.3.0",
34
34
  "tslib": "^2.3.1",
35
35
  "@phenomnomnominal/tsquery": "~5.0.1",
36
- "@nrwl/remix": "17.3.0-rc.1"
36
+ "@nrwl/remix": "17.3.0"
37
37
  },
38
38
  "peerDependencies": {},
39
39
  "publishConfig": {
@@ -60,35 +60,12 @@ export default function App() {
60
60
  `;
61
61
 
62
62
  exports[`Remix Application Integrated Repo --projectNameAndRootFormat=as-provided --directory should create the application correctly 3`] = `
63
- "export default function Index() {
63
+ "import NxWelcome from '../nx-welcome';
64
+
65
+ export default function Index() {
64
66
  return (
65
- <div style={{ fontFamily: 'system-ui, sans-serif', lineHeight: '1.4' }}>
66
- <h1>Welcome to Remix</h1>
67
- <ul>
68
- <li>
69
- <a
70
- target="_blank"
71
- href="https://remix.run/tutorials/blog"
72
- rel="noreferrer"
73
- >
74
- 15m Quickstart Blog Tutorial
75
- </a>
76
- </li>
77
- <li>
78
- <a
79
- target="_blank"
80
- href="https://remix.run/tutorials/jokes"
81
- rel="noreferrer"
82
- >
83
- Deep Dive Jokes App Tutorial
84
- </a>
85
- </li>
86
- <li>
87
- <a target="_blank" href="https://remix.run/docs" rel="noreferrer">
88
- Remix Docs
89
- </a>
90
- </li>
91
- </ul>
67
+ <div>
68
+ <NxWelcome title={'test'} />
92
69
  </div>
93
70
  );
94
71
  }
@@ -155,35 +132,12 @@ export default function App() {
155
132
  `;
156
133
 
157
134
  exports[`Remix Application Integrated Repo --projectNameAndRootFormat=as-provided --directory should extract the layout directory from the directory options if it exists 3`] = `
158
- "export default function Index() {
135
+ "import NxWelcome from '../nx-welcome';
136
+
137
+ export default function Index() {
159
138
  return (
160
- <div style={{ fontFamily: 'system-ui, sans-serif', lineHeight: '1.4' }}>
161
- <h1>Welcome to Remix</h1>
162
- <ul>
163
- <li>
164
- <a
165
- target="_blank"
166
- href="https://remix.run/tutorials/blog"
167
- rel="noreferrer"
168
- >
169
- 15m Quickstart Blog Tutorial
170
- </a>
171
- </li>
172
- <li>
173
- <a
174
- target="_blank"
175
- href="https://remix.run/tutorials/jokes"
176
- rel="noreferrer"
177
- >
178
- Deep Dive Jokes App Tutorial
179
- </a>
180
- </li>
181
- <li>
182
- <a target="_blank" href="https://remix.run/docs" rel="noreferrer">
183
- Remix Docs
184
- </a>
185
- </li>
186
- </ul>
139
+ <div>
140
+ <NxWelcome title={'test'} />
187
141
  </div>
188
142
  );
189
143
  }
@@ -261,35 +215,11 @@ export default function App() {
261
215
  `;
262
216
 
263
217
  exports[`Remix Application Integrated Repo --projectNameAndRootFormat=as-provided --js should create the application correctly 3`] = `
264
- "export default function Index() {
218
+ "import NxWelcome from '../nx-welcome';
219
+ export default function Index() {
265
220
  return (
266
- <div style={{ fontFamily: 'system-ui, sans-serif', lineHeight: '1.4' }}>
267
- <h1>Welcome to Remix</h1>
268
- <ul>
269
- <li>
270
- <a
271
- target="_blank"
272
- href="https://remix.run/tutorials/blog"
273
- rel="noreferrer"
274
- >
275
- 15m Quickstart Blog Tutorial
276
- </a>
277
- </li>
278
- <li>
279
- <a
280
- target="_blank"
281
- href="https://remix.run/tutorials/jokes"
282
- rel="noreferrer"
283
- >
284
- Deep Dive Jokes App Tutorial
285
- </a>
286
- </li>
287
- <li>
288
- <a target="_blank" href="https://remix.run/docs" rel="noreferrer">
289
- Remix Docs
290
- </a>
291
- </li>
292
- </ul>
221
+ <div>
222
+ <NxWelcome title={'test'} />
293
223
  </div>
294
224
  );
295
225
  }
@@ -463,35 +393,12 @@ export default function App() {
463
393
  `;
464
394
 
465
395
  exports[`Remix Application Integrated Repo --projectNameAndRootFormat=as-provided should create the application correctly 3`] = `
466
- "export default function Index() {
396
+ "import NxWelcome from '../nx-welcome';
397
+
398
+ export default function Index() {
467
399
  return (
468
- <div style={{ fontFamily: 'system-ui, sans-serif', lineHeight: '1.4' }}>
469
- <h1>Welcome to Remix</h1>
470
- <ul>
471
- <li>
472
- <a
473
- target="_blank"
474
- href="https://remix.run/tutorials/blog"
475
- rel="noreferrer"
476
- >
477
- 15m Quickstart Blog Tutorial
478
- </a>
479
- </li>
480
- <li>
481
- <a
482
- target="_blank"
483
- href="https://remix.run/tutorials/jokes"
484
- rel="noreferrer"
485
- >
486
- Deep Dive Jokes App Tutorial
487
- </a>
488
- </li>
489
- <li>
490
- <a target="_blank" href="https://remix.run/docs" rel="noreferrer">
491
- Remix Docs
492
- </a>
493
- </li>
494
- </ul>
400
+ <div>
401
+ <NxWelcome title={'test'} />
495
402
  </div>
496
403
  );
497
404
  }
@@ -558,35 +465,12 @@ export default function App() {
558
465
  `;
559
466
 
560
467
  exports[`Remix Application Integrated Repo --projectNameAndRootFormat=derived --directory should create the application correctly 3`] = `
561
- "export default function Index() {
468
+ "import NxWelcome from '../nx-welcome';
469
+
470
+ export default function Index() {
562
471
  return (
563
- <div style={{ fontFamily: 'system-ui, sans-serif', lineHeight: '1.4' }}>
564
- <h1>Welcome to Remix</h1>
565
- <ul>
566
- <li>
567
- <a
568
- target="_blank"
569
- href="https://remix.run/tutorials/blog"
570
- rel="noreferrer"
571
- >
572
- 15m Quickstart Blog Tutorial
573
- </a>
574
- </li>
575
- <li>
576
- <a
577
- target="_blank"
578
- href="https://remix.run/tutorials/jokes"
579
- rel="noreferrer"
580
- >
581
- Deep Dive Jokes App Tutorial
582
- </a>
583
- </li>
584
- <li>
585
- <a target="_blank" href="https://remix.run/docs" rel="noreferrer">
586
- Remix Docs
587
- </a>
588
- </li>
589
- </ul>
472
+ <div>
473
+ <NxWelcome title={'demo-test'} />
590
474
  </div>
591
475
  );
592
476
  }
@@ -653,35 +537,12 @@ export default function App() {
653
537
  `;
654
538
 
655
539
  exports[`Remix Application Integrated Repo --projectNameAndRootFormat=derived --directory should extract the layout directory from the directory options if it exists 3`] = `
656
- "export default function Index() {
540
+ "import NxWelcome from '../nx-welcome';
541
+
542
+ export default function Index() {
657
543
  return (
658
- <div style={{ fontFamily: 'system-ui, sans-serif', lineHeight: '1.4' }}>
659
- <h1>Welcome to Remix</h1>
660
- <ul>
661
- <li>
662
- <a
663
- target="_blank"
664
- href="https://remix.run/tutorials/blog"
665
- rel="noreferrer"
666
- >
667
- 15m Quickstart Blog Tutorial
668
- </a>
669
- </li>
670
- <li>
671
- <a
672
- target="_blank"
673
- href="https://remix.run/tutorials/jokes"
674
- rel="noreferrer"
675
- >
676
- Deep Dive Jokes App Tutorial
677
- </a>
678
- </li>
679
- <li>
680
- <a target="_blank" href="https://remix.run/docs" rel="noreferrer">
681
- Remix Docs
682
- </a>
683
- </li>
684
- </ul>
544
+ <div>
545
+ <NxWelcome title={'demo-test'} />
685
546
  </div>
686
547
  );
687
548
  }
@@ -759,35 +620,11 @@ export default function App() {
759
620
  `;
760
621
 
761
622
  exports[`Remix Application Integrated Repo --projectNameAndRootFormat=derived --js should create the application correctly 3`] = `
762
- "export default function Index() {
623
+ "import NxWelcome from '../nx-welcome';
624
+ export default function Index() {
763
625
  return (
764
- <div style={{ fontFamily: 'system-ui, sans-serif', lineHeight: '1.4' }}>
765
- <h1>Welcome to Remix</h1>
766
- <ul>
767
- <li>
768
- <a
769
- target="_blank"
770
- href="https://remix.run/tutorials/blog"
771
- rel="noreferrer"
772
- >
773
- 15m Quickstart Blog Tutorial
774
- </a>
775
- </li>
776
- <li>
777
- <a
778
- target="_blank"
779
- href="https://remix.run/tutorials/jokes"
780
- rel="noreferrer"
781
- >
782
- Deep Dive Jokes App Tutorial
783
- </a>
784
- </li>
785
- <li>
786
- <a target="_blank" href="https://remix.run/docs" rel="noreferrer">
787
- Remix Docs
788
- </a>
789
- </li>
790
- </ul>
626
+ <div>
627
+ <NxWelcome title={'test'} />
791
628
  </div>
792
629
  );
793
630
  }
@@ -961,35 +798,12 @@ export default function App() {
961
798
  `;
962
799
 
963
800
  exports[`Remix Application Integrated Repo --projectNameAndRootFormat=derived should create the application correctly 3`] = `
964
- "export default function Index() {
801
+ "import NxWelcome from '../nx-welcome';
802
+
803
+ export default function Index() {
965
804
  return (
966
- <div style={{ fontFamily: 'system-ui, sans-serif', lineHeight: '1.4' }}>
967
- <h1>Welcome to Remix</h1>
968
- <ul>
969
- <li>
970
- <a
971
- target="_blank"
972
- href="https://remix.run/tutorials/blog"
973
- rel="noreferrer"
974
- >
975
- 15m Quickstart Blog Tutorial
976
- </a>
977
- </li>
978
- <li>
979
- <a
980
- target="_blank"
981
- href="https://remix.run/tutorials/jokes"
982
- rel="noreferrer"
983
- >
984
- Deep Dive Jokes App Tutorial
985
- </a>
986
- </li>
987
- <li>
988
- <a target="_blank" href="https://remix.run/docs" rel="noreferrer">
989
- Remix Docs
990
- </a>
991
- </li>
992
- </ul>
805
+ <div>
806
+ <NxWelcome title={'test'} />
993
807
  </div>
994
808
  );
995
809
  }
@@ -1067,35 +881,11 @@ export default function App() {
1067
881
  `;
1068
882
 
1069
883
  exports[`Remix Application Standalone Project Repo --js should create the application correctly 3`] = `
1070
- "export default function Index() {
884
+ "import NxWelcome from '../nx-welcome';
885
+ export default function Index() {
1071
886
  return (
1072
- <div style={{ fontFamily: 'system-ui, sans-serif', lineHeight: '1.4' }}>
1073
- <h1>Welcome to Remix</h1>
1074
- <ul>
1075
- <li>
1076
- <a
1077
- target="_blank"
1078
- href="https://remix.run/tutorials/blog"
1079
- rel="noreferrer"
1080
- >
1081
- 15m Quickstart Blog Tutorial
1082
- </a>
1083
- </li>
1084
- <li>
1085
- <a
1086
- target="_blank"
1087
- href="https://remix.run/tutorials/jokes"
1088
- rel="noreferrer"
1089
- >
1090
- Deep Dive Jokes App Tutorial
1091
- </a>
1092
- </li>
1093
- <li>
1094
- <a target="_blank" href="https://remix.run/docs" rel="noreferrer">
1095
- Remix Docs
1096
- </a>
1097
- </li>
1098
- </ul>
887
+ <div>
888
+ <NxWelcome title={'test'} />
1099
889
  </div>
1100
890
  );
1101
891
  }
@@ -1164,7 +954,7 @@ test('renders loader data', async () => {
1164
954
 
1165
955
  render(<RemixStub />);
1166
956
 
1167
- await waitFor(() => screen.findByText('Welcome to Remix'));
957
+ await waitFor(() => screen.findByText('Hello there,'));
1168
958
  });
1169
959
  "
1170
960
  `;
@@ -1241,7 +1031,7 @@ test('renders loader data', async () => {
1241
1031
 
1242
1032
  render(<RemixStub />);
1243
1033
 
1244
- await waitFor(() => screen.findByText('Welcome to Remix'));
1034
+ await waitFor(() => screen.findByText('Hello there,'));
1245
1035
  });
1246
1036
  "
1247
1037
  `;
@@ -1313,35 +1103,12 @@ export default function App() {
1313
1103
  `;
1314
1104
 
1315
1105
  exports[`Remix Application Standalone Project Repo should create the application correctly 3`] = `
1316
- "export default function Index() {
1106
+ "import NxWelcome from '../nx-welcome';
1107
+
1108
+ export default function Index() {
1317
1109
  return (
1318
- <div style={{ fontFamily: 'system-ui, sans-serif', lineHeight: '1.4' }}>
1319
- <h1>Welcome to Remix</h1>
1320
- <ul>
1321
- <li>
1322
- <a
1323
- target="_blank"
1324
- href="https://remix.run/tutorials/blog"
1325
- rel="noreferrer"
1326
- >
1327
- 15m Quickstart Blog Tutorial
1328
- </a>
1329
- </li>
1330
- <li>
1331
- <a
1332
- target="_blank"
1333
- href="https://remix.run/tutorials/jokes"
1334
- rel="noreferrer"
1335
- >
1336
- Deep Dive Jokes App Tutorial
1337
- </a>
1338
- </li>
1339
- <li>
1340
- <a target="_blank" href="https://remix.run/docs" rel="noreferrer">
1341
- Remix Docs
1342
- </a>
1343
- </li>
1344
- </ul>
1110
+ <div>
1111
+ <NxWelcome title={'test'} />
1345
1112
  </div>
1346
1113
  );
1347
1114
  }
@@ -1363,7 +1130,7 @@ test('renders loader data', async () => {
1363
1130
 
1364
1131
  render(<RemixStub />);
1365
1132
 
1366
- await waitFor(() => screen.findByText('Welcome to Remix'));
1133
+ await waitFor(() => screen.findByText('Hello there,'));
1367
1134
  });
1368
1135
  "
1369
1136
  `;
@@ -44,7 +44,7 @@ async function default_1(tree, _options) {
44
44
  },
45
45
  },
46
46
  typecheck: {
47
- command: `tsc`,
47
+ command: `tsc --project tsconfig.app.json`,
48
48
  options: {
49
49
  cwd: options.projectRoot,
50
50
  },