@webos-tools/cli 3.1.1 → 3.1.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.
- package/CHANGELOG.md +173 -157
- package/LICENSES/342/200/216/LicenseRef-3rd_party_licenses.txt +1355 -0
- package/README.md +21 -19
- package/bin/ares-config.js +6 -3
- package/bin/ares-device.js +2 -2
- package/bin/ares-log.js +6 -2
- package/bin/ares-pull.js +1 -1
- package/bin/ares-push.js +1 -1
- package/bin/ares-setup-device.js +573 -528
- package/bin/ares-shell.js +1 -1
- package/bin/ares.js +1 -1
- package/files/conf/ares.json +5 -5
- package/files/conf/novacom-devices.json +18 -1
- package/files/conf-base/env/sdk-apollo.json +8 -0
- package/files/conf-base/profile/config-apollo.json +29 -0
- package/files/conf-base/profile/config-ose.json +1 -1
- package/files/conf-base/template-conf/apollo-sdk-templates.json +56 -0
- package/files/help/ares-config.help +6 -1
- package/files/help/ares-device.help +15 -0
- package/files/help/ares-generate.help +27 -1
- package/files/help/ares-inspect.help +6 -0
- package/files/help/ares-install.help +5 -0
- package/files/help/ares-launch.help +5 -0
- package/files/help/ares-server.help +5 -0
- package/files/help/ares-setup-device.help +40 -0
- package/files/help/ares.help +5 -0
- package/files/schema/NovacomDevices.schema +2 -1
- package/files/templates/apollo-sdk-templates/appinfo/appinfo.json +10 -0
- package/files/templates/apollo-sdk-templates/bootplate-web/index.html +88 -0
- package/files/templates/apollo-sdk-templates/hosted-webapp/index.html +14 -0
- package/files/templates/apollo-sdk-templates/icon/icon.png +0 -0
- package/files/templates/apollo-sdk-templates/js-service/helloclient.js +31 -0
- package/files/templates/apollo-sdk-templates/js-service/helloworld_webos_service.js +188 -0
- package/files/templates/apollo-sdk-templates/native-service/CMakeLists.txt +72 -0
- package/files/templates/apollo-sdk-templates/native-service/services.json +11 -0
- package/files/templates/apollo-sdk-templates/native-service/src/main.c +144 -0
- package/files/templates/apollo-sdk-templates/serviceinfo/package.json +11 -0
- package/files/templates/apollo-sdk-templates/serviceinfo/services.json +8 -0
- package/lib/base/novacom.js +1 -1
- package/lib/base/setup-device.js +338 -335
- package/lib/device.js +1 -1
- package/lib/generator.js +408 -377
- package/lib/package.js +3 -1
- package/lib/shell.js +1 -1
- package/npm-shrinkwrap.json +9242 -9242
- package/package.json +100 -100
- package/sbom-info.yaml +1758 -0
- package/spec/jsSpecs/ares-config.spec.js +10 -0
- package/spec/jsSpecs/ares-generate.spec.js +4 -4
- package/spec/jsSpecs/ares-log.spec.js +1 -1
- package/spec/test_data/ares-generate.json +18 -1
- package/spec/test_data/ares.json +17 -0
- package/webos-tools-cli-3.1.3.tgz +0 -0
|
@@ -42,6 +42,16 @@ describe(aresCmd + ' --profile(-p)', function() {
|
|
|
42
42
|
});
|
|
43
43
|
});
|
|
44
44
|
|
|
45
|
+
it("Set a device profile to apollo", function(done) {
|
|
46
|
+
exec(cmd + ' -p apollo', function (error, stdout, stderr) {
|
|
47
|
+
if (stderr && stderr.length > 0) {
|
|
48
|
+
common.detectNodeMessage(stderr);
|
|
49
|
+
}
|
|
50
|
+
expect(stdout).toContain("profile and config data is changed to apollo");
|
|
51
|
+
done();
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
|
|
45
55
|
it("Set a device profile input", function(done) {
|
|
46
56
|
exec(cmd + ` -p ${options.profile}`, function(error, stdout, stderr) {
|
|
47
57
|
if (stderr && stderr.length > 0) {
|
|
@@ -100,7 +100,7 @@ describe(aresCmd +' --property', function() {
|
|
|
100
100
|
});
|
|
101
101
|
|
|
102
102
|
it('Set the properties of packageinfo.json', function(done) {
|
|
103
|
-
if (options.profile === "ose") {
|
|
103
|
+
if (options.profile === "ose" || options.profile === "apollo") {
|
|
104
104
|
pending(options.skipTxt);
|
|
105
105
|
}
|
|
106
106
|
|
|
@@ -157,7 +157,7 @@ describe(aresCmd +' --property', function() {
|
|
|
157
157
|
});
|
|
158
158
|
|
|
159
159
|
it('Set the properties of qmlappinfo.json', function(done) {
|
|
160
|
-
if (options.profile === "tv") {
|
|
160
|
+
if (options.profile === "tv" || options.profile === "apollo") {
|
|
161
161
|
pending(options.skipTxt);
|
|
162
162
|
}
|
|
163
163
|
|
|
@@ -222,7 +222,7 @@ describe(aresCmd + ' --template', function() {
|
|
|
222
222
|
});
|
|
223
223
|
|
|
224
224
|
it('packageinfo : packageinfo.json for webOS package', function(done) {
|
|
225
|
-
if (options.profile === "ose") {
|
|
225
|
+
if (options.profile === "ose" || options.profile === "apollo") {
|
|
226
226
|
pending(options.skipTxt);
|
|
227
227
|
}
|
|
228
228
|
|
|
@@ -270,7 +270,7 @@ describe(aresCmd + ' --template', function() {
|
|
|
270
270
|
});
|
|
271
271
|
|
|
272
272
|
it('qmlapp : generate qml template app', function(done) {
|
|
273
|
-
if (options.profile === "tv") {
|
|
273
|
+
if (options.profile === "tv" || options.profile === "apollo") {
|
|
274
274
|
pending(options.skipTxt);
|
|
275
275
|
}
|
|
276
276
|
|
|
@@ -115,7 +115,7 @@ describe(aresCmd + " -cd", function() {
|
|
|
115
115
|
|
|
116
116
|
describe(aresCmd + " -sd", function() {
|
|
117
117
|
it("Print switch logging daemon", function(done) {
|
|
118
|
-
if (options.profile === "tv") {
|
|
118
|
+
if (options.profile === "tv" || options.profile === "apollo") {
|
|
119
119
|
pending(options.skipTxt);
|
|
120
120
|
}
|
|
121
121
|
exec(cmd + ` -sd ${targetLogDaemon}`, function(error, stdout, stderr) {
|
|
@@ -37,5 +37,22 @@
|
|
|
37
37
|
"webappinfo": ["appinfo.json"],
|
|
38
38
|
"packageinfo": ["packageinfo.json"]
|
|
39
39
|
}
|
|
40
|
+
},
|
|
41
|
+
"apollo": {
|
|
42
|
+
"list": [
|
|
43
|
+
"ID Project Type Description",
|
|
44
|
+
"------------- --------------- ------------------------------------------",
|
|
45
|
+
"webapp Web App (default) web app for Apollo",
|
|
46
|
+
"hosted_webapp Web App hosted web app for Apollo",
|
|
47
|
+
"webappinfo Web App Info appinfo.json for web app",
|
|
48
|
+
"js_service JS Service js service for Apollo",
|
|
49
|
+
"jsserviceinfo JS Service Info services.json, package.json for JS service",
|
|
50
|
+
"icon Icon app icon files [80x80]"
|
|
51
|
+
],
|
|
52
|
+
"template": {
|
|
53
|
+
"webapp": "webapp",
|
|
54
|
+
"jsservice": "js_service",
|
|
55
|
+
"webappinfo": ["appinfo.json"]
|
|
56
|
+
}
|
|
40
57
|
}
|
|
41
|
-
}
|
|
58
|
+
}
|
package/spec/test_data/ares.json
CHANGED
|
@@ -29,5 +29,22 @@
|
|
|
29
29
|
"ares-server Run a local web server",
|
|
30
30
|
"ares-setup-device Add or modify the information of the devices to use"
|
|
31
31
|
]
|
|
32
|
+
},
|
|
33
|
+
"apollo": {
|
|
34
|
+
"list": [
|
|
35
|
+
"ares-config Configure webOS CLI",
|
|
36
|
+
"ares-device Display the device information",
|
|
37
|
+
"ares-generate Generate files for a webOS app or service",
|
|
38
|
+
"ares-inspect Enable Web Inspector or Node's Inspector",
|
|
39
|
+
"ares-install Install or remove the app on the device",
|
|
40
|
+
"ares-launch Launch or close the app",
|
|
41
|
+
"ares-log Show or save logs of webOS apps and services",
|
|
42
|
+
"ares-package Create or analyze a package containing a webOS app or service",
|
|
43
|
+
"ares-pull Pull the file from the device",
|
|
44
|
+
"ares-push Push the file to the device",
|
|
45
|
+
"ares-server Run a local web server",
|
|
46
|
+
"ares-setup-device Add or modify the information of the devices to use",
|
|
47
|
+
"ares-shell Open a device terminal or run a command"
|
|
48
|
+
]
|
|
32
49
|
}
|
|
33
50
|
}
|
|
Binary file
|