create-nx-workspace 20.1.2 โ 20.1.4
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/bin/create-nx-workspace.js +3 -3
- package/package.json +1 -1
- package/src/utils/nx/nx-cloud.d.ts +1 -1
- package/src/utils/output.js +0 -1
- package/src/utils/social-information.d.ts +1 -0
- package/src/utils/social-information.js +14 -0
- package/src/utils/preset/point-to-tutorial-and-course.d.ts +0 -2
- package/src/utils/preset/point-to-tutorial-and-course.js +0 -73
- package/src/utils/preset/preset-options.d.ts +0 -5
- package/src/utils/preset/preset-options.js +0 -42
|
@@ -8,7 +8,6 @@ const create_workspace_1 = require("../src/create-workspace");
|
|
|
8
8
|
const preset_1 = require("../src/utils/preset/preset");
|
|
9
9
|
const output_1 = require("../src/utils/output");
|
|
10
10
|
const nx_version_1 = require("../src/utils/nx/nx-version");
|
|
11
|
-
const point_to_tutorial_and_course_1 = require("../src/utils/preset/point-to-tutorial-and-course");
|
|
12
11
|
const decorator_1 = require("./decorator");
|
|
13
12
|
const get_third_party_preset_1 = require("../src/utils/preset/get-third-party-preset");
|
|
14
13
|
const prompts_1 = require("../src/internal-utils/prompts");
|
|
@@ -17,6 +16,7 @@ const ab_testing_1 = require("../src/utils/nx/ab-testing");
|
|
|
17
16
|
const error_utils_1 = require("../src/utils/error-utils");
|
|
18
17
|
const fs_1 = require("fs");
|
|
19
18
|
const is_ci_1 = require("../src/utils/ci/is-ci");
|
|
19
|
+
const social_information_1 = require("../src/utils/social-information");
|
|
20
20
|
exports.commandsObject = yargs
|
|
21
21
|
.wrap(yargs.terminalWidth())
|
|
22
22
|
.parserConfiguration({
|
|
@@ -126,10 +126,10 @@ async function main(parsedArgs) {
|
|
|
126
126
|
],
|
|
127
127
|
});
|
|
128
128
|
if (parsedArgs.nxCloud && workspaceInfo.nxCloudInfo) {
|
|
129
|
-
|
|
129
|
+
process.stdout.write(workspaceInfo.nxCloudInfo);
|
|
130
130
|
}
|
|
131
131
|
if ((0, preset_1.isKnownPreset)(parsedArgs.preset)) {
|
|
132
|
-
(0,
|
|
132
|
+
(0, social_information_1.printSocialInformation)();
|
|
133
133
|
}
|
|
134
134
|
else {
|
|
135
135
|
output_1.output.log({
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type NxCloud = 'yes' | 'github' | 'circleci' | 'skip';
|
|
1
|
+
export type NxCloud = 'yes' | 'github' | 'gitlab' | 'azure' | 'bitbucket-pipelines' | 'circleci' | 'skip';
|
|
2
2
|
export declare function readNxCloudToken(directory: string): string | undefined;
|
|
3
3
|
export declare function getOnboardingInfo(nxCloud: NxCloud, token: string, directory: string, useGithub?: boolean): Promise<{
|
|
4
4
|
output: string;
|
package/src/utils/output.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function printSocialInformation(): void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.printSocialInformation = printSocialInformation;
|
|
4
|
+
const output_1 = require("./output");
|
|
5
|
+
function printSocialInformation() {
|
|
6
|
+
output_1.output.success({
|
|
7
|
+
title: 'Welcome to the Nx community! ๐',
|
|
8
|
+
bodyLines: [
|
|
9
|
+
'๐ Star Nx on GitHub: https://github.com/nrwl/nx',
|
|
10
|
+
'๐ข Stay up to date on X: https://x.com/nxdevtools',
|
|
11
|
+
'๐ฌ Discuss Nx on Discord: https://go.nx.dev/community',
|
|
12
|
+
],
|
|
13
|
+
});
|
|
14
|
+
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.pointToTutorialAndCourse = pointToTutorialAndCourse;
|
|
4
|
-
const output_1 = require("../output");
|
|
5
|
-
const preset_1 = require("./preset");
|
|
6
|
-
function pointToTutorialAndCourse(preset) {
|
|
7
|
-
const title = `First time using Nx? Check out this interactive Nx tutorial.`;
|
|
8
|
-
switch (preset) {
|
|
9
|
-
case preset_1.Preset.NPM:
|
|
10
|
-
case preset_1.Preset.Apps:
|
|
11
|
-
output_1.output.addVerticalSeparator();
|
|
12
|
-
output_1.output.note({
|
|
13
|
-
title,
|
|
14
|
-
bodyLines: [
|
|
15
|
-
`https://nx.dev/getting-started/tutorials/npm-workspaces-tutorial`,
|
|
16
|
-
],
|
|
17
|
-
});
|
|
18
|
-
break;
|
|
19
|
-
case preset_1.Preset.TS:
|
|
20
|
-
output_1.output.addVerticalSeparator();
|
|
21
|
-
output_1.output.note({
|
|
22
|
-
title,
|
|
23
|
-
bodyLines: [
|
|
24
|
-
`https://nx.dev/getting-started/tutorials/integrated-repo-tutorial`,
|
|
25
|
-
],
|
|
26
|
-
});
|
|
27
|
-
break;
|
|
28
|
-
case preset_1.Preset.ReactStandalone:
|
|
29
|
-
output_1.output.addVerticalSeparator();
|
|
30
|
-
output_1.output.note({
|
|
31
|
-
title,
|
|
32
|
-
bodyLines: [
|
|
33
|
-
`https://nx.dev/getting-started/tutorials/react-standalone-tutorial`,
|
|
34
|
-
],
|
|
35
|
-
});
|
|
36
|
-
break;
|
|
37
|
-
case preset_1.Preset.ReactMonorepo:
|
|
38
|
-
case preset_1.Preset.NextJs:
|
|
39
|
-
case preset_1.Preset.NextJsStandalone:
|
|
40
|
-
output_1.output.addVerticalSeparator();
|
|
41
|
-
output_1.output.note({
|
|
42
|
-
title,
|
|
43
|
-
bodyLines: [`https://nx.dev/react-tutorial/1-code-generation`],
|
|
44
|
-
});
|
|
45
|
-
break;
|
|
46
|
-
case preset_1.Preset.AngularStandalone:
|
|
47
|
-
output_1.output.addVerticalSeparator();
|
|
48
|
-
output_1.output.note({
|
|
49
|
-
title,
|
|
50
|
-
bodyLines: [
|
|
51
|
-
`https://nx.dev/getting-started/tutorials/angular-standalone-tutorial`,
|
|
52
|
-
],
|
|
53
|
-
});
|
|
54
|
-
break;
|
|
55
|
-
case preset_1.Preset.AngularMonorepo:
|
|
56
|
-
output_1.output.addVerticalSeparator();
|
|
57
|
-
output_1.output.note({
|
|
58
|
-
title,
|
|
59
|
-
bodyLines: [`https://nx.dev/angular-tutorial/1-code-generation`],
|
|
60
|
-
});
|
|
61
|
-
break;
|
|
62
|
-
case preset_1.Preset.Express:
|
|
63
|
-
case preset_1.Preset.NodeStandalone:
|
|
64
|
-
output_1.output.addVerticalSeparator();
|
|
65
|
-
output_1.output.note({
|
|
66
|
-
title,
|
|
67
|
-
bodyLines: [
|
|
68
|
-
`https://nx.dev/getting-started/tutorials/node-server-tutorial`,
|
|
69
|
-
],
|
|
70
|
-
});
|
|
71
|
-
break;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.presetOptions = void 0;
|
|
4
|
-
const preset_1 = require("./preset");
|
|
5
|
-
exports.presetOptions = [
|
|
6
|
-
{
|
|
7
|
-
name: preset_1.Preset.Apps,
|
|
8
|
-
message: 'apps [an empty monorepo with no plugins with a layout that works best for building apps]',
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
name: preset_1.Preset.TS,
|
|
12
|
-
message: 'ts [an empty monorepo with the JS/TS plugin preinstalled]',
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
name: preset_1.Preset.ReactMonorepo,
|
|
16
|
-
message: 'react [a monorepo with a single React application]',
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
name: preset_1.Preset.AngularMonorepo,
|
|
20
|
-
message: 'angular [a monorepo with a single Angular application]',
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
name: preset_1.Preset.VueMonorepo,
|
|
24
|
-
message: 'vue [a monorepo with a single Vue application]',
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
name: preset_1.Preset.Nuxt,
|
|
28
|
-
message: 'nuxt [a monorepo with a single Nuxt application]',
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
name: preset_1.Preset.NextJs,
|
|
32
|
-
message: 'next.js [a monorepo with a single Next.js application]',
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
name: preset_1.Preset.Nest,
|
|
36
|
-
message: 'nest [a monorepo with a single Nest application]',
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
name: preset_1.Preset.ReactNative,
|
|
40
|
-
message: 'react-native [a monorepo with a single React Native application]',
|
|
41
|
-
},
|
|
42
|
-
];
|