@signageos/cli 0.10.2 → 1.0.0
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/CHANGELOG.md +16 -0
- package/README.md +16 -1
- package/config/parameters.d.ts +1 -0
- package/config/parameters.js +4 -0
- package/dist/Applet/Generate/appletGenerateCommand.d.ts +44 -2
- package/dist/Applet/Generate/appletGenerateCommand.js +44 -35
- package/dist/Applet/Generate/appletGenerateCommand.js.map +1 -1
- package/dist/Applet/Start/appletStartCommand.d.ts +59 -2
- package/dist/Applet/Start/appletStartCommand.js +31 -22
- package/dist/Applet/Start/appletStartCommand.js.map +1 -1
- package/dist/Applet/Start/appletStartCommandHelper.d.ts +3 -2
- package/dist/Applet/Start/appletStartCommandHelper.js +5 -4
- package/dist/Applet/Start/appletStartCommandHelper.js.map +1 -1
- package/dist/Applet/Test/Upload/appletTestRunCommand.d.ts +52 -2
- package/dist/Applet/Test/Upload/appletTestRunCommand.js +44 -36
- package/dist/Applet/Test/Upload/appletTestRunCommand.js.map +1 -1
- package/dist/Applet/Test/Upload/appletTestRunFacade.js +2 -1
- package/dist/Applet/Test/Upload/appletTestRunFacade.js.map +1 -1
- package/dist/Applet/Test/Upload/appletTestUploadCommand.d.ts +42 -2
- package/dist/Applet/Test/Upload/appletTestUploadCommand.js +45 -37
- package/dist/Applet/Test/Upload/appletTestUploadCommand.js.map +1 -1
- package/dist/Applet/Test/Upload/appletTestUploadFacade.js +2 -1
- package/dist/Applet/Test/Upload/appletTestUploadFacade.js.map +1 -1
- package/dist/Applet/Test/appletTestCommand.d.ts +93 -2
- package/dist/Applet/Test/appletTestCommand.js +4 -2
- package/dist/Applet/Test/appletTestCommand.js.map +1 -1
- package/dist/Applet/Upload/appletUploadCommand.d.ts +63 -5
- package/dist/Applet/Upload/appletUploadCommand.js +142 -150
- package/dist/Applet/Upload/appletUploadCommand.js.map +1 -1
- package/dist/Applet/Upload/appletUploadCommandHelper.d.ts +17 -5
- package/dist/Applet/Upload/appletUploadCommandHelper.js +30 -47
- package/dist/Applet/Upload/appletUploadCommandHelper.js.map +1 -1
- package/dist/Applet/Upload/appletUploadFacade.d.ts +0 -7
- package/dist/Applet/Upload/appletUploadFacade.js +21 -23
- package/dist/Applet/Upload/appletUploadFacade.js.map +1 -1
- package/dist/Applet/Upload/appletUploadFacadeHelper.js +5 -4
- package/dist/Applet/Upload/appletUploadFacadeHelper.js.map +1 -1
- package/dist/Applet/appletCommand.d.ts +257 -2
- package/dist/Applet/appletCommand.js +4 -2
- package/dist/Applet/appletCommand.js.map +1 -1
- package/dist/Applet/appletFacade.d.ts +1 -3
- package/dist/Applet/appletFacade.js +28 -53
- package/dist/Applet/appletFacade.js.map +1 -1
- package/dist/Auth/loginCommand.d.ts +18 -2
- package/dist/Auth/loginCommand.js +16 -13
- package/dist/Auth/loginCommand.js.map +1 -1
- package/dist/Cache/tmpCache.js +1 -0
- package/dist/Cache/tmpCache.js.map +1 -1
- package/dist/Cli/helper.js +1 -0
- package/dist/Cli/helper.js.map +1 -1
- package/dist/Cli/packageVersion.d.ts +0 -6
- package/dist/Cli/packageVersion.js +10 -15
- package/dist/Cli/packageVersion.js.map +1 -1
- package/dist/Command/commandDefinition.d.ts +28 -0
- package/dist/Command/commandDefinition.js +8 -0
- package/dist/Command/commandDefinition.js.map +1 -0
- package/dist/Command/commandProcessor.d.ts +2 -10
- package/dist/Command/commandProcessor.js +13 -20
- package/dist/Command/commandProcessor.js.map +1 -1
- package/dist/Command/globalArgs.d.ts +2 -0
- package/dist/Command/globalArgs.js +16 -0
- package/dist/Command/globalArgs.js.map +1 -0
- package/dist/CommandLine/progressBarFactory.js +1 -0
- package/dist/CommandLine/progressBarFactory.js.map +1 -1
- package/dist/Device/Connect/connectCommand.d.ts +50 -2
- package/dist/Device/Connect/connectCommand.js +23 -18
- package/dist/Device/Connect/connectCommand.js.map +1 -1
- package/dist/Device/Connect/connectHelper.d.ts +0 -1
- package/dist/Device/Connect/connectHelper.js +39 -75
- package/dist/Device/Connect/connectHelper.js.map +1 -1
- package/dist/Device/Content/setContentCommand.d.ts +42 -2
- package/dist/Device/Content/setContentCommand.js +21 -13
- package/dist/Device/Content/setContentCommand.js.map +1 -1
- package/dist/Device/PowerAction/powerActionCommand.d.ts +42 -2
- package/dist/Device/PowerAction/powerActionCommand.js +17 -13
- package/dist/Device/PowerAction/powerActionCommand.js.map +1 -1
- package/dist/Device/deviceCommand.d.ts +129 -2
- package/dist/Device/deviceCommand.js +4 -2
- package/dist/Device/deviceCommand.js.map +1 -1
- package/dist/Device/deviceFacade.d.ts +11 -10
- package/dist/Device/deviceFacade.js +20 -15
- package/dist/Device/deviceFacade.js.map +1 -1
- package/dist/Emulator/createDomain.js +3 -2
- package/dist/Emulator/createDomain.js.map +1 -1
- package/dist/Emulator/emulatorFacade.d.ts +3 -1
- package/dist/Emulator/emulatorFacade.js +29 -27
- package/dist/Emulator/emulatorFacade.js.map +1 -1
- package/dist/Emulator/emulatorFactory.d.ts +3 -1
- package/dist/Emulator/emulatorFactory.js +19 -17
- package/dist/Emulator/emulatorFactory.js.map +1 -1
- package/dist/FileSystem/helper.js +21 -15
- package/dist/FileSystem/helper.js.map +1 -1
- package/dist/FileSystem/packageConfig.js +1 -0
- package/dist/FileSystem/packageConfig.js.map +1 -1
- package/dist/Firmware/Upload/firmwareUploadCommand.d.ts +48 -2
- package/dist/Firmware/Upload/firmwareUploadCommand.js +33 -20
- package/dist/Firmware/Upload/firmwareUploadCommand.js.map +1 -1
- package/dist/Firmware/Upload/firmwareUploadFacade.js +5 -4
- package/dist/Firmware/Upload/firmwareUploadFacade.js.map +1 -1
- package/dist/Firmware/Upload/firmwareUploadHelper.js +2 -2
- package/dist/Firmware/Upload/firmwareUploadHelper.js.map +1 -1
- package/dist/Firmware/firmwareCommand.d.ts +51 -2
- package/dist/Firmware/firmwareCommand.js +5 -8
- package/dist/Firmware/firmwareCommand.js.map +1 -1
- package/dist/Helper/localMachineHelper.d.ts +1 -0
- package/dist/Helper/localMachineHelper.js +94 -0
- package/dist/Helper/localMachineHelper.js.map +1 -0
- package/dist/Organization/Get/organizationGetCommand.d.ts +26 -2
- package/dist/Organization/Get/organizationGetCommand.js +11 -7
- package/dist/Organization/Get/organizationGetCommand.js.map +1 -1
- package/dist/Organization/List/organizationListCommand.d.ts +7 -2
- package/dist/Organization/List/organizationListCommand.js +6 -4
- package/dist/Organization/List/organizationListCommand.js.map +1 -1
- package/dist/Organization/SetDefault/organizationSetDefaultCommand.d.ts +18 -2
- package/dist/Organization/SetDefault/organizationSetDefaultCommand.js +12 -9
- package/dist/Organization/SetDefault/organizationSetDefaultCommand.js.map +1 -1
- package/dist/Organization/organizationCommand.d.ts +49 -2
- package/dist/Organization/organizationCommand.js +4 -2
- package/dist/Organization/organizationCommand.js.map +1 -1
- package/dist/Organization/organizationFacade.d.ts +20 -5
- package/dist/Organization/organizationFacade.js +60 -12
- package/dist/Organization/organizationFacade.js.map +1 -1
- package/dist/RunControl/runControlHelper.d.ts +1 -1
- package/dist/RunControl/runControlHelper.js +38 -14
- package/dist/RunControl/runControlHelper.js.map +1 -1
- package/dist/Stream/helper.js +1 -0
- package/dist/Stream/helper.js.map +1 -1
- package/dist/Timing/List/timingListCommand.d.ts +34 -2
- package/dist/Timing/List/timingListCommand.js +14 -10
- package/dist/Timing/List/timingListCommand.js.map +1 -1
- package/dist/Timing/timingCommand.d.ts +37 -2
- package/dist/Timing/timingCommand.js +4 -2
- package/dist/Timing/timingCommand.js.map +1 -1
- package/dist/generalCommand.d.ts +64 -0
- package/dist/generalCommand.js +46 -0
- package/dist/generalCommand.js.map +1 -0
- package/dist/helper.d.ts +6 -2
- package/dist/helper.js +13 -12
- package/dist/helper.js.map +1 -1
- package/dist/index.js +6 -18
- package/dist/index.js.map +1 -1
- package/package-lock.json +1094 -870
- package/package.json +14 -13
- package/dist/Command/ICommand.d.ts +0 -10
- package/dist/Command/ICommand.js +0 -3
- package/dist/Command/ICommand.js.map +0 -1
|
@@ -1,7 +1,65 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const
|
|
3
|
-
name:
|
|
4
|
-
type: StringConstructor;
|
|
1
|
+
import { CommandLineOptions } from '../../Command/commandDefinition';
|
|
2
|
+
export declare const OPTION_LIST: readonly [{
|
|
3
|
+
readonly name: "applet-path";
|
|
4
|
+
readonly type: StringConstructor;
|
|
5
|
+
readonly description: "Path to the applet file or the project folder depending on the entry file. Relative to the command or absolute.";
|
|
6
|
+
}, {
|
|
7
|
+
readonly name: "entry-file-path";
|
|
8
|
+
readonly type: StringConstructor;
|
|
9
|
+
readonly description: "Path to the applet entry file. Relative to the command or absolute.";
|
|
10
|
+
}, {
|
|
11
|
+
readonly name: "no-default-organization";
|
|
12
|
+
readonly type: BooleanConstructor;
|
|
13
|
+
readonly description: "Prevent using the defaultOrganizationUid from ~/.sosrc which were set using command sos organization set-default";
|
|
14
|
+
}, {
|
|
15
|
+
readonly name: "organization-uid";
|
|
16
|
+
readonly type: StringConstructor;
|
|
17
|
+
readonly description: "Organization UID";
|
|
18
|
+
}, {
|
|
19
|
+
readonly name: "update-package-config";
|
|
20
|
+
readonly type: BooleanConstructor;
|
|
21
|
+
readonly description: string;
|
|
22
|
+
}, {
|
|
23
|
+
readonly name: "yes";
|
|
24
|
+
readonly type: BooleanConstructor;
|
|
25
|
+
readonly description: "Allow to upload new applet or override existing version without confirmation step";
|
|
26
|
+
}, {
|
|
27
|
+
readonly name: "verbose";
|
|
28
|
+
readonly type: BooleanConstructor;
|
|
29
|
+
readonly description: "outputs all files to upload";
|
|
30
|
+
}];
|
|
31
|
+
export declare const appletUpload: {
|
|
32
|
+
name: "upload";
|
|
5
33
|
description: string;
|
|
34
|
+
optionList: readonly [{
|
|
35
|
+
readonly name: "applet-path";
|
|
36
|
+
readonly type: StringConstructor;
|
|
37
|
+
readonly description: "Path to the applet file or the project folder depending on the entry file. Relative to the command or absolute.";
|
|
38
|
+
}, {
|
|
39
|
+
readonly name: "entry-file-path";
|
|
40
|
+
readonly type: StringConstructor;
|
|
41
|
+
readonly description: "Path to the applet entry file. Relative to the command or absolute.";
|
|
42
|
+
}, {
|
|
43
|
+
readonly name: "no-default-organization";
|
|
44
|
+
readonly type: BooleanConstructor;
|
|
45
|
+
readonly description: "Prevent using the defaultOrganizationUid from ~/.sosrc which were set using command sos organization set-default";
|
|
46
|
+
}, {
|
|
47
|
+
readonly name: "organization-uid";
|
|
48
|
+
readonly type: StringConstructor;
|
|
49
|
+
readonly description: "Organization UID";
|
|
50
|
+
}, {
|
|
51
|
+
readonly name: "update-package-config";
|
|
52
|
+
readonly type: BooleanConstructor;
|
|
53
|
+
readonly description: string;
|
|
54
|
+
}, {
|
|
55
|
+
readonly name: "yes";
|
|
56
|
+
readonly type: BooleanConstructor;
|
|
57
|
+
readonly description: "Allow to upload new applet or override existing version without confirmation step";
|
|
58
|
+
}, {
|
|
59
|
+
readonly name: "verbose";
|
|
60
|
+
readonly type: BooleanConstructor;
|
|
61
|
+
readonly description: "outputs all files to upload";
|
|
62
|
+
}];
|
|
63
|
+
commands: never[];
|
|
64
|
+
run(options: CommandLineOptions<typeof OPTION_LIST>): Promise<void>;
|
|
6
65
|
};
|
|
7
|
-
export declare const appletUpload: ICommand;
|
|
@@ -51,11 +51,17 @@ var __read = (this && this.__read) || function (o, n) {
|
|
|
51
51
|
}
|
|
52
52
|
return ar;
|
|
53
53
|
};
|
|
54
|
-
var
|
|
55
|
-
for (var
|
|
56
|
-
|
|
54
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
55
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
56
|
+
if (ar || !(i in from)) {
|
|
57
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
58
|
+
ar[i] = from[i];
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
57
62
|
};
|
|
58
63
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
64
|
+
exports.appletUpload = exports.OPTION_LIST = void 0;
|
|
59
65
|
var chalk_1 = require("chalk");
|
|
60
66
|
var prompts = require("prompts");
|
|
61
67
|
var helper_1 = require("../../helper");
|
|
@@ -67,251 +73,237 @@ var appletUploadCommandHelper_1 = require("./appletUploadCommandHelper");
|
|
|
67
73
|
var helper_2 = require("../../FileSystem/helper");
|
|
68
74
|
var progressBarFactory_1 = require("../../CommandLine/progressBarFactory");
|
|
69
75
|
var packageConfig_1 = require("../../FileSystem/packageConfig");
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
76
|
+
var commandDefinition_1 = require("../../Command/commandDefinition");
|
|
77
|
+
exports.OPTION_LIST = [
|
|
78
|
+
appletUploadCommandHelper_1.APPLET_PATH_OPTION,
|
|
79
|
+
appletUploadCommandHelper_1.ENTRY_FILE_PATH_OPTION,
|
|
80
|
+
organizationFacade_1.NO_DEFAULT_ORGANIZATION_OPTION,
|
|
81
|
+
organizationFacade_1.ORGANIZATION_UID_OPTION,
|
|
82
|
+
{
|
|
83
|
+
name: 'update-package-config',
|
|
84
|
+
type: Boolean,
|
|
85
|
+
description: "Force updating package.json with sos.appletUid value of created applet."
|
|
86
|
+
+ "It's useful when appletUid is passed using SOS_APPLET_UID environment variable.",
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: 'yes',
|
|
90
|
+
type: Boolean,
|
|
91
|
+
description: "Allow to upload new applet or override existing version without confirmation step",
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: 'verbose',
|
|
95
|
+
type: Boolean,
|
|
96
|
+
description: "outputs all files to upload",
|
|
97
|
+
},
|
|
98
|
+
];
|
|
99
|
+
exports.appletUpload = (0, commandDefinition_1.createCommandDefinition)({
|
|
77
100
|
name: 'upload',
|
|
78
101
|
description: 'Uploads current applet version',
|
|
79
|
-
optionList:
|
|
80
|
-
{
|
|
81
|
-
name: 'applet-path',
|
|
82
|
-
type: String,
|
|
83
|
-
// defaultValue: DEFAULT_APPLET_DIR_PATH,
|
|
84
|
-
description: 'Path to the applet file or the project folder depending on the entry file. Relative to the command or absolute.',
|
|
85
|
-
},
|
|
86
|
-
exports.ENTRY_FILE_PATH_OPTION,
|
|
87
|
-
organizationFacade_1.ORGANIZATION_UID_OPTION,
|
|
88
|
-
{
|
|
89
|
-
name: 'no-update-package-config',
|
|
90
|
-
type: Boolean,
|
|
91
|
-
description: "Skip updating package.json with sos.appletUid value of created applet."
|
|
92
|
-
+ "It's useful when appletUid is passed using SOS_APPLET_UID environment variable.",
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
name: 'yes',
|
|
96
|
-
type: Boolean,
|
|
97
|
-
description: "Allow to upload new applet or override existing version without confirmation step",
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
name: 'verbose',
|
|
101
|
-
type: Boolean,
|
|
102
|
-
description: "outputs all files to upload",
|
|
103
|
-
},
|
|
104
|
-
],
|
|
102
|
+
optionList: exports.OPTION_LIST,
|
|
105
103
|
commands: [],
|
|
106
104
|
run: function (options) {
|
|
107
105
|
return __awaiter(this, void 0, void 0, function () {
|
|
108
|
-
var currentDirectory, organizationUid, organization, restApi, appletName, appletVersion,
|
|
109
|
-
return __generator(this, function (
|
|
110
|
-
switch (
|
|
106
|
+
var currentDirectory, organizationUid, organization, restApi, appletName, appletVersion, appletPathOption, appletEntryOption, updatePackageConfig, appletBinaryFilePath, appletDirectoryPath, appletEntryFilePath, isSingleFileApplet, appletVersionExists, overrideAppletVersionConfirmed, createNewAppletVersionConfirmed, appletUid, createdApplet, applet, verbose, allowVerbose, appletFiles, error_1, _a, _b, _c, _d, yes, skipConfirmation, response, response, appletEntryFileRelativePath, progressBar, appletEntryFileRelativePath, progressBar;
|
|
107
|
+
return __generator(this, function (_e) {
|
|
108
|
+
switch (_e.label) {
|
|
111
109
|
case 0:
|
|
112
110
|
currentDirectory = process.cwd();
|
|
113
|
-
return [4 /*yield*/,
|
|
111
|
+
return [4 /*yield*/, (0, organizationFacade_1.getOrganizationUidOrDefaultOrSelect)(options)];
|
|
114
112
|
case 1:
|
|
115
|
-
organizationUid =
|
|
116
|
-
return [4 /*yield*/, organizationFacade_1.getOrganization(organizationUid)];
|
|
113
|
+
organizationUid = _e.sent();
|
|
114
|
+
return [4 /*yield*/, (0, organizationFacade_1.getOrganization)(organizationUid)];
|
|
117
115
|
case 2:
|
|
118
|
-
organization =
|
|
119
|
-
restApi = helper_1.createOrganizationRestApi(organization);
|
|
120
|
-
return [4 /*yield*/, appletFacade_1.getAppletName(currentDirectory)];
|
|
116
|
+
organization = _e.sent();
|
|
117
|
+
restApi = (0, helper_1.createOrganizationRestApi)(organization);
|
|
118
|
+
return [4 /*yield*/, (0, appletFacade_1.getAppletName)(currentDirectory)];
|
|
121
119
|
case 3:
|
|
122
|
-
appletName =
|
|
123
|
-
return [4 /*yield*/, appletFacade_1.getAppletVersion(currentDirectory)];
|
|
120
|
+
appletName = _e.sent();
|
|
121
|
+
return [4 /*yield*/, (0, appletFacade_1.getAppletVersion)(currentDirectory)];
|
|
124
122
|
case 4:
|
|
125
|
-
appletVersion =
|
|
126
|
-
return [4 /*yield*/, appletFacade_1.getAppletFrontAppletVersion(currentDirectory)];
|
|
127
|
-
case 5:
|
|
128
|
-
appletFrontAppletVersion = _d.sent();
|
|
123
|
+
appletVersion = _e.sent();
|
|
129
124
|
appletPathOption = options['applet-path'];
|
|
130
125
|
appletEntryOption = options['entry-file-path'];
|
|
131
|
-
|
|
126
|
+
updatePackageConfig = options['update-package-config'];
|
|
132
127
|
appletBinaryFilePath = undefined;
|
|
133
128
|
appletDirectoryPath = undefined;
|
|
134
129
|
appletEntryFilePath = undefined;
|
|
135
130
|
isSingleFileApplet = !!(appletPathOption && !appletEntryOption);
|
|
136
|
-
if (!isSingleFileApplet) return [3 /*break*/,
|
|
131
|
+
if (!isSingleFileApplet) return [3 /*break*/, 6];
|
|
137
132
|
displaySingleFileAppletDeprecationNote();
|
|
138
|
-
return [4 /*yield*/, appletUploadCommandHelper_1.getAppletBinaryFileAbsolutePath(currentDirectory, options)];
|
|
139
|
-
case
|
|
140
|
-
appletBinaryFilePath =
|
|
141
|
-
return [3 /*break*/,
|
|
142
|
-
case
|
|
133
|
+
return [4 /*yield*/, (0, appletUploadCommandHelper_1.getAppletBinaryFileAbsolutePath)(currentDirectory, options)];
|
|
134
|
+
case 5:
|
|
135
|
+
appletBinaryFilePath = _e.sent();
|
|
136
|
+
return [3 /*break*/, 9];
|
|
137
|
+
case 6: return [4 /*yield*/, (0, appletUploadCommandHelper_1.getAppletDirectoryAbsolutePath)(currentDirectory, options)];
|
|
138
|
+
case 7:
|
|
139
|
+
appletDirectoryPath = _e.sent();
|
|
140
|
+
return [4 /*yield*/, (0, appletUploadCommandHelper_1.getAppletEntryFileAbsolutePath)(currentDirectory, options)];
|
|
143
141
|
case 8:
|
|
144
|
-
|
|
145
|
-
|
|
142
|
+
appletEntryFilePath = _e.sent();
|
|
143
|
+
_e.label = 9;
|
|
146
144
|
case 9:
|
|
147
|
-
appletEntryFilePath = _d.sent();
|
|
148
|
-
_d.label = 10;
|
|
149
|
-
case 10:
|
|
150
145
|
appletVersionExists = true;
|
|
151
146
|
overrideAppletVersionConfirmed = false;
|
|
152
147
|
createNewAppletVersionConfirmed = false;
|
|
153
|
-
return [4 /*yield*/, appletFacade_1.
|
|
154
|
-
case
|
|
155
|
-
appletUid =
|
|
156
|
-
if (!!appletUid) return [3 /*break*/,
|
|
148
|
+
return [4 /*yield*/, (0, appletFacade_1.getAppletUid)(restApi)];
|
|
149
|
+
case 10:
|
|
150
|
+
appletUid = _e.sent();
|
|
151
|
+
if (!!appletUid) return [3 /*break*/, 13];
|
|
157
152
|
console.log(chalk_1.default.yellow("applet uid is not present in package file, adding one."));
|
|
158
153
|
return [4 /*yield*/, restApi.applet.create({ name: appletName })];
|
|
159
|
-
case
|
|
160
|
-
createdApplet =
|
|
154
|
+
case 11:
|
|
155
|
+
createdApplet = _e.sent();
|
|
161
156
|
appletUid = createdApplet.uid;
|
|
162
|
-
if (
|
|
163
|
-
return [4 /*yield*/, packageConfig_1.saveToPackage(currentDirectory, { sos: { appletUid: appletUid } })];
|
|
164
|
-
case
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
case
|
|
168
|
-
case
|
|
169
|
-
applet =
|
|
157
|
+
if (!updatePackageConfig) return [3 /*break*/, 13];
|
|
158
|
+
return [4 /*yield*/, (0, packageConfig_1.saveToPackage)(currentDirectory, { sos: { appletUid: appletUid } })];
|
|
159
|
+
case 12:
|
|
160
|
+
_e.sent();
|
|
161
|
+
_e.label = 13;
|
|
162
|
+
case 13: return [4 /*yield*/, restApi.applet.get(appletUid)];
|
|
163
|
+
case 14:
|
|
164
|
+
applet = _e.sent();
|
|
170
165
|
return [4 /*yield*/, restApi.applet.version.get(appletUid, appletVersion).catch(function () { return appletVersionExists = false; })];
|
|
171
|
-
case
|
|
172
|
-
|
|
166
|
+
case 15:
|
|
167
|
+
_e.sent();
|
|
173
168
|
verbose = 'verbose';
|
|
174
169
|
allowVerbose = options[verbose];
|
|
175
170
|
appletFiles = [];
|
|
176
|
-
if (!!isSingleFileApplet) return [3 /*break*/,
|
|
177
|
-
|
|
171
|
+
if (!!isSingleFileApplet) return [3 /*break*/, 21];
|
|
172
|
+
_e.label = 16;
|
|
173
|
+
case 16:
|
|
174
|
+
_e.trys.push([16, 18, , 19]);
|
|
175
|
+
return [4 /*yield*/, (0, helper_2.validateAllFormalities)(appletDirectoryPath, options[appletUploadCommandHelper_1.ENTRY_FILE_PATH_OPTION.name] || appletUploadCommandHelper_1.DEFAULT_APPLET_ENTRY_FILE_PATH)];
|
|
178
176
|
case 17:
|
|
179
|
-
|
|
180
|
-
return [
|
|
177
|
+
_e.sent();
|
|
178
|
+
return [3 /*break*/, 19];
|
|
181
179
|
case 18:
|
|
182
|
-
|
|
183
|
-
return [3 /*break*/, 20];
|
|
184
|
-
case 19:
|
|
185
|
-
error_1 = _d.sent();
|
|
180
|
+
error_1 = _e.sent();
|
|
186
181
|
throw error_1;
|
|
187
|
-
case
|
|
182
|
+
case 19:
|
|
188
183
|
_b = (_a = appletFiles.push).apply;
|
|
189
184
|
_c = [appletFiles];
|
|
190
|
-
|
|
185
|
+
_d = [[]];
|
|
186
|
+
return [4 /*yield*/, (0, helper_2.listDirectoryContentRecursively)(appletDirectoryPath, currentDirectory)];
|
|
187
|
+
case 20:
|
|
188
|
+
_b.apply(_a, _c.concat([__spreadArray.apply(void 0, _d.concat([__read.apply(void 0, [(_e.sent())]), false]))]));
|
|
189
|
+
_e.label = 21;
|
|
191
190
|
case 21:
|
|
192
|
-
_b.apply(_a, _c.concat([__spread.apply(void 0, [(_d.sent())])]));
|
|
193
|
-
_d.label = 22;
|
|
194
|
-
case 22:
|
|
195
191
|
if (allowVerbose) {
|
|
196
192
|
printUploadFiles(appletFiles);
|
|
197
193
|
}
|
|
198
194
|
yes = 'yes';
|
|
199
195
|
skipConfirmation = options[yes];
|
|
200
|
-
if (!appletVersionExists) return [3 /*break*/,
|
|
201
|
-
if (!skipConfirmation) return [3 /*break*/,
|
|
202
|
-
console.log(chalk_1.default.yellow("Will override existing version "
|
|
196
|
+
if (!appletVersionExists) return [3 /*break*/, 25];
|
|
197
|
+
if (!skipConfirmation) return [3 /*break*/, 22];
|
|
198
|
+
console.log(chalk_1.default.yellow("Will override existing version ".concat(appletVersion)));
|
|
203
199
|
overrideAppletVersionConfirmed = true;
|
|
204
|
-
return [3 /*break*/,
|
|
205
|
-
case
|
|
200
|
+
return [3 /*break*/, 24];
|
|
201
|
+
case 22: return [4 /*yield*/, prompts({
|
|
206
202
|
type: 'confirm',
|
|
207
203
|
name: 'override',
|
|
208
|
-
message: "Do you want to override applet version "
|
|
204
|
+
message: "Do you want to override applet version ".concat(appletVersion, "?"),
|
|
209
205
|
})];
|
|
210
|
-
case
|
|
211
|
-
response =
|
|
206
|
+
case 23:
|
|
207
|
+
response = _e.sent();
|
|
212
208
|
overrideAppletVersionConfirmed = response.override;
|
|
213
|
-
|
|
214
|
-
case
|
|
215
|
-
case
|
|
216
|
-
if (!skipConfirmation) return [3 /*break*/,
|
|
217
|
-
console.log(chalk_1.default.yellow("Will create new version "
|
|
209
|
+
_e.label = 24;
|
|
210
|
+
case 24: return [3 /*break*/, 28];
|
|
211
|
+
case 25:
|
|
212
|
+
if (!skipConfirmation) return [3 /*break*/, 26];
|
|
213
|
+
console.log(chalk_1.default.yellow("Will create new version ".concat(appletVersion)));
|
|
218
214
|
createNewAppletVersionConfirmed = true;
|
|
219
|
-
return [3 /*break*/,
|
|
220
|
-
case
|
|
215
|
+
return [3 /*break*/, 28];
|
|
216
|
+
case 26: return [4 /*yield*/, prompts({
|
|
221
217
|
type: 'confirm',
|
|
222
218
|
name: 'newVersion',
|
|
223
|
-
message: "Do you want to create new applet version "
|
|
219
|
+
message: "Do you want to create new applet version ".concat(appletVersion, "?"),
|
|
224
220
|
})];
|
|
225
|
-
case
|
|
226
|
-
response =
|
|
221
|
+
case 27:
|
|
222
|
+
response = _e.sent();
|
|
227
223
|
createNewAppletVersionConfirmed = response.newVersion;
|
|
228
|
-
|
|
229
|
-
case
|
|
230
|
-
if (!overrideAppletVersionConfirmed) return [3 /*break*/,
|
|
231
|
-
if (!isSingleFileApplet) return [3 /*break*/,
|
|
232
|
-
return [4 /*yield*/, appletUploadFacade_1.updateSingleFileApplet({
|
|
224
|
+
_e.label = 28;
|
|
225
|
+
case 28:
|
|
226
|
+
if (!overrideAppletVersionConfirmed) return [3 /*break*/, 33];
|
|
227
|
+
if (!isSingleFileApplet) return [3 /*break*/, 30];
|
|
228
|
+
return [4 /*yield*/, (0, appletUploadFacade_1.updateSingleFileApplet)({
|
|
233
229
|
restApi: restApi,
|
|
234
230
|
applet: {
|
|
235
231
|
uid: appletUid,
|
|
236
232
|
version: appletVersion,
|
|
237
|
-
frontAppletVersion: appletFrontAppletVersion,
|
|
238
233
|
binaryFilePath: appletBinaryFilePath,
|
|
239
234
|
},
|
|
240
235
|
})];
|
|
236
|
+
case 29:
|
|
237
|
+
_e.sent();
|
|
238
|
+
return [3 /*break*/, 32];
|
|
241
239
|
case 30:
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
appletEntryFileRelativePath = appletUploadCommandHelper_1.getAppletEntryFileRelativePath(appletEntryFilePath, appletDirectoryPath);
|
|
246
|
-
progressBar = progressBarFactory_1.createProgressBar();
|
|
247
|
-
return [4 /*yield*/, appletUploadFacade_1.updateMultiFileApplet({
|
|
240
|
+
appletEntryFileRelativePath = (0, appletUploadCommandHelper_1.getAppletEntryFileRelativePath)(appletEntryFilePath, appletDirectoryPath);
|
|
241
|
+
progressBar = (0, progressBarFactory_1.createProgressBar)();
|
|
242
|
+
return [4 /*yield*/, (0, appletUploadFacade_1.updateMultiFileApplet)({
|
|
248
243
|
restApi: restApi,
|
|
249
244
|
applet: {
|
|
250
245
|
uid: appletUid,
|
|
251
246
|
version: appletVersion,
|
|
252
|
-
frontAppletVersion: appletFrontAppletVersion,
|
|
253
247
|
entryFilePath: appletEntryFileRelativePath,
|
|
254
248
|
directoryPath: appletDirectoryPath,
|
|
255
249
|
files: appletFiles,
|
|
256
250
|
},
|
|
257
251
|
progressBar: progressBar,
|
|
258
252
|
})];
|
|
253
|
+
case 31:
|
|
254
|
+
_e.sent();
|
|
255
|
+
_e.label = 32;
|
|
259
256
|
case 32:
|
|
260
|
-
_d.sent();
|
|
261
|
-
_d.label = 33;
|
|
262
|
-
case 33:
|
|
263
257
|
displaySuccessMessage(applet.uid, applet.name, appletVersion, parameters.boxHost);
|
|
264
|
-
return [3 /*break*/,
|
|
265
|
-
case
|
|
266
|
-
if (!createNewAppletVersionConfirmed) return [3 /*break*/,
|
|
267
|
-
if (!isSingleFileApplet) return [3 /*break*/,
|
|
268
|
-
return [4 /*yield*/, appletUploadFacade_1.createSingleFileApplet({
|
|
258
|
+
return [3 /*break*/, 39];
|
|
259
|
+
case 33:
|
|
260
|
+
if (!createNewAppletVersionConfirmed) return [3 /*break*/, 38];
|
|
261
|
+
if (!isSingleFileApplet) return [3 /*break*/, 35];
|
|
262
|
+
return [4 /*yield*/, (0, appletUploadFacade_1.createSingleFileApplet)({
|
|
269
263
|
restApi: restApi,
|
|
270
264
|
applet: {
|
|
271
265
|
uid: appletUid,
|
|
272
266
|
version: appletVersion,
|
|
273
|
-
frontAppletVersion: appletFrontAppletVersion,
|
|
274
267
|
binaryFilePath: appletBinaryFilePath,
|
|
275
268
|
},
|
|
276
269
|
})];
|
|
270
|
+
case 34:
|
|
271
|
+
_e.sent();
|
|
272
|
+
return [3 /*break*/, 37];
|
|
277
273
|
case 35:
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
appletEntryFileRelativePath = appletUploadCommandHelper_1.getAppletEntryFileRelativePath(appletEntryFilePath, appletDirectoryPath);
|
|
282
|
-
progressBar = progressBarFactory_1.createProgressBar();
|
|
283
|
-
return [4 /*yield*/, appletUploadFacade_1.createMultiFileFileApplet({
|
|
274
|
+
appletEntryFileRelativePath = (0, appletUploadCommandHelper_1.getAppletEntryFileRelativePath)(appletEntryFilePath, appletDirectoryPath);
|
|
275
|
+
progressBar = (0, progressBarFactory_1.createProgressBar)();
|
|
276
|
+
return [4 /*yield*/, (0, appletUploadFacade_1.createMultiFileFileApplet)({
|
|
284
277
|
restApi: restApi,
|
|
285
278
|
applet: {
|
|
286
279
|
uid: appletUid,
|
|
287
280
|
version: appletVersion,
|
|
288
|
-
frontAppletVersion: appletFrontAppletVersion,
|
|
289
281
|
entryFilePath: appletEntryFileRelativePath,
|
|
290
282
|
directoryPath: appletDirectoryPath,
|
|
291
283
|
files: appletFiles,
|
|
292
284
|
},
|
|
293
285
|
progressBar: progressBar,
|
|
294
286
|
})];
|
|
287
|
+
case 36:
|
|
288
|
+
_e.sent();
|
|
289
|
+
_e.label = 37;
|
|
295
290
|
case 37:
|
|
296
|
-
_d.sent();
|
|
297
|
-
_d.label = 38;
|
|
298
|
-
case 38:
|
|
299
291
|
displaySuccessMessage(applet.uid, applet.name, appletVersion, parameters.boxHost);
|
|
300
|
-
return [3 /*break*/,
|
|
301
|
-
case
|
|
302
|
-
case
|
|
292
|
+
return [3 /*break*/, 39];
|
|
293
|
+
case 38: throw new Error('Applet version upload was canceled.');
|
|
294
|
+
case 39: return [2 /*return*/];
|
|
303
295
|
}
|
|
304
296
|
});
|
|
305
297
|
});
|
|
306
298
|
},
|
|
307
|
-
};
|
|
299
|
+
});
|
|
308
300
|
function displaySuccessMessage(appletUid, appletName, appletVersion, boxHost) {
|
|
309
|
-
console.log("Applet "
|
|
310
|
-
var appletBoxUri = "https://"
|
|
311
|
-
console.log("To build specific applications (Tizen, WebOS, SSSP, BrightSign, RPi, Android etc.) go to "
|
|
301
|
+
console.log("Applet ".concat(chalk_1.default.green(appletName), " version ").concat(chalk_1.default.green(appletVersion), " has been uploaded."));
|
|
302
|
+
var appletBoxUri = "https://".concat(boxHost, "/applet/").concat(appletUid, "/").concat(appletVersion, "/build");
|
|
303
|
+
console.log("To build specific applications (Tizen, WebOS, SSSP, BrightSign, RPi, Android etc.) go to ".concat(chalk_1.default.blue(appletBoxUri)));
|
|
312
304
|
}
|
|
313
305
|
function displaySingleFileAppletDeprecationNote() {
|
|
314
|
-
console.log(chalk_1.default.red("Applets with only applet-path file are "
|
|
306
|
+
console.log("".concat(chalk_1.default.red("Applets with only applet-path file are ".concat(chalk_1.default.bold("deprecated"), ".")), " Please find more information at our website."));
|
|
315
307
|
}
|
|
316
308
|
/**
|
|
317
309
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appletUploadCommand.js","sourceRoot":"","sources":["../../../src/Applet/Upload/appletUploadCommand.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"appletUploadCommand.js","sourceRoot":"","sources":["../../../src/Applet/Upload/appletUploadCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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qBAAW,SAAS,cAAI,aAAa,WAAQ,CAAC;IACrF,OAAO,CAAC,GAAG,CAAC,mGAA4F,eAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAE,CAAC,CAAC;AACrI,CAAC;AAED,SAAS,sCAAsC;IAC9C,OAAO,CAAC,GAAG,CACV,UAAG,eAAK,CAAC,GAAG,CAAC,iDAA0C,eAAK,CAAC,IAAI,CAAC,YAAY,CAAC,MAAG,CAAC,kDAA+C,CAClI,CAAC;AACH,CAAC;AAED;;;GAGG;AACH,SAAS,gBAAgB,CAAC,WAAqB;IAC9C,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE;QAC3B,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,MAAM,CAAC,iCAAiC,CAAC,CAAC,CAAC;KAC7D;IACD,WAAW,CAAC,OAAO,CAAC,UAAC,IAAY,IAAK,OAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAjB,CAAiB,CAAC,CAAC;AAC1D,CAAC"}
|
|
@@ -1,6 +1,18 @@
|
|
|
1
|
-
import { CommandLineOptions } from '
|
|
2
|
-
export declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { CommandLineOptions } from '../../Command/commandDefinition';
|
|
2
|
+
export declare const ENTRY_FILE_PATH_OPTION: {
|
|
3
|
+
readonly name: "entry-file-path";
|
|
4
|
+
readonly type: StringConstructor;
|
|
5
|
+
readonly description: "Path to the applet entry file. Relative to the command or absolute.";
|
|
6
|
+
};
|
|
7
|
+
export declare const APPLET_PATH_OPTION: {
|
|
8
|
+
readonly name: "applet-path";
|
|
9
|
+
readonly type: StringConstructor;
|
|
10
|
+
readonly description: "Path to the applet file or the project folder depending on the entry file. Relative to the command or absolute.";
|
|
11
|
+
};
|
|
12
|
+
export declare const DEFAULT_APPLET_DIR_PATH = ".";
|
|
13
|
+
export declare const DEFAULT_APPLET_ENTRY_FILE_PATH = "dist/index.html";
|
|
14
|
+
export declare const DEFAULT_APPLET_BINARY_FILE_PATH = "dist/index.html";
|
|
15
|
+
export declare function getAppletDirectoryAbsolutePath(currentDirectory: string, options: CommandLineOptions<[typeof APPLET_PATH_OPTION]>): Promise<string>;
|
|
16
|
+
export declare function getAppletBinaryFileAbsolutePath(currentDirectory: string, options: CommandLineOptions<[typeof APPLET_PATH_OPTION]>): Promise<string>;
|
|
17
|
+
export declare function getAppletEntryFileAbsolutePath(currentDirectory: string, options: CommandLineOptions<[typeof ENTRY_FILE_PATH_OPTION]>): Promise<string>;
|
|
6
18
|
export declare function getAppletEntryFileRelativePath(entryFileAbsolutePath: string, appletDirectoryAbsolutePath: string): string;
|