@cedarjs/cli 1.0.0-canary.12971 → 1.0.0-canary.12974
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.
|
@@ -28,7 +28,12 @@ function createCommand(componentName, positionalsObj = {}) {
|
|
|
28
28
|
function createDescription(componentName) {
|
|
29
29
|
return `Generate a ${componentName} component`;
|
|
30
30
|
}
|
|
31
|
-
function createBuilder({
|
|
31
|
+
function createBuilder({
|
|
32
|
+
componentName,
|
|
33
|
+
optionsObj,
|
|
34
|
+
positionalsObj,
|
|
35
|
+
addStories
|
|
36
|
+
}) {
|
|
32
37
|
return (yargs) => {
|
|
33
38
|
yargs.positional("name", {
|
|
34
39
|
description: `Name of the ${componentName}`,
|
|
@@ -41,9 +46,6 @@ function createBuilder({ componentName, optionsObj, positionalsObj }) {
|
|
|
41
46
|
).option("tests", {
|
|
42
47
|
description: "Generate test files",
|
|
43
48
|
type: "boolean"
|
|
44
|
-
}).option("stories", {
|
|
45
|
-
description: "Generate storybook files",
|
|
46
|
-
type: "boolean"
|
|
47
49
|
}).option("verbose", {
|
|
48
50
|
description: "Print all logs",
|
|
49
51
|
type: "boolean",
|
|
@@ -53,6 +55,12 @@ function createBuilder({ componentName, optionsObj, positionalsObj }) {
|
|
|
53
55
|
type: "boolean",
|
|
54
56
|
default: true
|
|
55
57
|
});
|
|
58
|
+
if (addStories || typeof addStories === "undefined") {
|
|
59
|
+
yargs.option("stories", {
|
|
60
|
+
description: "Generate storybook files",
|
|
61
|
+
type: "boolean"
|
|
62
|
+
});
|
|
63
|
+
}
|
|
56
64
|
Object.entries(positionalsObj || {}).forEach(([option, config]) => {
|
|
57
65
|
yargs.positional(option, config);
|
|
58
66
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/cli",
|
|
3
|
-
"version": "1.0.0-canary.
|
|
3
|
+
"version": "1.0.0-canary.12974+a4d76d5e2",
|
|
4
4
|
"description": "The CedarJS Command Line",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -31,15 +31,15 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@babel/preset-typescript": "7.28.5",
|
|
33
33
|
"@babel/runtime-corejs3": "7.28.4",
|
|
34
|
-
"@cedarjs/api-server": "1.0.0-canary.
|
|
35
|
-
"@cedarjs/cli-helpers": "1.0.0-canary.
|
|
36
|
-
"@cedarjs/fastify-web": "1.0.0-canary.
|
|
37
|
-
"@cedarjs/internal": "1.0.0-canary.
|
|
38
|
-
"@cedarjs/prerender": "1.0.0-canary.
|
|
39
|
-
"@cedarjs/project-config": "1.0.0-canary.
|
|
40
|
-
"@cedarjs/structure": "1.0.0-canary.
|
|
41
|
-
"@cedarjs/telemetry": "1.0.0-canary.
|
|
42
|
-
"@cedarjs/web-server": "1.0.0-canary.
|
|
34
|
+
"@cedarjs/api-server": "1.0.0-canary.12974",
|
|
35
|
+
"@cedarjs/cli-helpers": "1.0.0-canary.12974",
|
|
36
|
+
"@cedarjs/fastify-web": "1.0.0-canary.12974",
|
|
37
|
+
"@cedarjs/internal": "1.0.0-canary.12974",
|
|
38
|
+
"@cedarjs/prerender": "1.0.0-canary.12974",
|
|
39
|
+
"@cedarjs/project-config": "1.0.0-canary.12974",
|
|
40
|
+
"@cedarjs/structure": "1.0.0-canary.12974",
|
|
41
|
+
"@cedarjs/telemetry": "1.0.0-canary.12974",
|
|
42
|
+
"@cedarjs/web-server": "1.0.0-canary.12974",
|
|
43
43
|
"@listr2/prompt-adapter-enquirer": "2.0.16",
|
|
44
44
|
"@opentelemetry/api": "1.8.0",
|
|
45
45
|
"@opentelemetry/core": "1.22.0",
|
|
@@ -101,5 +101,5 @@
|
|
|
101
101
|
"publishConfig": {
|
|
102
102
|
"access": "public"
|
|
103
103
|
},
|
|
104
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "a4d76d5e2d9eb6e15e38c3956e3cf30d735a73df"
|
|
105
105
|
}
|