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
* Action that will rebuild the application. The action must return a Promise, which is resolved with at path to build artifact.
76
+
* @returns {Promise<string>} Path to build artifact (.ipa, .apk or .zip).
77
+
*/
67
78
buildAction: ()=>Promise<string>;
79
+
80
+
/**
81
+
* Path where the build result is located (directory containing .ipa, .apk or .zip).
82
+
* This is required for initial checks where LiveSync will skip the rebuild in case there's already a build result and no change requiring rebuild is made since then.
83
+
* In case it is not passed, the default output for local builds will be used.
84
+
*/
68
85
outputPath?: string;
69
86
}
70
87
88
+
/**
89
+
* Describes a LiveSync operation.
90
+
*/
71
91
interfaceILiveSyncInfo{
92
+
/**
93
+
* Directory of the project that will be synced.
94
+
*/
72
95
projectDir: string;
73
-
shouldStartWatcher: boolean;
74
-
syncAllFiles?: boolean;
96
+
97
+
/**
98
+
* Defines if the watcher should be skipped. If not passed, fs.Watcher will be started.
99
+
*/
100
+
skipWatcher?: boolean;
101
+
102
+
/**
103
+
* Defines if all project files should be watched for changes. In case it is not passed, only `app` dir of the project will be watched for changes.
104
+
* In case it is set to true, the package.json of the project and node_modules directory will also be watched, so any change there will be transferred to device(s).
105
+
*/
106
+
watchAllFiles?: boolean;
107
+
108
+
/**
109
+
* Defines if the liveEdit functionality should be used, i.e. LiveSync of .js files without restart.
* Starts LiveSync operation by rebuilding the application if necessary and starting watcher.
127
+
* @param {ILiveSyncDeviceInfo[]} deviceDescriptors Describes each device for which we would like to sync the application - identifier, outputPath and action to rebuild the app.
128
+
* @param {ILiveSyncInfo} liveSyncData Describes the LiveSync operation - for which project directory is the operation and other settings.
0 commit comments