You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/monitor/lib/monitor-options.js
+10-13Lines changed: 10 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -54,12 +54,14 @@ export class AppOptions {
54
54
* @default null
55
55
*/
56
56
this.pm2=pm2;
57
+
57
58
/**
58
59
* Optional settings for moving this app's main windows to the foreground, minimize or hide them.
59
60
* @type {WindowOptions}
60
61
* @default new WindowOptions()
61
62
*/
62
63
this.windows=windows;
64
+
63
65
/**
64
66
* Optional settings for how to log this app's output.
65
67
* @type {AppLogOptions}
@@ -84,12 +86,14 @@ export class WindowOptions {
84
86
* @default false
85
87
*/
86
88
this.foreground=foreground;
89
+
87
90
/**
88
91
* Minimize this app's windows once all apps have been launched.
89
92
* @type {boolean}
90
93
* @default false
91
94
*/
92
95
this.minimize=minimize;
96
+
93
97
/**
94
98
* Completely hide this app's windows once all apps have been launched. Helpful for headless apps, but note that this might cause issues with GUI-based apps.
95
99
*
@@ -111,6 +115,7 @@ export const LogModes = {
111
115
* @type {string}
112
116
*/
113
117
TailLogFile: 'file',
118
+
114
119
/**
115
120
* Logs directly from the app's stdout/stderr bus. Can result in interrupted logs if the buffer isn't consistently flushed by an app.
116
121
* @type {string}
@@ -134,6 +139,7 @@ export class AppLogOptions {
134
139
* @default true
135
140
*/
136
141
this.logToLaunchpadDir=logToLaunchpadDir;
142
+
137
143
/**
138
144
* How to grab the app's logs. Supported values:
139
145
* - `'file'`: Logs by tailing the app's log files. Slight lag, but can result in better formatting than bus.
@@ -142,12 +148,14 @@ export class AppLogOptions {
142
148
* @default 'file'
143
149
*/
144
150
this.mode=mode;
151
+
145
152
/**
146
153
* Whether or not to include output from `stdout`
147
154
* @type {boolean}
148
155
* @default true
149
156
*/
150
157
this.showStdout=showStdout;
158
+
151
159
/**
152
160
* Whether or not to include output from `stderr`
153
161
* @type {boolean}
@@ -162,9 +170,8 @@ export class AppLogOptions {
162
170
*/
163
171
exportclassWindowsApiOptions{
164
172
constructor({
165
-
nodeVersion ='>=17.4.0',
166
173
debounceDelay =3000,
167
-
fakeKey='control',
174
+
nodeVersion='>=17.4.0',
168
175
...rest
169
176
}={}){
170
177
/**
@@ -176,6 +183,7 @@ export class WindowsApiOptions {
176
183
* @default '>=17.4.0'
177
184
*/
178
185
this.nodeVersion=nodeVersion;
186
+
179
187
/**
180
188
* The delay until windows are ordered after launch of in ms.
181
189
*
@@ -186,17 +194,6 @@ export class WindowsApiOptions {
186
194
* @default 3000
187
195
*/
188
196
this.debounceDelay=debounceDelay;
189
-
/**
190
-
* Windows OS is very strict with when and how apps can move windows to the foreground or backgruond. As a workaround, Launchpad emulates a keypress to make the current process active.
191
-
*
192
-
* This setting configures which key is used to emulate in order to gain control over window foregrounding/backgrounding. This key gets emulated after an app launches or re-launches.
193
-
*
194
-
* @see https://robotjs.io/docs/syntax#keys for available options
195
-
* @see https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-allowsetforegroundwindow#remarks for window management requirements
0 commit comments