@@ -63,6 +63,17 @@ serve.builder = function(cli) {
6363 default : false ,
6464 type : "boolean"
6565 } )
66+ . option ( "cache" , {
67+ describe :
68+ "Cache mode to use for building UI5 projects. " +
69+ "The 'Default' behavior is to always use the cache if available. 'Force' uses the cache only " +
70+ "(if it's unavailable or invalid, the build fails). 'Read-only' does not create or update any " +
71+ "cache but makes use of a cache if available. 'Off' does not use any cache and always triggers " +
72+ "a rebuild of the project" ,
73+ type : "string" ,
74+ default : "Default" ,
75+ choices : [ "Default" , "Force" , "ReadOnly" , "Off" ] ,
76+ } )
6677 . option ( "framework-version" , {
6778 describe : "Overrides the framework version defined by the project. " +
6879 "Takes the same value as the version part of \"ui5 use\"" ,
@@ -94,17 +105,6 @@ serve.builder = function(cli) {
94105 defaultDescription : "Default" ,
95106 choices : [ "Default" , "Force" , "Off" ] ,
96107 } )
97- . option ( "cache" , {
98- describe :
99- "Cache mode to use for building UI5 projects. " +
100- "The 'Default' behavior is to always use the cache if available. 'Force' uses the cache only " +
101- "(if it's unavailable or invalid, the build fails). 'Read-only' does not create or update any " +
102- "cache but makes use of a cache if available. 'Off' does not use any cache and always triggers " +
103- "a rebuild of the project" ,
104- type : "string" ,
105- default : "Default" ,
106- choices : [ "Default" , "Force" , "ReadOnly" , "Off" ] ,
107- } )
108108 . example ( "ui5 serve" , "Start a web server for the current project" )
109109 . example ( "ui5 serve --h2" , "Enable the HTTP/2 protocol for the web server (requires SSL certificate)" )
110110 . example ( "ui5 serve --config /path/to/ui5.yaml" , "Use the project configuration from a custom path" )
0 commit comments