@appsemble/cli 0.27.1 → 0.27.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/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.3)
|
|
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.3/LICENSE.md) ©
|
|
309
309
|
[Appsemble](https://appsemble.com)
|
package/lib/app.js
CHANGED
|
@@ -181,8 +181,8 @@ export async function publishSeedResources(path, app, remote) {
|
|
|
181
181
|
logger.info(`Publishing seed resources from ${resourcesPath}`);
|
|
182
182
|
if (existsSync(resourcesPath)) {
|
|
183
183
|
logger.info(`Deleting existing seed resources from app ${app.id}`);
|
|
184
|
-
await axios.delete(`/api/apps/${app.id}/seed-resources`);
|
|
185
184
|
try {
|
|
185
|
+
await axios.delete(`/api/apps/${app.id}/seed-resources`, { baseURL: remote });
|
|
186
186
|
const resourceFiles = await readdir(resourcesPath, { withFileTypes: true });
|
|
187
187
|
const resourcesToPublish = [];
|
|
188
188
|
const publishedResourcesIds = {};
|
|
@@ -231,11 +231,11 @@ export async function publishSeedAssets(path, app, remote, assetsClonable) {
|
|
|
231
231
|
logger.info(`Publishing seed assets from ${assetsPath}`);
|
|
232
232
|
if (existsSync(assetsPath)) {
|
|
233
233
|
logger.info(`Deleting existing seed assets from app ${app.id}`);
|
|
234
|
-
await axios.delete(`/api/apps/${app.id}/seed-assets`);
|
|
235
|
-
const assetFiles = await readdir(assetsPath);
|
|
236
|
-
const normalizedPaths = assetFiles.map((assetFile) => normalizePath(join(assetsPath, assetFile)));
|
|
237
|
-
const files = await fg(normalizedPaths, { absolute: true, onlyFiles: true });
|
|
238
234
|
try {
|
|
235
|
+
await axios.delete(`/api/apps/${app.id}/seed-assets`, { baseURL: remote });
|
|
236
|
+
const assetFiles = await readdir(assetsPath);
|
|
237
|
+
const normalizedPaths = assetFiles.map((assetFile) => normalizePath(join(assetsPath, assetFile)));
|
|
238
|
+
const files = await fg(normalizedPaths, { absolute: true, onlyFiles: true });
|
|
239
239
|
logger.info(`Publishing ${files.length} asset(s)`);
|
|
240
240
|
for (const assetFilePath of files) {
|
|
241
241
|
await publishAsset({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appsemble/cli",
|
|
3
|
-
"version": "0.27.
|
|
3
|
+
"version": "0.27.3",
|
|
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.3",
|
|
46
|
+
"@appsemble/types": "0.27.3",
|
|
47
|
+
"@appsemble/utils": "0.27.3",
|
|
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.3",
|
|
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.3
|
|
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.3
|
|
21
21
|
parameters:
|
|
22
22
|
icon: arrow-left
|
|
23
23
|
actions:
|