@signageos/cli 4.0.2 → 4.0.3
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.
|
@@ -22,6 +22,7 @@ const appletFacade_1 = require("../appletFacade");
|
|
|
22
22
|
const log_1 = require("@signageos/sdk/dist/Console/log");
|
|
23
23
|
const debug_1 = __importDefault(require("debug"));
|
|
24
24
|
const appletValidation_1 = require("../appletValidation");
|
|
25
|
+
const runControlHelper_1 = require("../../RunControl/runControlHelper");
|
|
25
26
|
const Debug = (0, debug_1.default)('@signageos/cli:Applet:Build:appletBuildCommand');
|
|
26
27
|
exports.OPTION_LIST = [organizationFacade_1.NO_DEFAULT_ORGANIZATION_OPTION, organizationFacade_1.ORGANIZATION_UID_OPTION, appletFacade_1.APPLET_UID_OPTION];
|
|
27
28
|
/**
|
|
@@ -61,8 +62,11 @@ exports.appletBuild = (0, commandDefinition_1.createCommandDefinition)({
|
|
|
61
62
|
const organizationUid = yield (0, organizationFacade_1.getOrganizationUidOrDefaultOrSelect)(options);
|
|
62
63
|
const organization = yield (0, organizationFacade_1.getOrganization)(organizationUid);
|
|
63
64
|
const restApi = yield (0, helper_1.createOrganizationRestApi)(organization);
|
|
65
|
+
const config = yield (0, runControlHelper_1.loadConfig)();
|
|
64
66
|
const dev = (0, dist_1.createDevelopment)({
|
|
65
67
|
organizationUid: organization.uid,
|
|
68
|
+
url: (0, helper_1.getApiUrl)(config),
|
|
69
|
+
accessToken: config.accessToken,
|
|
66
70
|
});
|
|
67
71
|
const appletUid = yield (0, appletFacade_1.getAppletUid)(restApi, options);
|
|
68
72
|
const appletVersion = yield (0, appletFacade_1.getAppletVersion)(currentDirectory);
|
|
@@ -21,6 +21,8 @@ const commandDefinition_1 = require("../../Command/commandDefinition");
|
|
|
21
21
|
const organizationFacade_1 = require("../../Organization/organizationFacade");
|
|
22
22
|
const dist_1 = require("@signageos/sdk/dist");
|
|
23
23
|
const wait_1 = __importDefault(require("../../Timer/wait"));
|
|
24
|
+
const runControlHelper_1 = require("../../RunControl/runControlHelper");
|
|
25
|
+
const helper_1 = require("../../helper");
|
|
24
26
|
const appletServerHelper_1 = require("../appletServerHelper");
|
|
25
27
|
const log_1 = require("@signageos/sdk/dist/Console/log");
|
|
26
28
|
const parameters_1 = require("../../parameters");
|
|
@@ -102,8 +104,11 @@ exports.appletStart = (0, commandDefinition_1.createCommandDefinition)({
|
|
|
102
104
|
const entryFileAbsolutePath = yield (0, appletUploadCommandHelper_1.getAppletEntryFileAbsolutePath)(currentDirectory, options);
|
|
103
105
|
const entryFileRelativePath = (0, appletUploadCommandHelper_1.getAppletEntryFileRelativePath)(entryFileAbsolutePath, appletPath);
|
|
104
106
|
const emulatorUid = yield (0, emulatorFacade_1.loadEmulatorOrCreateNewAndReturnUid)(organizationUid);
|
|
107
|
+
const config = yield (0, runControlHelper_1.loadConfig)();
|
|
105
108
|
const dev = (0, dist_1.createDevelopment)({
|
|
106
109
|
organizationUid,
|
|
110
|
+
url: (0, helper_1.getApiUrl)(config),
|
|
111
|
+
accessToken: config.accessToken,
|
|
107
112
|
});
|
|
108
113
|
const emulatorServerPort = (_a = options[PORT_OPTION.name]) !== null && _a !== void 0 ? _a : DEFAULT_PORT;
|
|
109
114
|
const hotReloadEnabled = options[appletServerHelper_1.HOT_RELOAD_OPTION.name];
|
|
@@ -20,6 +20,7 @@ const helper_1 = require("../../helper");
|
|
|
20
20
|
const commandDefinition_1 = require("../../Command/commandDefinition");
|
|
21
21
|
const sdk_1 = require("@signageos/sdk");
|
|
22
22
|
const wait_1 = __importDefault(require("../../Timer/wait"));
|
|
23
|
+
const runControlHelper_1 = require("../../RunControl/runControlHelper");
|
|
23
24
|
const appletServerHelper_1 = require("../../Applet/appletServerHelper");
|
|
24
25
|
const debug_1 = __importDefault(require("debug"));
|
|
25
26
|
const appletUploadCommandHelper_1 = require("../../Applet/Upload/appletUploadCommandHelper");
|
|
@@ -106,8 +107,11 @@ exports.connect = (0, commandDefinition_1.createCommandDefinition)({
|
|
|
106
107
|
const organizationUid = yield (0, organizationFacade_1.getOrganizationUidOrDefaultOrSelect)(options);
|
|
107
108
|
const organization = yield (0, organizationFacade_1.getOrganization)(organizationUid);
|
|
108
109
|
const restApi = yield (0, helper_1.createOrganizationRestApi)(organization);
|
|
110
|
+
const config = yield (0, runControlHelper_1.loadConfig)();
|
|
109
111
|
const dev = (0, sdk_1.createDevelopment)({
|
|
110
112
|
organizationUid: organization.uid,
|
|
113
|
+
url: (0, helper_1.getApiUrl)(config),
|
|
114
|
+
accessToken: config.accessToken,
|
|
111
115
|
});
|
|
112
116
|
const appletUid = yield (0, appletFacade_1.getAppletUid)(restApi, options);
|
|
113
117
|
const appletVersion = yield (0, appletFacade_1.getAppletVersion)(currentDirectory);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signageos/cli",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"author": "signageOS.io <dev@signageos.io>",
|
|
6
6
|
"files": [
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"dependencies": {
|
|
88
88
|
"@signageos/cli-common": "0.1.0",
|
|
89
89
|
"@signageos/file": "2.0.1",
|
|
90
|
-
"@signageos/sdk": "2.
|
|
90
|
+
"@signageos/sdk": "2.7.0",
|
|
91
91
|
"archiver": "7.0.1",
|
|
92
92
|
"chalk": "2.4.2",
|
|
93
93
|
"child-process-promise": "2.1.3",
|