@soleil-se/build-app 1.11.4 → 1.12.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/index.js +1 -1
- package/package.json +2 -2
- package/requests/activateAddon.js +1 -0
- package/requests/createAddon.js +2 -0
- package/requests/uploadAddon.js +1 -0
- package/utils/files.js +1 -1
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soleil-se/build-app",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.1",
|
|
4
4
|
"bin": {
|
|
5
5
|
"build-app": "./bin/index.js",
|
|
6
6
|
"sv-app-build": "./bin/index.js"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"slash": "5.1.0",
|
|
48
48
|
"svelte-preprocess": "5.1.3",
|
|
49
49
|
"@soleil-se/build-config": "1.2.0",
|
|
50
|
-
"@soleil-se/build-utils": "1.6.
|
|
50
|
+
"@soleil-se/build-utils": "1.6.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"svelte": "4.2.8"
|
|
@@ -23,6 +23,7 @@ function readManifestFile() {
|
|
|
23
23
|
function getPropertiesUri(type, id, version) {
|
|
24
24
|
switch (type.toLowerCase()) {
|
|
25
25
|
case 'webapp':
|
|
26
|
+
case 'widget':
|
|
26
27
|
return `WebApp%20Repository/${id}-${version}/properties`;
|
|
27
28
|
case 'restapp':
|
|
28
29
|
return `RestApp%20Repository/${id}-${version}/properties`;
|
package/requests/createAddon.js
CHANGED
|
@@ -9,6 +9,8 @@ function getCreateUri(type) {
|
|
|
9
9
|
return 'Addon%20Repository/custommodule';
|
|
10
10
|
case 'restapp':
|
|
11
11
|
return 'Addon%20Repository/headlesscustommodule';
|
|
12
|
+
case 'widget':
|
|
13
|
+
return 'Addon%20Repository/widgetcustommodule';
|
|
12
14
|
default:
|
|
13
15
|
throw new Error('Unknown app type...');
|
|
14
16
|
}
|
package/requests/uploadAddon.js
CHANGED
|
@@ -9,6 +9,7 @@ import addonRequest from './api/addonRequest.js';
|
|
|
9
9
|
function getUploadUri(type, name) {
|
|
10
10
|
switch (type.toLowerCase()) {
|
|
11
11
|
case 'webapp':
|
|
12
|
+
case 'widget':
|
|
12
13
|
return `Addon%20Repository/${encodeURIComponent(name)}/webAppImport`;
|
|
13
14
|
case 'restapp':
|
|
14
15
|
return `Addon%20Repository/${encodeURIComponent(name)}/restAppImport`;
|
package/utils/files.js
CHANGED
|
@@ -36,7 +36,7 @@ async function manageCss({ type, bundled, dest }) {
|
|
|
36
36
|
const clientOutput = bundled ? `${dest}/src/main.css` : `${dest}/src/resource/client/index.css`;
|
|
37
37
|
const hooksOutput = `${dest}/src/hooks.css`;
|
|
38
38
|
|
|
39
|
-
const cssDest = type.toLowerCase()
|
|
39
|
+
const cssDest = ['webapp', 'widget'].includes(type.toLowerCase()) ? `${dest}/src/css` : `${dest}/src/resource/client`;
|
|
40
40
|
|
|
41
41
|
if (await hasSameContent(serverOutput, clientOutput)) {
|
|
42
42
|
await fse.remove(serverOutput);
|