File tree 5 files changed +21
-11
lines changed
5 files changed +21
-11
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export const buildCommand = (program: Command) => {
6
6
. command ( "build" )
7
7
. description ( "Build site using Vite" )
8
8
. option (
9
- "scope <string>" ,
9
+ "-- scope <string>" ,
10
10
"The subfolder to scope the served templates from"
11
11
)
12
12
. action ( async ( options ) => {
Original file line number Diff line number Diff line change @@ -12,23 +12,33 @@ export const devCommand = (program: Command) => {
12
12
"Creates features.json, generates test data, " +
13
13
"and runs a custom local development server that is backed by Vite."
14
14
)
15
- . option ( "local, noGenTestData" , "Disables dynamically generated test data" )
16
15
. option (
17
- "scope <string>" ,
16
+ "-- scope <string>" ,
18
17
"The subfolder to scope the served templates from"
19
18
)
19
+ . option ( "--local" , "Disables dynamically generated test data" )
20
20
. option (
21
- "prod-url" ,
21
+ "-- prod-url" ,
22
22
"Use production URLs, instead of /[template-name]/[external-id]" ,
23
23
true
24
24
)
25
25
. option (
26
- "open-browser" ,
26
+ "--no-prod-url" ,
27
+ "Use local URLs, such as /[template-name]/[external-id]" ,
28
+ false
29
+ )
30
+ . option (
31
+ "--open-browser" ,
27
32
"Automatically opens the browser on server start-up" ,
28
33
true
29
34
)
30
- . option ( "noInit" , "Disables automatic yext init with .yextrc file" )
31
- . option ( "noGenFeatures" , "Disable feature.json generation step" )
35
+ . option (
36
+ "--no-open-browser" ,
37
+ "Do not open the browser on server start-up" ,
38
+ false
39
+ )
40
+ . option ( "--noInit" , "Disables automatic yext init with .yextrc file" )
41
+ . option ( "--noGenFeatures" , "Disable feature.json generation step" )
32
42
. action ( async ( options ) => {
33
43
if ( ! options . noInit ) {
34
44
await autoYextInit ( ) ;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export const ciCommand = (program: Command) => {
12
12
. command ( "ci" )
13
13
. description ( "Generates ci.json file" )
14
14
. option (
15
- "scope <string>" ,
15
+ "-- scope <string>" ,
16
16
"The subfolder to scope the served templates from"
17
17
)
18
18
. action ( ( options , command ) => {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export const featureCommand = (program: Command) => {
11
11
. command ( "features" )
12
12
. description ( "Generates features.json file" )
13
13
. option (
14
- "scope <string>" ,
14
+ "-- scope <string>" ,
15
15
"The subfolder to scope the served templates from"
16
16
)
17
17
. action ( async ( options , command ) => {
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ export const prodCommand = (program: Command) => {
5
5
program
6
6
. command ( "prod" )
7
7
. description ( "Runs a custom local production server" )
8
- . option ( "noBuild" , "Disable build step" )
9
- . option ( "noRender" , "Disable render step" )
8
+ . option ( "-- noBuild" , "Disable build step" )
9
+ . option ( "-- noRender" , "Disable render step" )
10
10
. action ( async ( options ) => {
11
11
const commandName = "yext pages" ;
12
12
if ( ! options . noBuild ) await runSubprocess ( commandName , [ "build" ] ) ;
You can’t perform that action at this time.
0 commit comments