@signageos/cli 1.8.0 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/Applet/Generate/appletGenerateCommand.js +1 -1
- package/dist/Applet/Generate/appletGenerateCommand.js.map +1 -1
- package/dist/Applet/Start/appletStartCommand.d.ts +20 -0
- package/dist/Applet/Start/appletStartCommand.js +27 -26
- package/dist/Applet/Start/appletStartCommand.js.map +1 -1
- package/dist/Applet/appletCommand.d.ts +20 -0
- package/dist/Applet/appletServerHelper.d.ts +18 -0
- package/dist/Applet/appletServerHelper.js +20 -1
- package/dist/Applet/appletServerHelper.js.map +1 -1
- package/dist/Device/Connect/connectCommand.d.ts +38 -0
- package/dist/Device/Connect/connectCommand.js +51 -21
- package/dist/Device/Connect/connectCommand.js.map +1 -1
- package/dist/Device/deviceCommand.d.ts +38 -0
- package/dist/Emulator/emulatorFactory.js +1 -1
- package/dist/Emulator/emulatorFactory.js.map +1 -1
- package/dist/parameters.d.ts +1 -0
- package/dist/parameters.js +1 -0
- package/dist/parameters.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -137,6 +137,8 @@ sos applet start
|
|
|
137
137
|
| --server-port *(optional)* | The custom server port for local machine server. | {RANDOM_PORT} |
|
|
138
138
|
| --hot-reload *(optional)* | Enable hot reload and build of applet | false |
|
|
139
139
|
| --force *(optional)* | Force start applet server of hot reload even if it is already running on a different port. Kill the running server first. | false |
|
|
140
|
+
| --detach *(optional)* | Run the applet HTTP server in the background (detached proccess) | false |
|
|
141
|
+
| --forward-server-url *(optional)* | Custom forward server URL for `sos device connect` command. | https://forward.signageos.io |
|
|
140
142
|
|
|
141
143
|
#### Applet Tests Upload
|
|
142
144
|
```bash
|
|
@@ -265,6 +267,10 @@ sos device connect
|
|
|
265
267
|
| --use-forward-server *(optional)* | Use forward server to connect to the device instead of the local network (LAN) (https://forward.signageos.io/{random-hash}). It's useful when the device is not in the same network as the local machine. | false |
|
|
266
268
|
| --server-port *(optional)* | The custom server port for local machine server. | {RANDOM_PORT} |
|
|
267
269
|
| --force *(optional)* | Force start applet server even if it is already running on a different port. Kill the running server first. | false |
|
|
270
|
+
| --applet-path *(optional)* | Root path of applet project | ${PWD}/dist |
|
|
271
|
+
| --detach *(optional)* | Run the applet HTTP server in the background (detached proccess) | false |
|
|
272
|
+
| --forward-server-url *(optional)* | Custom forward server URL. | https://forward.signageos.io |
|
|
273
|
+
| --hot-reload *(optional)* | Enable hot reload and build of applet | false |
|
|
268
274
|
|
|
269
275
|
## Debugging
|
|
270
276
|
|
|
@@ -129,7 +129,7 @@ var COMMON_SCRIPTS = {
|
|
|
129
129
|
prepare: 'npm run clean && npm run build',
|
|
130
130
|
upload: 'sos applet upload',
|
|
131
131
|
clean: 'npx rimraf dist',
|
|
132
|
-
escheck: 'es-check --module es5 dist/*.js',
|
|
132
|
+
escheck: 'npx es-check --module es5 dist/*.js',
|
|
133
133
|
postbuild: 'npm run escheck',
|
|
134
134
|
};
|
|
135
135
|
var WEBPACK_SCRIPTS = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appletGenerateCommand.js","sourceRoot":"","sources":["../../../src/Applet/Generate/appletGenerateCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6BAA+B;AAC/B,6CAA+C;AAC/C,+BAA0B;AAC1B,2BAA6B;AAC7B,iCAAmC;AACnC,qEAA8F;AAC9F,uDAAsD;AAEtD,IAAK,QAGJ;AAHD,WAAK,QAAQ;IACZ,qCAAyB,CAAA;IACzB,qCAAyB,CAAA;AAC1B,CAAC,EAHI,QAAQ,KAAR,QAAQ,QAGZ;AAED,IAAK,OAGJ;AAHD,WAAK,OAAO;IACX,8BAAmB,CAAA;IACnB,8BAAmB,CAAA;AACpB,CAAC,EAHI,OA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oCjC,EApCiC,CAoCjC,CAAC;AAEF,IAAM,eAAe,GAAG,UAAC,KAAa,IAAK,OAAA,mPAMjC,KAAK,oDAGF,KAAK,yDAIjB,EAb0C,CAa1C,CAAC;AAEF,IAAM,aAAa,GAAG,cAAM,OAAA,aAAa,EAAE,EAAf,CAAe,CAAC,CAAC,oCAAoC;AAEjF,IAAM,aAAa,GAAG,cAAM,OAAA,6WAW3B,EAX2B,CAW3B,CAAC;AAEF,IAAM,cAAc,GAAG,cAAM,OAAA,4IAO5B,EAP4B,CAO5B,CAAC;AAEF,IAAM,cAAc,GAAG,cAAM,OAAA,kEAK5B,EAL4B,CAK5B,CAAC;AAEF,IAAM,mBAAmB,GAAG,UAAC,WAAmB,IAAK,OAAA,qBAC1C,WAAW,yBAErB,EAHoD,CAGpD,CAAC"}
|
|
@@ -37,6 +37,16 @@ export declare const OPTION_LIST: readonly [{
|
|
|
37
37
|
readonly name: "force";
|
|
38
38
|
readonly type: BooleanConstructor;
|
|
39
39
|
readonly description: "Force start applet server even if it is already running on a different port. Kill the running server first.";
|
|
40
|
+
}, {
|
|
41
|
+
readonly name: "detach";
|
|
42
|
+
readonly type: BooleanConstructor;
|
|
43
|
+
readonly description: "Detach the applet HTTP server process from the terminal. Useful when want to run more commands reusing the same http server for current applet.";
|
|
44
|
+
readonly defaultValue: false;
|
|
45
|
+
}, {
|
|
46
|
+
readonly name: "forward-server-url";
|
|
47
|
+
readonly type: StringConstructor;
|
|
48
|
+
readonly description: "Url of forward server to connect to the device instead of the local network (LAN).";
|
|
49
|
+
readonly defaultValue: string | undefined;
|
|
40
50
|
}];
|
|
41
51
|
export declare const appletStart: {
|
|
42
52
|
name: "start";
|
|
@@ -79,6 +89,16 @@ export declare const appletStart: {
|
|
|
79
89
|
readonly name: "force";
|
|
80
90
|
readonly type: BooleanConstructor;
|
|
81
91
|
readonly description: "Force start applet server even if it is already running on a different port. Kill the running server first.";
|
|
92
|
+
}, {
|
|
93
|
+
readonly name: "detach";
|
|
94
|
+
readonly type: BooleanConstructor;
|
|
95
|
+
readonly description: "Detach the applet HTTP server process from the terminal. Useful when want to run more commands reusing the same http server for current applet.";
|
|
96
|
+
readonly defaultValue: false;
|
|
97
|
+
}, {
|
|
98
|
+
readonly name: "forward-server-url";
|
|
99
|
+
readonly type: StringConstructor;
|
|
100
|
+
readonly description: "Url of forward server to connect to the device instead of the local network (LAN).";
|
|
101
|
+
readonly defaultValue: string | undefined;
|
|
82
102
|
}];
|
|
83
103
|
commands: never[];
|
|
84
104
|
run(options: CommandLineOptions<typeof OPTION_LIST>): Promise<void>;
|
|
@@ -47,6 +47,7 @@ var dist_1 = require("@signageos/sdk/dist");
|
|
|
47
47
|
var wait_1 = require("../../Timer/wait");
|
|
48
48
|
var appletServerHelper_1 = require("../appletServerHelper");
|
|
49
49
|
var log_1 = require("@signageos/sdk/dist/Console/log");
|
|
50
|
+
var parameters_1 = require("../../parameters");
|
|
50
51
|
var DEFAULT_PORT = 8090;
|
|
51
52
|
var PORT_OPTION = {
|
|
52
53
|
name: 'port',
|
|
@@ -54,22 +55,18 @@ var PORT_OPTION = {
|
|
|
54
55
|
description: "Port where will the applet run",
|
|
55
56
|
defaultValue: DEFAULT_PORT,
|
|
56
57
|
};
|
|
57
|
-
var HOT_RELOAD_OPTION = {
|
|
58
|
-
name: 'hot-reload',
|
|
59
|
-
type: Boolean,
|
|
60
|
-
description: "Enable hot reload and build of applet",
|
|
61
|
-
defaultValue: false,
|
|
62
|
-
};
|
|
63
58
|
exports.OPTION_LIST = [
|
|
64
59
|
organizationFacade_1.NO_DEFAULT_ORGANIZATION_OPTION,
|
|
65
60
|
organizationFacade_1.ORGANIZATION_UID_OPTION,
|
|
66
61
|
PORT_OPTION,
|
|
67
62
|
appletUploadCommandHelper_1.APPLET_PATH_OPTION,
|
|
68
63
|
appletUploadCommandHelper_1.ENTRY_FILE_PATH_OPTION,
|
|
69
|
-
HOT_RELOAD_OPTION,
|
|
64
|
+
appletServerHelper_1.HOT_RELOAD_OPTION,
|
|
70
65
|
appletServerHelper_1.SERVER_PORT_OPTION,
|
|
71
66
|
appletServerHelper_1.SERVER_PUBLIC_URL_OPTION,
|
|
72
67
|
appletServerHelper_1.SERVER_FORCE_OPTION,
|
|
68
|
+
appletServerHelper_1.DETACH_PROCESS_OPTION,
|
|
69
|
+
appletServerHelper_1.FORWARD_SERVER_URL_OPTION,
|
|
73
70
|
];
|
|
74
71
|
exports.appletStart = (0, commandDefinition_1.createCommandDefinition)({
|
|
75
72
|
name: 'start',
|
|
@@ -77,58 +74,62 @@ exports.appletStart = (0, commandDefinition_1.createCommandDefinition)({
|
|
|
77
74
|
optionList: exports.OPTION_LIST,
|
|
78
75
|
commands: [],
|
|
79
76
|
run: function (options) {
|
|
80
|
-
var _a;
|
|
77
|
+
var _a, _b;
|
|
81
78
|
return __awaiter(this, void 0, void 0, function () {
|
|
82
|
-
var currentDirectory, organizationUid, entryFileAbsolutePath, appletPath, entryFileRelativePath, emulatorUid, dev, emulatorServerPort, hotReloadEnabled, appletPort, appletPublicUrl, appletUid, appletVersion, e_1, appletHotReload, createEmulatorParams, emulator, stopServer;
|
|
83
|
-
var
|
|
79
|
+
var currentDirectory, organizationUid, entryFileAbsolutePath, appletPath, entryFileRelativePath, emulatorUid, dev, emulatorServerPort, hotReloadEnabled, appletPort, appletPublicUrl, detachProcess, forwardServerUrl, appletUid, appletVersion, e_1, appletHotReload, createEmulatorParams, emulator, stopServer;
|
|
80
|
+
var _c;
|
|
84
81
|
var _this = this;
|
|
85
|
-
return __generator(this, function (
|
|
86
|
-
switch (
|
|
82
|
+
return __generator(this, function (_d) {
|
|
83
|
+
switch (_d.label) {
|
|
87
84
|
case 0:
|
|
88
85
|
currentDirectory = process.cwd();
|
|
89
86
|
return [4 /*yield*/, (0, organizationFacade_1.getOrganizationUidOrDefaultOrSelect)(options)];
|
|
90
87
|
case 1:
|
|
91
|
-
organizationUid =
|
|
88
|
+
organizationUid = _d.sent();
|
|
92
89
|
return [4 /*yield*/, (0, appletUploadCommandHelper_1.getAppletEntryFileAbsolutePath)(currentDirectory, options)];
|
|
93
90
|
case 2:
|
|
94
|
-
entryFileAbsolutePath =
|
|
91
|
+
entryFileAbsolutePath = _d.sent();
|
|
95
92
|
return [4 /*yield*/, (0, appletUploadCommandHelper_1.getAppletDirectoryAbsolutePath)(currentDirectory, options)];
|
|
96
93
|
case 3:
|
|
97
|
-
appletPath =
|
|
94
|
+
appletPath = _d.sent();
|
|
98
95
|
entryFileRelativePath = (0, appletUploadCommandHelper_1.getAppletEntryFileRelativePath)(entryFileAbsolutePath, appletPath);
|
|
99
96
|
return [4 /*yield*/, (0, emulatorFacade_1.loadEmulatorOrCreateNewAndReturnUid)(organizationUid)];
|
|
100
97
|
case 4:
|
|
101
|
-
emulatorUid =
|
|
98
|
+
emulatorUid = _d.sent();
|
|
102
99
|
dev = (0, dist_1.createDevelopment)({
|
|
103
100
|
organizationUid: organizationUid,
|
|
104
101
|
});
|
|
105
102
|
emulatorServerPort = (_a = options[PORT_OPTION.name]) !== null && _a !== void 0 ? _a : DEFAULT_PORT;
|
|
106
|
-
hotReloadEnabled = options[HOT_RELOAD_OPTION.name];
|
|
103
|
+
hotReloadEnabled = options[appletServerHelper_1.HOT_RELOAD_OPTION.name];
|
|
107
104
|
appletPort = options[appletServerHelper_1.SERVER_PORT_OPTION.name];
|
|
108
105
|
appletPublicUrl = options[appletServerHelper_1.SERVER_PUBLIC_URL_OPTION.name];
|
|
109
|
-
|
|
106
|
+
detachProcess = options[appletServerHelper_1.DETACH_PROCESS_OPTION.name];
|
|
107
|
+
forwardServerUrl = (_b = options[appletServerHelper_1.FORWARD_SERVER_URL_OPTION.name]) !== null && _b !== void 0 ? _b : parameters_1.parameters.forwardServerUrl;
|
|
108
|
+
_d.label = 5;
|
|
110
109
|
case 5:
|
|
111
|
-
|
|
110
|
+
_d.trys.push([5, 7, , 8]);
|
|
112
111
|
return [4 /*yield*/, dev.applet.identification.getAppletUidAndVersion(appletPath)];
|
|
113
112
|
case 6:
|
|
114
|
-
(
|
|
113
|
+
(_c = _d.sent(), appletUid = _c.appletUid, appletVersion = _c.appletVersion);
|
|
115
114
|
return [3 /*break*/, 8];
|
|
116
115
|
case 7:
|
|
117
|
-
e_1 =
|
|
116
|
+
e_1 = _d.sent();
|
|
118
117
|
(0, log_1.log)('warning', chalk_1.default.yellow('Applet is not uploaded yet. It cannot be developed on real device.'));
|
|
119
118
|
return [3 /*break*/, 8];
|
|
120
119
|
case 8: return [4 /*yield*/, (0, appletServerHelper_1.killAppletServerIfRunningAndForceOption)(dev, options, appletUid, appletVersion, appletPort)];
|
|
121
120
|
case 9:
|
|
122
|
-
|
|
121
|
+
_d.sent();
|
|
123
122
|
if (!hotReloadEnabled) return [3 /*break*/, 11];
|
|
124
123
|
return [4 /*yield*/, dev.applet.startHotReload({
|
|
125
124
|
appletPath: appletPath,
|
|
126
125
|
port: appletPort,
|
|
127
126
|
publicUrl: appletPublicUrl,
|
|
127
|
+
detachProcess: detachProcess,
|
|
128
|
+
forwardServerUrl: forwardServerUrl,
|
|
128
129
|
})];
|
|
129
130
|
case 10:
|
|
130
|
-
appletHotReload =
|
|
131
|
-
|
|
131
|
+
appletHotReload = _d.sent();
|
|
132
|
+
_d.label = 11;
|
|
132
133
|
case 11:
|
|
133
134
|
createEmulatorParams = {
|
|
134
135
|
emulatorUid: emulatorUid,
|
|
@@ -140,7 +141,7 @@ exports.appletStart = (0, commandDefinition_1.createCommandDefinition)({
|
|
|
140
141
|
};
|
|
141
142
|
return [4 /*yield*/, (0, emulatorFactory_1.createEmulator)(createEmulatorParams, organizationUid, dev)];
|
|
142
143
|
case 12:
|
|
143
|
-
emulator =
|
|
144
|
+
emulator = _d.sent();
|
|
144
145
|
stopServer = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
145
146
|
return __generator(this, function (_a) {
|
|
146
147
|
switch (_a.label) {
|
|
@@ -160,7 +161,7 @@ exports.appletStart = (0, commandDefinition_1.createCommandDefinition)({
|
|
|
160
161
|
console.info('Press Ctrl+C to stop');
|
|
161
162
|
return [4 /*yield*/, (0, wait_1.default)(1e9)];
|
|
162
163
|
case 13:
|
|
163
|
-
|
|
164
|
+
_d.sent(); // Wait forever
|
|
164
165
|
return [2 /*return*/];
|
|
165
166
|
}
|
|
166
167
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appletStartCommand.js","sourceRoot":"","sources":["../../../src/Applet/Start/appletStartCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA0B;AAC1B,kEAAgE;AAChE,iFAM6C;AAC7C,gEAAoF;AACpF,qEAA8F;AAC9F,4EAI+C;AAC/C,4CAAwD;AAExD,yCAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"appletStartCommand.js","sourceRoot":"","sources":["../../../src/Applet/Start/appletStartCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA0B;AAC1B,kEAAgE;AAChE,iFAM6C;AAC7C,gEAAoF;AACpF,qEAA8F;AAC9F,4EAI+C;AAC/C,4CAAwD;AAExD,yCAAoC;AACpC,4DAQ+B;AAC/B,uDAAsD;AACtD,+CAA8C;AAE9C,IAAM,YAAY,GAAG,IAAI,CAAC;AAC1B,IAAM,WAAW,GAAG;IACnB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,gCAAgC;IAC7C,YAAY,EAAE,YAAY;CACjB,CAAC;AAEE,QAAA,WAAW,GAAG;IAC1B,mDAA8B;IAC9B,4CAAuB;IACvB,WAAW;IACX,8CAAkB;IAClB,kDAAsB;IACtB,sCAAiB;IACjB,uCAAkB;IAClB,6CAAwB;IACxB,wCAAmB;IACnB,0CAAqB;IACrB,8CAAyB;CAChB,CAAC;AAEE,QAAA,WAAW,GAAG,IAAA,2CAAuB,EAAC;IAClD,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,s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AAC,GAAG,CAAC,EAAA;;wBAAf,SAAe,CAAC,CAAC,eAAe;;;;;KAChC;CACD,CAAC,CAAC"}
|
|
@@ -171,6 +171,16 @@ export declare const applet: {
|
|
|
171
171
|
readonly name: "force";
|
|
172
172
|
readonly type: BooleanConstructor;
|
|
173
173
|
readonly description: "Force start applet server even if it is already running on a different port. Kill the running server first.";
|
|
174
|
+
}, {
|
|
175
|
+
readonly name: "detach";
|
|
176
|
+
readonly type: BooleanConstructor;
|
|
177
|
+
readonly description: "Detach the applet HTTP server process from the terminal. Useful when want to run more commands reusing the same http server for current applet.";
|
|
178
|
+
readonly defaultValue: false;
|
|
179
|
+
}, {
|
|
180
|
+
readonly name: "forward-server-url";
|
|
181
|
+
readonly type: StringConstructor;
|
|
182
|
+
readonly description: "Url of forward server to connect to the device instead of the local network (LAN).";
|
|
183
|
+
readonly defaultValue: string | undefined;
|
|
174
184
|
}];
|
|
175
185
|
commands: never[];
|
|
176
186
|
run(options: import("../Command/commandDefinition").CommandLineOptions<readonly [{
|
|
@@ -211,6 +221,16 @@ export declare const applet: {
|
|
|
211
221
|
readonly name: "force";
|
|
212
222
|
readonly type: BooleanConstructor;
|
|
213
223
|
readonly description: "Force start applet server even if it is already running on a different port. Kill the running server first.";
|
|
224
|
+
}, {
|
|
225
|
+
readonly name: "detach";
|
|
226
|
+
readonly type: BooleanConstructor;
|
|
227
|
+
readonly description: "Detach the applet HTTP server process from the terminal. Useful when want to run more commands reusing the same http server for current applet.";
|
|
228
|
+
readonly defaultValue: false;
|
|
229
|
+
}, {
|
|
230
|
+
readonly name: "forward-server-url";
|
|
231
|
+
readonly type: StringConstructor;
|
|
232
|
+
readonly description: "Url of forward server to connect to the device instead of the local network (LAN).";
|
|
233
|
+
readonly defaultValue: string | undefined;
|
|
214
234
|
}]>): Promise<void>;
|
|
215
235
|
} | {
|
|
216
236
|
name: "test";
|
|
@@ -15,4 +15,22 @@ export declare const SERVER_FORCE_OPTION: {
|
|
|
15
15
|
readonly type: BooleanConstructor;
|
|
16
16
|
readonly description: "Force start applet server even if it is already running on a different port. Kill the running server first.";
|
|
17
17
|
};
|
|
18
|
+
export declare const DETACH_PROCESS_OPTION: {
|
|
19
|
+
readonly name: "detach";
|
|
20
|
+
readonly type: BooleanConstructor;
|
|
21
|
+
readonly description: "Detach the applet HTTP server process from the terminal. Useful when want to run more commands reusing the same http server for current applet.";
|
|
22
|
+
readonly defaultValue: false;
|
|
23
|
+
};
|
|
24
|
+
export declare const FORWARD_SERVER_URL_OPTION: {
|
|
25
|
+
readonly name: "forward-server-url";
|
|
26
|
+
readonly type: StringConstructor;
|
|
27
|
+
readonly description: "Url of forward server to connect to the device instead of the local network (LAN).";
|
|
28
|
+
readonly defaultValue: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
export declare const HOT_RELOAD_OPTION: {
|
|
31
|
+
readonly name: "hot-reload";
|
|
32
|
+
readonly type: BooleanConstructor;
|
|
33
|
+
readonly description: "Enable hot reload and build of applet";
|
|
34
|
+
readonly defaultValue: false;
|
|
35
|
+
};
|
|
18
36
|
export declare function killAppletServerIfRunningAndForceOption(dev: Development, options: CommandLineOptions<[typeof SERVER_FORCE_OPTION]>, appletUid: string | undefined, appletVersion: string | undefined, appletPort: number | undefined): Promise<void>;
|
|
@@ -36,8 +36,9 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.killAppletServerIfRunningAndForceOption = exports.SERVER_FORCE_OPTION = exports.SERVER_PORT_OPTION = exports.SERVER_PUBLIC_URL_OPTION = void 0;
|
|
39
|
+
exports.killAppletServerIfRunningAndForceOption = exports.HOT_RELOAD_OPTION = exports.FORWARD_SERVER_URL_OPTION = exports.DETACH_PROCESS_OPTION = exports.SERVER_FORCE_OPTION = exports.SERVER_PORT_OPTION = exports.SERVER_PUBLIC_URL_OPTION = void 0;
|
|
40
40
|
var log_1 = require("@signageos/sdk/dist/Console/log");
|
|
41
|
+
var parameters_1 = require("../parameters");
|
|
41
42
|
exports.SERVER_PUBLIC_URL_OPTION = {
|
|
42
43
|
name: 'server-public-url',
|
|
43
44
|
type: String,
|
|
@@ -53,6 +54,24 @@ exports.SERVER_FORCE_OPTION = {
|
|
|
53
54
|
type: Boolean,
|
|
54
55
|
description: 'Force start applet server even if it is already running on a different port. Kill the running server first.',
|
|
55
56
|
};
|
|
57
|
+
exports.DETACH_PROCESS_OPTION = {
|
|
58
|
+
name: 'detach',
|
|
59
|
+
type: Boolean,
|
|
60
|
+
description: 'Detach the applet HTTP server process from the terminal. Useful when want to run more commands reusing the same http server for current applet.',
|
|
61
|
+
defaultValue: false,
|
|
62
|
+
};
|
|
63
|
+
exports.FORWARD_SERVER_URL_OPTION = {
|
|
64
|
+
name: 'forward-server-url',
|
|
65
|
+
type: String,
|
|
66
|
+
description: 'Url of forward server to connect to the device instead of the local network (LAN).',
|
|
67
|
+
defaultValue: parameters_1.parameters.forwardServerUrl,
|
|
68
|
+
};
|
|
69
|
+
exports.HOT_RELOAD_OPTION = {
|
|
70
|
+
name: 'hot-reload',
|
|
71
|
+
type: Boolean,
|
|
72
|
+
description: "Enable hot reload and build of applet",
|
|
73
|
+
defaultValue: false,
|
|
74
|
+
};
|
|
56
75
|
function killAppletServerIfRunningAndForceOption(dev, options, appletUid, appletVersion, appletPort) {
|
|
57
76
|
return __awaiter(this, void 0, void 0, function () {
|
|
58
77
|
var force, runningAppletPort;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appletServerHelper.js","sourceRoot":"","sources":["../../src/Applet/appletServerHelper.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAsD;
|
|
1
|
+
{"version":3,"file":"appletServerHelper.js","sourceRoot":"","sources":["../../src/Applet/appletServerHelper.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;A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C,KAAK,EAAN,wBAAM;oBACT,IAAA,SAAG,EACF,SAAS,EACT,mDAA4C,iBAAiB,kEAA+D,CAC5H,CAAC;;wBAEF,qBAAM,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,iBAAiB,CAAC,SAAS,EAAE,aAAa,CAAC,EAAA;;oBAAlE,SAAkE,CAAC;;;;;;CAGrE;AAxBD,0FAwBC"}
|
|
@@ -36,6 +36,25 @@ declare const OPTION_LIST: readonly [{
|
|
|
36
36
|
readonly name: "use-forward-server";
|
|
37
37
|
readonly type: BooleanConstructor;
|
|
38
38
|
readonly description: string;
|
|
39
|
+
}, {
|
|
40
|
+
readonly name: "detach";
|
|
41
|
+
readonly type: BooleanConstructor;
|
|
42
|
+
readonly description: "Detach the applet HTTP server process from the terminal. Useful when want to run more commands reusing the same http server for current applet.";
|
|
43
|
+
readonly defaultValue: false;
|
|
44
|
+
}, {
|
|
45
|
+
readonly name: "forward-server-url";
|
|
46
|
+
readonly type: StringConstructor;
|
|
47
|
+
readonly description: "Url of forward server to connect to the device instead of the local network (LAN).";
|
|
48
|
+
readonly defaultValue: string | undefined;
|
|
49
|
+
}, {
|
|
50
|
+
readonly name: "hot-reload";
|
|
51
|
+
readonly type: BooleanConstructor;
|
|
52
|
+
readonly description: "Enable hot reload and build of applet";
|
|
53
|
+
readonly defaultValue: false;
|
|
54
|
+
}, {
|
|
55
|
+
readonly name: "applet-path";
|
|
56
|
+
readonly type: StringConstructor;
|
|
57
|
+
readonly description: "Path to the applet file or the project folder depending on the entry file. Relative to the command or absolute.";
|
|
39
58
|
}];
|
|
40
59
|
export declare const connect: {
|
|
41
60
|
name: "connect";
|
|
@@ -72,6 +91,25 @@ export declare const connect: {
|
|
|
72
91
|
readonly name: "use-forward-server";
|
|
73
92
|
readonly type: BooleanConstructor;
|
|
74
93
|
readonly description: string;
|
|
94
|
+
}, {
|
|
95
|
+
readonly name: "detach";
|
|
96
|
+
readonly type: BooleanConstructor;
|
|
97
|
+
readonly description: "Detach the applet HTTP server process from the terminal. Useful when want to run more commands reusing the same http server for current applet.";
|
|
98
|
+
readonly defaultValue: false;
|
|
99
|
+
}, {
|
|
100
|
+
readonly name: "forward-server-url";
|
|
101
|
+
readonly type: StringConstructor;
|
|
102
|
+
readonly description: "Url of forward server to connect to the device instead of the local network (LAN).";
|
|
103
|
+
readonly defaultValue: string | undefined;
|
|
104
|
+
}, {
|
|
105
|
+
readonly name: "hot-reload";
|
|
106
|
+
readonly type: BooleanConstructor;
|
|
107
|
+
readonly description: "Enable hot reload and build of applet";
|
|
108
|
+
readonly defaultValue: false;
|
|
109
|
+
}, {
|
|
110
|
+
readonly name: "applet-path";
|
|
111
|
+
readonly type: StringConstructor;
|
|
112
|
+
readonly description: "Path to the applet file or the project folder depending on the entry file. Relative to the command or absolute.";
|
|
75
113
|
}];
|
|
76
114
|
commands: never[];
|
|
77
115
|
run: (options: CommandLineOptions<typeof OPTION_LIST>) => Promise<void>;
|
|
@@ -46,6 +46,8 @@ var sdk_1 = require("@signageos/sdk");
|
|
|
46
46
|
var wait_1 = require("../../Timer/wait");
|
|
47
47
|
var appletServerHelper_1 = require("../../Applet/appletServerHelper");
|
|
48
48
|
var debug_1 = require("debug");
|
|
49
|
+
var appletUploadCommandHelper_1 = require("../../Applet/Upload/appletUploadCommandHelper");
|
|
50
|
+
var parameters_1 = require("../../parameters");
|
|
49
51
|
var debug = (0, debug_1.default)('@signageos/cli:Device:Connect:connectCommand');
|
|
50
52
|
exports.USE_FORWARD_SERVER_OPTION = {
|
|
51
53
|
name: 'use-forward-server',
|
|
@@ -62,6 +64,10 @@ var OPTION_LIST = [
|
|
|
62
64
|
appletServerHelper_1.SERVER_PORT_OPTION,
|
|
63
65
|
appletServerHelper_1.SERVER_FORCE_OPTION,
|
|
64
66
|
exports.USE_FORWARD_SERVER_OPTION,
|
|
67
|
+
appletServerHelper_1.DETACH_PROCESS_OPTION,
|
|
68
|
+
appletServerHelper_1.FORWARD_SERVER_URL_OPTION,
|
|
69
|
+
appletServerHelper_1.HOT_RELOAD_OPTION,
|
|
70
|
+
appletUploadCommandHelper_1.APPLET_PATH_OPTION,
|
|
65
71
|
];
|
|
66
72
|
exports.connect = (0, commandDefinition_1.createCommandDefinition)({
|
|
67
73
|
name: 'connect',
|
|
@@ -69,64 +75,88 @@ exports.connect = (0, commandDefinition_1.createCommandDefinition)({
|
|
|
69
75
|
optionList: OPTION_LIST,
|
|
70
76
|
commands: [],
|
|
71
77
|
run: function (options) {
|
|
78
|
+
var _a;
|
|
72
79
|
return __awaiter(this, void 0, void 0, function () {
|
|
73
|
-
var currentDirectory, organizationUid, organization, restApi, dev, appletUid, appletVersion, deviceUid, appletPort, appletPublicUrl, useForwardServer, server, finalAppletPublicUrl, connection, stopServer;
|
|
80
|
+
var currentDirectory, organizationUid, organization, restApi, dev, appletUid, appletVersion, deviceUid, appletPort, appletPublicUrl, useForwardServer, hotReload, stoppable, server, appletPath, detachProcess, forwardServerUrl, appletHotReload, appletServer, finalAppletPublicUrl, connection, stopServer;
|
|
74
81
|
var _this = this;
|
|
75
|
-
return __generator(this, function (
|
|
76
|
-
switch (
|
|
82
|
+
return __generator(this, function (_b) {
|
|
83
|
+
switch (_b.label) {
|
|
77
84
|
case 0:
|
|
78
85
|
currentDirectory = process.cwd();
|
|
79
86
|
return [4 /*yield*/, (0, organizationFacade_1.getOrganizationUidOrDefaultOrSelect)(options)];
|
|
80
87
|
case 1:
|
|
81
|
-
organizationUid =
|
|
88
|
+
organizationUid = _b.sent();
|
|
82
89
|
return [4 /*yield*/, (0, organizationFacade_1.getOrganization)(organizationUid)];
|
|
83
90
|
case 2:
|
|
84
|
-
organization =
|
|
91
|
+
organization = _b.sent();
|
|
85
92
|
return [4 /*yield*/, (0, helper_1.createOrganizationRestApi)(organization)];
|
|
86
93
|
case 3:
|
|
87
|
-
restApi =
|
|
94
|
+
restApi = _b.sent();
|
|
88
95
|
dev = (0, sdk_1.createDevelopment)({
|
|
89
96
|
organizationUid: organization.uid,
|
|
90
97
|
});
|
|
91
98
|
return [4 /*yield*/, (0, appletFacade_1.getAppletUid)(restApi, options)];
|
|
92
99
|
case 4:
|
|
93
|
-
appletUid =
|
|
100
|
+
appletUid = _b.sent();
|
|
94
101
|
return [4 /*yield*/, (0, appletFacade_1.getAppletVersion)(currentDirectory)];
|
|
95
102
|
case 5:
|
|
96
|
-
appletVersion =
|
|
103
|
+
appletVersion = _b.sent();
|
|
97
104
|
return [4 /*yield*/, (0, deviceFacade_1.getDeviceUid)(restApi, options)];
|
|
98
105
|
case 6:
|
|
99
|
-
deviceUid =
|
|
106
|
+
deviceUid = _b.sent();
|
|
100
107
|
appletPort = options[appletServerHelper_1.SERVER_PORT_OPTION.name];
|
|
101
108
|
appletPublicUrl = options[appletServerHelper_1.SERVER_PUBLIC_URL_OPTION.name];
|
|
102
109
|
useForwardServer = options[exports.USE_FORWARD_SERVER_OPTION.name];
|
|
110
|
+
hotReload = options[appletServerHelper_1.HOT_RELOAD_OPTION.name];
|
|
103
111
|
return [4 /*yield*/, (0, appletServerHelper_1.killAppletServerIfRunningAndForceOption)(dev, options, appletUid, appletVersion, appletPort)];
|
|
104
112
|
case 7:
|
|
105
|
-
|
|
106
|
-
return [
|
|
107
|
-
|
|
108
|
-
|
|
113
|
+
_b.sent();
|
|
114
|
+
if (!hotReload) return [3 /*break*/, 10];
|
|
115
|
+
return [4 /*yield*/, (0, appletUploadCommandHelper_1.getAppletDirectoryAbsolutePath)(currentDirectory, options)];
|
|
116
|
+
case 8:
|
|
117
|
+
appletPath = _b.sent();
|
|
118
|
+
detachProcess = options[appletServerHelper_1.DETACH_PROCESS_OPTION.name];
|
|
119
|
+
forwardServerUrl = (_a = options[appletServerHelper_1.FORWARD_SERVER_URL_OPTION.name]) !== null && _a !== void 0 ? _a : parameters_1.parameters.forwardServerUrl;
|
|
120
|
+
return [4 /*yield*/, dev.applet.startHotReload({
|
|
121
|
+
appletPath: appletPath,
|
|
109
122
|
port: appletPort,
|
|
110
123
|
publicUrl: appletPublicUrl,
|
|
124
|
+
detachProcess: detachProcess,
|
|
125
|
+
forwardServerUrl: forwardServerUrl,
|
|
111
126
|
})];
|
|
112
|
-
case
|
|
113
|
-
|
|
114
|
-
|
|
127
|
+
case 9:
|
|
128
|
+
appletHotReload = _b.sent();
|
|
129
|
+
stoppable = appletHotReload;
|
|
130
|
+
server = appletHotReload.server;
|
|
131
|
+
return [3 /*break*/, 12];
|
|
132
|
+
case 10: return [4 /*yield*/, dev.applet.serve.serve({
|
|
133
|
+
appletUid: appletUid,
|
|
134
|
+
appletVersion: appletVersion,
|
|
135
|
+
port: appletPort,
|
|
136
|
+
publicUrl: appletPublicUrl,
|
|
137
|
+
})];
|
|
138
|
+
case 11:
|
|
139
|
+
appletServer = _b.sent();
|
|
140
|
+
stoppable = appletServer;
|
|
141
|
+
server = appletServer;
|
|
142
|
+
_b.label = 12;
|
|
143
|
+
case 12:
|
|
144
|
+
debug('Server is running', stoppable);
|
|
115
145
|
finalAppletPublicUrl = useForwardServer ? server.publicUrl : "http://".concat(server.remoteAddr, ":").concat(server.port);
|
|
116
146
|
return [4 /*yield*/, dev.deviceConnect.connect(deviceUid, {
|
|
117
147
|
appletUid: appletUid,
|
|
118
148
|
appletVersion: appletVersion,
|
|
119
149
|
appletPublicUrl: finalAppletPublicUrl,
|
|
120
150
|
})];
|
|
121
|
-
case
|
|
122
|
-
connection =
|
|
151
|
+
case 13:
|
|
152
|
+
connection = _b.sent();
|
|
123
153
|
stopServer = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
124
154
|
return __generator(this, function (_a) {
|
|
125
155
|
switch (_a.label) {
|
|
126
156
|
case 0: return [4 /*yield*/, connection.disconnect()];
|
|
127
157
|
case 1:
|
|
128
158
|
_a.sent();
|
|
129
|
-
return [4 /*yield*/,
|
|
159
|
+
return [4 /*yield*/, stoppable.stop()];
|
|
130
160
|
case 2:
|
|
131
161
|
_a.sent();
|
|
132
162
|
process.exit();
|
|
@@ -138,8 +168,8 @@ exports.connect = (0, commandDefinition_1.createCommandDefinition)({
|
|
|
138
168
|
process.on('SIGTERM', stopServer);
|
|
139
169
|
console.info('Press Ctrl+C to disconnect');
|
|
140
170
|
return [4 /*yield*/, (0, wait_1.default)(1e9)];
|
|
141
|
-
case
|
|
142
|
-
|
|
171
|
+
case 14:
|
|
172
|
+
_b.sent(); // Wait forever
|
|
143
173
|
return [2 /*return*/];
|
|
144
174
|
}
|
|
145
175
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connectCommand.js","sourceRoot":"","sources":["../../../src/Device/Connect/connectCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAkE;AAClE,4EAK+C;AAC/C,0DAA8F;AAC9F,uCAAyD;AACzD,qEAA8F;AAC9F,sCAAmD;AACnD,yCAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"connectCommand.js","sourceRoot":"","sources":["../../../src/Device/Connect/connectCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAkE;AAClE,4EAK+C;AAC/C,0DAA8F;AAC9F,uCAAyD;AACzD,qEAA8F;AAC9F,sCAAmD;AACnD,yCAAoC;AACpC,sEAQyC;AACzC,+BAA0B;AAC1B,2FAAmH;AACnH,+CAA8C;AAE9C,IAAM,KAAK,GAAG,IAAA,eAAK,EAAC,8CAA8C,CAAC,CAAC;AAEvD,QAAA,yBAAyB,GAAG;IACxC,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE,OAAO;IACb,WAAW,EACV,iFAAiF;QACjF,+EAA+E;CACvE,CAAC;AAEX,IAAM,WAAW,GAAG;IACnB,mDAA8B;IAC9B,4CAAuB;IACvB,gCAAiB;IACjB,gCAAiB;IACjB,6CAAwB;IACxB,uCAAkB;IAClB,wCAAmB;IACnB,iCAAyB;IACzB,0CAAqB;IACrB,8CAAyB;IACzB,sCAAiB;IACjB,8CAAkB;CACT,C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;4CAClB,qBAAM,UAAU,CAAC,UAAU,EAAE,EAAA;;wCAA7B,SAA6B,CAAC;wCAC9B,qBAAM,SAAS,CAAC,IAAI,EAAE,EAAA;;wCAAtB,SAAsB,CAAC;wCACvB,OAAO,CAAC,IAAI,EAAE,CAAC;;;;6BACf,CAAC;wBACF,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;wBACjC,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;wBAElC,OAAO,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC;wBAC3C,qBAAM,IAAA,cAAI,EAAC,GAAG,CAAC,EAAA;;wBAAf,SAAe,CAAC,CAAC,eAAe;;;;;KAChC;CACD,CAAC,CAAC"}
|
|
@@ -113,6 +113,25 @@ export declare const device: {
|
|
|
113
113
|
readonly name: "use-forward-server";
|
|
114
114
|
readonly type: BooleanConstructor;
|
|
115
115
|
readonly description: string;
|
|
116
|
+
}, {
|
|
117
|
+
readonly name: "detach";
|
|
118
|
+
readonly type: BooleanConstructor;
|
|
119
|
+
readonly description: "Detach the applet HTTP server process from the terminal. Useful when want to run more commands reusing the same http server for current applet.";
|
|
120
|
+
readonly defaultValue: false;
|
|
121
|
+
}, {
|
|
122
|
+
readonly name: "forward-server-url";
|
|
123
|
+
readonly type: StringConstructor;
|
|
124
|
+
readonly description: "Url of forward server to connect to the device instead of the local network (LAN).";
|
|
125
|
+
readonly defaultValue: string | undefined;
|
|
126
|
+
}, {
|
|
127
|
+
readonly name: "hot-reload";
|
|
128
|
+
readonly type: BooleanConstructor;
|
|
129
|
+
readonly description: "Enable hot reload and build of applet";
|
|
130
|
+
readonly defaultValue: false;
|
|
131
|
+
}, {
|
|
132
|
+
readonly name: "applet-path";
|
|
133
|
+
readonly type: StringConstructor;
|
|
134
|
+
readonly description: "Path to the applet file or the project folder depending on the entry file. Relative to the command or absolute.";
|
|
116
135
|
}];
|
|
117
136
|
commands: never[];
|
|
118
137
|
run: (options: import("../Command/commandDefinition").CommandLineOptions<readonly [{
|
|
@@ -147,6 +166,25 @@ export declare const device: {
|
|
|
147
166
|
readonly name: "use-forward-server";
|
|
148
167
|
readonly type: BooleanConstructor;
|
|
149
168
|
readonly description: string;
|
|
169
|
+
}, {
|
|
170
|
+
readonly name: "detach";
|
|
171
|
+
readonly type: BooleanConstructor;
|
|
172
|
+
readonly description: "Detach the applet HTTP server process from the terminal. Useful when want to run more commands reusing the same http server for current applet.";
|
|
173
|
+
readonly defaultValue: false;
|
|
174
|
+
}, {
|
|
175
|
+
readonly name: "forward-server-url";
|
|
176
|
+
readonly type: StringConstructor;
|
|
177
|
+
readonly description: "Url of forward server to connect to the device instead of the local network (LAN).";
|
|
178
|
+
readonly defaultValue: string | undefined;
|
|
179
|
+
}, {
|
|
180
|
+
readonly name: "hot-reload";
|
|
181
|
+
readonly type: BooleanConstructor;
|
|
182
|
+
readonly description: "Enable hot reload and build of applet";
|
|
183
|
+
readonly defaultValue: false;
|
|
184
|
+
}, {
|
|
185
|
+
readonly name: "applet-path";
|
|
186
|
+
readonly type: StringConstructor;
|
|
187
|
+
readonly description: "Path to the applet file or the project folder depending on the entry file. Relative to the command or absolute.";
|
|
150
188
|
}]>) => Promise<void>;
|
|
151
189
|
})[];
|
|
152
190
|
run(): Promise<never>;
|
|
@@ -107,7 +107,7 @@ function createEmulator(params, organizationUid, dev) {
|
|
|
107
107
|
return [2 /*return*/];
|
|
108
108
|
}
|
|
109
109
|
if (!(relativeFilePath === entryFileRelativePath)) return [3 /*break*/, 3];
|
|
110
|
-
prependFileContent = '<script>window.onbeforeunload = function () { window.parent.
|
|
110
|
+
prependFileContent = '<script>window.onbeforeunload = function () { window.parent.postMessage({ type: "hug.applet_refresh" }, "*") }</script>';
|
|
111
111
|
res.setHeader('Content-Type', 'text/html');
|
|
112
112
|
return [4 /*yield*/, fsExtra.readFile(entryFileAbsolutePath, 'utf8')];
|
|
113
113
|
case 2:
|
|
@@ -1 +1 @@
|
|
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I,GAAG,SAAqD;4BAClE,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,UAAG,kBAAkB,YAAS,CAAC,CAAC,CAAC;4BAClE,sBAAO;;4BAGF,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,IAAI,0BAA0B,CAAC;4BACjF,GAAG,CAAC,SAAS,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;4BACrC,UAAU,GAAG,OAAO,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;4BAC9D,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;;;;iBACrB,CAAC,CAAC;YAEH,sBAAO;oBACA,IAAI,EAAV;;;;4CACC,qBAAM,IAAI,OAAO,CAAO,UAAC,OAAO,EAAE,MAAM,IAAK,OAAA,MAAM,CAAC,KAAK,CAAC,UAAC,KAAK,IAAK,OAAA,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,EAAnC,CAAmC,CAAC,EAA5D,CAA4D,CAAC,EAAA;;wCAA1G,SAA0G,CAAC;;;;;qBAC3G;iBACD,EAAC;;;CACF;AAzFD,wCAyFC"}
|
package/dist/parameters.d.ts
CHANGED
package/dist/parameters.js
CHANGED
package/dist/parameters.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../src/parameters.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uDAAsD;AAEtD,IAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAC7B,IAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AACjC,IAAM,aAAa,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AACjD,IAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,KAAK,CAAC;AAClD,IAAM,QAAQ,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ACX,IAAI,EAAE,aAAa,CAAC,IAAI;IACxB,OAAO,EAAE,aAAa,CAAC,OAAO;IAC9B,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,WAAW;IAChC,MAAM,QAAA;IACN,OAAO,SAAA;IACP,gBAAgB,EAAE,OAAO,CAAC,GAAG,CAAC,sBAAsB;IACpD,MAAM,EAAE;QACP,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,cAAc;QAC/B,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,kBAAkB;QACvC,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,eAAe;KACjC;CACD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signageos/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.1",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"files": [
|
|
6
6
|
".env",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
76
|
"@signageos/file": "0.1.1",
|
|
77
|
-
"@signageos/sdk": "1.
|
|
77
|
+
"@signageos/sdk": "1.27.0",
|
|
78
78
|
"archiver": "7.0.1",
|
|
79
79
|
"chalk": "2.4.2",
|
|
80
80
|
"child-process-promise": "2.2.1",
|