create-nx-plugin 19.8.0-canary.20240919-7f4a877 → 19.8.0
Sign up to get free protection for your applications and to get access to all the features.
- package/bin/create-nx-plugin.js +14 -14
- package/package.json +3 -3
package/bin/create-nx-plugin.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
4
4
|
exports.commandsObject = exports.yargsDecorator = void 0;
|
5
|
-
const
|
5
|
+
const pc = require("picocolors");
|
6
6
|
const enquirer = require("enquirer");
|
7
7
|
const yargs = require("yargs");
|
8
8
|
const prompts_1 = require("create-nx-workspace/src/internal-utils/prompts");
|
@@ -12,16 +12,16 @@ const output_1 = require("create-nx-workspace/src/utils/output");
|
|
12
12
|
const show_nx_warning_1 = require("create-nx-workspace/src/utils/nx/show-nx-warning");
|
13
13
|
const ab_testing_1 = require("create-nx-workspace/src/utils/nx/ab-testing");
|
14
14
|
exports.yargsDecorator = {
|
15
|
-
'Options:': `${
|
16
|
-
'Examples:': `${
|
17
|
-
boolean: `${
|
18
|
-
count: `${
|
19
|
-
string: `${
|
20
|
-
array: `${
|
21
|
-
required: `${
|
22
|
-
'default:': `${
|
23
|
-
'choices:': `${
|
24
|
-
'aliases:': `${
|
15
|
+
'Options:': `${pc.green(`Options`)}:`,
|
16
|
+
'Examples:': `${pc.green(`Examples`)}:`,
|
17
|
+
boolean: `${pc.blue(`boolean`)}`,
|
18
|
+
count: `${pc.blue(`count`)}`,
|
19
|
+
string: `${pc.blue(`string`)}`,
|
20
|
+
array: `${pc.blue(`array`)}`,
|
21
|
+
required: `${pc.blue(`required`)}`,
|
22
|
+
'default:': `${pc.blue(`default`)}:`,
|
23
|
+
'choices:': `${pc.blue(`choices`)}:`,
|
24
|
+
'aliases:': `${pc.blue(`aliases`)}:`,
|
25
25
|
};
|
26
26
|
const nxVersion = require('../package.json').version;
|
27
27
|
async function determinePluginName(parsedArgs) {
|
@@ -61,7 +61,7 @@ exports.commandsObject = yargs
|
|
61
61
|
// this is the default and only command
|
62
62
|
'$0 [name] [options]', 'Create a new Nx plugin workspace', (yargs) => (0, yargs_options_1.withOptions)(yargs
|
63
63
|
.positional('pluginName', {
|
64
|
-
describe:
|
64
|
+
describe: pc.dim(`Plugin name`),
|
65
65
|
type: 'string',
|
66
66
|
alias: ['name'],
|
67
67
|
})
|
@@ -77,9 +77,9 @@ exports.commandsObject = yargs
|
|
77
77
|
throw error;
|
78
78
|
});
|
79
79
|
}, [normalizeArgsMiddleware])
|
80
|
-
.help('help',
|
80
|
+
.help('help', pc.dim(`Show help`))
|
81
81
|
.updateLocale(exports.yargsDecorator)
|
82
|
-
.version('version',
|
82
|
+
.version('version', pc.dim(`Show version`), nxVersion);
|
83
83
|
async function main(parsedArgs) {
|
84
84
|
const populatedArguments = {
|
85
85
|
...parsedArgs,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "create-nx-plugin",
|
3
|
-
"version": "19.8.0
|
3
|
+
"version": "19.8.0",
|
4
4
|
"private": false,
|
5
5
|
"description": "This package is used to scaffold a brand-new workspace used to develop an Nx plugin, and sets up a pre-configured plugin with the specified name. The new plugin is created with a default generator, executor, and e2e app.",
|
6
6
|
"repository": {
|
@@ -29,8 +29,8 @@
|
|
29
29
|
},
|
30
30
|
"homepage": "https://nx.dev",
|
31
31
|
"dependencies": {
|
32
|
-
"create-nx-workspace": "19.8.0
|
33
|
-
"
|
32
|
+
"create-nx-workspace": "19.8.0",
|
33
|
+
"picocolors": "^1.1.0",
|
34
34
|
"enquirer": "~2.3.6",
|
35
35
|
"tslib": "^2.3.0",
|
36
36
|
"yargs": "^17.6.2"
|