create-nx-workspace 18.1.0-beta.0 → 18.1.0-beta.2
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.
|
@@ -448,6 +448,10 @@ async function determineReactOptions(parsedArgs) {
|
|
|
448
448
|
name: 'less',
|
|
449
449
|
message: 'LESS [ https://lesscss.org ]',
|
|
450
450
|
},
|
|
451
|
+
{
|
|
452
|
+
name: 'tailwind',
|
|
453
|
+
message: 'tailwind [ https://tailwindcss.com ]',
|
|
454
|
+
},
|
|
451
455
|
{
|
|
452
456
|
name: 'styled-components',
|
|
453
457
|
message: 'styled-components [ https://styled-components.com ]',
|
package/package.json
CHANGED
package/src/utils/nx/nx-cloud.js
CHANGED
|
@@ -39,7 +39,7 @@ async function setupNxCloud(directory, packageManager, nxCloud) {
|
|
|
39
39
|
exports.setupNxCloud = setupNxCloud;
|
|
40
40
|
function printNxCloudSuccessMessage(nxCloudOut) {
|
|
41
41
|
// remove leading Nx carret and any new lines
|
|
42
|
-
const logContent = nxCloudOut.split('
|
|
42
|
+
const logContent = nxCloudOut.split('NX ')[1];
|
|
43
43
|
const indexOfTitleEnd = logContent.indexOf('\n');
|
|
44
44
|
const title = logContent.slice(0, logContent.indexOf('\n')).trim();
|
|
45
45
|
const bodyLines = logContent
|
package/src/utils/output.d.ts
CHANGED
|
@@ -16,7 +16,6 @@ export interface CLISuccessMessageConfig {
|
|
|
16
16
|
bodyLines?: string[];
|
|
17
17
|
}
|
|
18
18
|
declare class CLIOutput {
|
|
19
|
-
readonly X_PADDING = " ";
|
|
20
19
|
/**
|
|
21
20
|
* Longer dash character which forms more of a continuous line when place side to side
|
|
22
21
|
* with itself, unlike the standard dash character
|
package/src/utils/output.js
CHANGED
|
@@ -16,7 +16,6 @@ if ((0, is_ci_1.isCI)()) {
|
|
|
16
16
|
}
|
|
17
17
|
class CLIOutput {
|
|
18
18
|
constructor() {
|
|
19
|
-
this.X_PADDING = ' ';
|
|
20
19
|
/**
|
|
21
20
|
* Expose some color and other utility functions so that other parts of the codebase that need
|
|
22
21
|
* more fine-grained control of message bodies are still using a centralized
|
|
@@ -40,7 +39,7 @@ class CLIOutput {
|
|
|
40
39
|
*/
|
|
41
40
|
get VERTICAL_SEPARATOR() {
|
|
42
41
|
let divider = '';
|
|
43
|
-
for (let i = 0; i < process.stdout.columns -
|
|
42
|
+
for (let i = 0; i < process.stdout.columns - 1; i++) {
|
|
44
43
|
divider += '\u2014';
|
|
45
44
|
}
|
|
46
45
|
return divider;
|
|
@@ -49,14 +48,14 @@ class CLIOutput {
|
|
|
49
48
|
process.stdout.write(str);
|
|
50
49
|
}
|
|
51
50
|
writeOutputTitle({ color, title, }) {
|
|
52
|
-
this.writeToStdOut(
|
|
51
|
+
this.writeToStdOut(`${this.applyCLIPrefix(color, title)}${os_1.EOL}`);
|
|
53
52
|
}
|
|
54
53
|
writeOptionalOutputBody(bodyLines) {
|
|
55
54
|
if (!bodyLines) {
|
|
56
55
|
return;
|
|
57
56
|
}
|
|
58
57
|
this.addNewline();
|
|
59
|
-
bodyLines.forEach((bodyLine) => this.writeToStdOut(
|
|
58
|
+
bodyLines.forEach((bodyLine) => this.writeToStdOut(`${bodyLine}${os_1.EOL}`));
|
|
60
59
|
}
|
|
61
60
|
setCliName(name) {
|
|
62
61
|
this.cliName = name;
|
|
@@ -64,10 +63,10 @@ class CLIOutput {
|
|
|
64
63
|
applyCLIPrefix(color = 'cyan', text) {
|
|
65
64
|
let cliPrefix = '';
|
|
66
65
|
if (chalk[color]) {
|
|
67
|
-
cliPrefix =
|
|
66
|
+
cliPrefix = chalk.reset.inverse.bold[color](` ${this.cliName} `);
|
|
68
67
|
}
|
|
69
68
|
else {
|
|
70
|
-
cliPrefix =
|
|
69
|
+
cliPrefix = chalk.reset.inverse.bold.keyword(color)(` ${this.cliName} `);
|
|
71
70
|
}
|
|
72
71
|
return `${cliPrefix} ${text}`;
|
|
73
72
|
}
|
|
@@ -80,7 +79,7 @@ class CLIOutput {
|
|
|
80
79
|
this.addNewline();
|
|
81
80
|
}
|
|
82
81
|
addVerticalSeparatorWithoutNewLines(color = 'gray') {
|
|
83
|
-
this.writeToStdOut(`${
|
|
82
|
+
this.writeToStdOut(`${chalk.dim[color](this.VERTICAL_SEPARATOR)}${os_1.EOL}`);
|
|
84
83
|
}
|
|
85
84
|
error({ title, bodyLines }) {
|
|
86
85
|
this.addNewline();
|