@appsemble/cli 0.27.0 → 0.27.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 +3 -3
- package/commands/app/update.js +1 -2
- package/lib/app.js +9 -4
- package/package.json +5 -5
- package/templates/apps/empty/app-definition.yaml +2 -2
- package/templates/blocks/mini-jsx/package.json +1 -1
- package/templates/blocks/preact/package.json +2 -2
- package/templates/blocks/vanilla/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
#  Appsemble CLI
|
|
2
2
|
|
|
3
3
|
> Manage apps and blocks from the command line.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@appsemble/cli)
|
|
6
|
-
[](https://gitlab.com/appsemble/appsemble/-/releases/0.27.1)
|
|
7
7
|
[](https://prettier.io)
|
|
8
8
|
|
|
9
9
|
## Table of Contents
|
|
@@ -305,5 +305,5 @@ appsemble run-cronjobs --interval 30
|
|
|
305
305
|
|
|
306
306
|
## License
|
|
307
307
|
|
|
308
|
-
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.27.
|
|
308
|
+
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.27.1/LICENSE.md) ©
|
|
309
309
|
[Appsemble](https://appsemble.com)
|
package/commands/app/update.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppsembleError,
|
|
1
|
+
import { AppsembleError, logger } from '@appsemble/node-utils';
|
|
2
2
|
import fg from 'fast-glob';
|
|
3
3
|
import normalizePath from 'normalize-path';
|
|
4
4
|
import { updateApp } from '../../lib/app.js';
|
|
@@ -81,7 +81,6 @@ export async function handler({ clientCredentials, id, paths, remote, ...args })
|
|
|
81
81
|
}
|
|
82
82
|
const normalizedPaths = paths.map((path) => normalizePath(path));
|
|
83
83
|
const directories = await fg(normalizedPaths, { absolute: true, onlyDirectories: true });
|
|
84
|
-
await authenticate(remote, 'apps:write', clientCredentials);
|
|
85
84
|
logger.info(`Updating ${directories.length} apps`);
|
|
86
85
|
for (const dir of directories) {
|
|
87
86
|
await updateApp({
|
package/lib/app.js
CHANGED
|
@@ -663,10 +663,15 @@ export async function publishApp({ assets, clientCredentials, context, dryRun, m
|
|
|
663
663
|
const rcCollections = rc.context[context].collections;
|
|
664
664
|
if (Array.isArray(rcCollections)) {
|
|
665
665
|
for (const collectionId of rcCollections) {
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
666
|
+
try {
|
|
667
|
+
await axios.post(`/api/appCollections/${collectionId}/apps`, { AppId: data.id }, {
|
|
668
|
+
baseURL: remote,
|
|
669
|
+
});
|
|
670
|
+
logger.info(`Successfully added app to collection ${collectionId}`);
|
|
671
|
+
}
|
|
672
|
+
catch (error) {
|
|
673
|
+
logger.error(error);
|
|
674
|
+
}
|
|
670
675
|
}
|
|
671
676
|
}
|
|
672
677
|
if (appVariantPath !== path) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appsemble/cli",
|
|
3
|
-
"version": "0.27.
|
|
3
|
+
"version": "0.27.1",
|
|
4
4
|
"description": "The CLI for developing with Appsemble apps and blocks",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"app",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"test": "vitest"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@appsemble/node-utils": "0.27.
|
|
46
|
-
"@appsemble/types": "0.27.
|
|
47
|
-
"@appsemble/utils": "0.27.
|
|
45
|
+
"@appsemble/node-utils": "0.27.1",
|
|
46
|
+
"@appsemble/types": "0.27.1",
|
|
47
|
+
"@appsemble/utils": "0.27.1",
|
|
48
48
|
"@fortawesome/fontawesome-common-types": "^6.0.0",
|
|
49
49
|
"@koa/cors": "^4.0.0",
|
|
50
50
|
"@odata/parser": "^0.2.0",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"yargs": "^17.0.0"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
|
-
"@appsemble/types": "0.27.
|
|
90
|
+
"@appsemble/types": "0.27.1",
|
|
91
91
|
"@types/concat-stream": "^2.0.0",
|
|
92
92
|
"@types/inquirer": "^9.0.0",
|
|
93
93
|
"@types/normalize-path": "^3.0.0",
|
|
@@ -6,7 +6,7 @@ pages:
|
|
|
6
6
|
- name: Example Page A
|
|
7
7
|
blocks:
|
|
8
8
|
- type: action-button
|
|
9
|
-
version: 0.27.
|
|
9
|
+
version: 0.27.1
|
|
10
10
|
parameters:
|
|
11
11
|
icon: arrow-right
|
|
12
12
|
actions:
|
|
@@ -17,7 +17,7 @@ pages:
|
|
|
17
17
|
- name: Example Page B
|
|
18
18
|
blocks:
|
|
19
19
|
- type: action-button
|
|
20
|
-
version: 0.27.
|
|
20
|
+
version: 0.27.1
|
|
21
21
|
parameters:
|
|
22
22
|
icon: arrow-left
|
|
23
23
|
actions:
|