create-nx-workspace 18.1.0 → 18.1.1
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.
|
@@ -14,7 +14,7 @@ interface ReactArguments extends BaseArguments {
|
|
|
14
14
|
stack: 'react';
|
|
15
15
|
workspaceType: 'standalone' | 'integrated';
|
|
16
16
|
appName: string;
|
|
17
|
-
framework: 'none' | 'next';
|
|
17
|
+
framework: 'none' | 'next' | 'remix';
|
|
18
18
|
style: string;
|
|
19
19
|
bundler: 'webpack' | 'vite' | 'rspack';
|
|
20
20
|
nextAppDir: boolean;
|
|
@@ -247,6 +247,8 @@ async function determineStack(parsedArgs) {
|
|
|
247
247
|
case preset_1.Preset.ReactMonorepo:
|
|
248
248
|
case preset_1.Preset.NextJs:
|
|
249
249
|
case preset_1.Preset.NextJsStandalone:
|
|
250
|
+
case preset_1.Preset.RemixStandalone:
|
|
251
|
+
case preset_1.Preset.RemixMonorepo:
|
|
250
252
|
return 'react';
|
|
251
253
|
case preset_1.Preset.Vue:
|
|
252
254
|
case preset_1.Preset.VueStandalone:
|
|
@@ -374,7 +376,8 @@ async function determineReactOptions(parsedArgs) {
|
|
|
374
376
|
if (parsedArgs.preset && parsedArgs.preset !== preset_1.Preset.React) {
|
|
375
377
|
preset = parsedArgs.preset;
|
|
376
378
|
if (preset === preset_1.Preset.ReactStandalone ||
|
|
377
|
-
preset === preset_1.Preset.NextJsStandalone
|
|
379
|
+
preset === preset_1.Preset.NextJsStandalone ||
|
|
380
|
+
preset === preset_1.Preset.RemixStandalone) {
|
|
378
381
|
appName = parsedArgs.appName ?? parsedArgs.name;
|
|
379
382
|
}
|
|
380
383
|
else {
|
|
@@ -402,6 +405,14 @@ async function determineReactOptions(parsedArgs) {
|
|
|
402
405
|
preset = preset_1.Preset.NextJs;
|
|
403
406
|
}
|
|
404
407
|
}
|
|
408
|
+
else if (framework === 'remix') {
|
|
409
|
+
if (workspaceType === 'standalone') {
|
|
410
|
+
preset = preset_1.Preset.RemixStandalone;
|
|
411
|
+
}
|
|
412
|
+
else {
|
|
413
|
+
preset = preset_1.Preset.RemixMonorepo;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
405
416
|
else if (framework === 'react-native') {
|
|
406
417
|
preset = preset_1.Preset.ReactNative;
|
|
407
418
|
}
|
|
@@ -426,6 +437,10 @@ async function determineReactOptions(parsedArgs) {
|
|
|
426
437
|
nextSrcDir = await determineNextSrcDir(parsedArgs);
|
|
427
438
|
e2eTestRunner = await determineE2eTestRunner(parsedArgs);
|
|
428
439
|
}
|
|
440
|
+
else if (preset === preset_1.Preset.RemixMonorepo ||
|
|
441
|
+
preset === preset_1.Preset.RemixStandalone) {
|
|
442
|
+
e2eTestRunner = await determineE2eTestRunner(parsedArgs);
|
|
443
|
+
}
|
|
429
444
|
if (parsedArgs.style) {
|
|
430
445
|
style = parsedArgs.style;
|
|
431
446
|
}
|
|
@@ -837,6 +852,10 @@ async function determineReactFramework(parsedArgs) {
|
|
|
837
852
|
name: 'nextjs',
|
|
838
853
|
message: 'Next.js [ https://nextjs.org/ ]',
|
|
839
854
|
},
|
|
855
|
+
{
|
|
856
|
+
name: 'remix',
|
|
857
|
+
message: 'Remix [ https://remix.run/ ]',
|
|
858
|
+
},
|
|
840
859
|
{
|
|
841
860
|
name: 'expo',
|
|
842
861
|
message: 'Expo [ https://expo.io/ ]',
|
|
@@ -931,7 +950,7 @@ async function determineVueFramework(parsedArgs) {
|
|
|
931
950
|
{
|
|
932
951
|
name: 'none',
|
|
933
952
|
message: 'None',
|
|
934
|
-
hint: ' I only want
|
|
953
|
+
hint: ' I only want Vue',
|
|
935
954
|
},
|
|
936
955
|
{
|
|
937
956
|
name: 'nuxt',
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@ function pointToTutorialAndCourse(preset) {
|
|
|
12
12
|
output_1.output.note({
|
|
13
13
|
title,
|
|
14
14
|
bodyLines: [
|
|
15
|
-
`https://nx.dev/getting-started/tutorials/
|
|
15
|
+
`https://nx.dev/getting-started/tutorials/npm-workspaces-tutorial`,
|
|
16
16
|
],
|
|
17
17
|
});
|
|
18
18
|
break;
|
|
@@ -15,6 +15,8 @@ export declare enum Preset {
|
|
|
15
15
|
NuxtStandalone = "nuxt-standalone",
|
|
16
16
|
NextJs = "next",
|
|
17
17
|
NextJsStandalone = "nextjs-standalone",
|
|
18
|
+
RemixMonorepo = "remix-monorepo",
|
|
19
|
+
RemixStandalone = "remix-standalone",
|
|
18
20
|
ReactNative = "react-native",
|
|
19
21
|
Expo = "expo",
|
|
20
22
|
Nest = "nest",
|
|
@@ -19,6 +19,8 @@ var Preset;
|
|
|
19
19
|
Preset["NuxtStandalone"] = "nuxt-standalone";
|
|
20
20
|
Preset["NextJs"] = "next";
|
|
21
21
|
Preset["NextJsStandalone"] = "nextjs-standalone";
|
|
22
|
+
Preset["RemixMonorepo"] = "remix-monorepo";
|
|
23
|
+
Preset["RemixStandalone"] = "remix-standalone";
|
|
22
24
|
Preset["ReactNative"] = "react-native";
|
|
23
25
|
Preset["Expo"] = "expo";
|
|
24
26
|
Preset["Nest"] = "nest";
|