@@ -31,6 +31,12 @@ export interface IRushServePluginOptions {
3131 */
3232 buildStatusWebSocketPath ?: string ;
3333
34+ /**
35+ * The URL path for the Rush serve dashboard. If specified, the plugin logs the full dashboard URL
36+ * after the server starts.
37+ */
38+ dashboardServePath ?: string ;
39+
3440 /**
3541 * The name of a parameter that Rush is configured to use to pass a port number to underlying operations.
3642 * If specified, the plugin will ensure the value is synchronized with the port used for its server.
@@ -59,20 +65,23 @@ export class RushServePlugin implements IRushPlugin {
5965 private readonly _globalRoutingRules : IGlobalRoutingRuleJson [ ] ;
6066 private readonly _logServePath : string | undefined ;
6167 private readonly _buildStatusWebSocketPath : string | undefined ;
68+ private readonly _dashboardServePath : string | undefined ;
6269
6370 public constructor ( options : IRushServePluginOptions ) {
6471 const {
6572 phasedCommands,
6673 portParameterLongName,
6774 globalRouting = [ ] ,
6875 logServePath,
69- buildStatusWebSocketPath
76+ buildStatusWebSocketPath,
77+ dashboardServePath
7078 } = options ;
7179 this . _phasedCommands = new Set ( phasedCommands ) ;
7280 this . _portParameterLongName = portParameterLongName ;
7381 this . _globalRoutingRules = globalRouting ;
7482 this . _logServePath = logServePath ;
7583 this . _buildStatusWebSocketPath = buildStatusWebSocketPath ;
84+ this . _dashboardServePath = dashboardServePath ;
7685 }
7786
7887 public apply ( rushSession : RushSession , rushConfiguration : RushConfiguration ) : void {
@@ -100,7 +109,8 @@ export class RushServePlugin implements IRushPlugin {
100109 portParameterLongName : this . _portParameterLongName ,
101110 logServePath : this . _logServePath ,
102111 globalRoutingRules,
103- buildStatusWebSocketPath : this . _buildStatusWebSocketPath
112+ buildStatusWebSocketPath : this . _buildStatusWebSocketPath ,
113+ dashboardServePath : this . _dashboardServePath
104114 } ) ;
105115 } ;
106116
0 commit comments