@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
- # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.27.1/config/assets/logo.svg) Appsemble CLI
1
+ # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.27.3/config/assets/logo.svg) Appsemble CLI
2
2
 
3
3
  > Manage apps and blocks from the command line.
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/@appsemble/cli)](https://www.npmjs.com/package/@appsemble/cli)
6
- [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.27.1/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.27.1)
6
+ [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.27.3/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.27.3)
7
7
  [![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](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.1/LICENSE.md) ©
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.1",
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.1",
46
- "@appsemble/types": "0.27.1",
47
- "@appsemble/utils": "0.27.1",
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.1",
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.1
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.1
20
+ version: 0.27.3
21
21
  parameters:
22
22
  icon: arrow-left
23
23
  actions:
@@ -2,7 +2,7 @@
2
2
  "private": true,
3
3
  "type": "module",
4
4
  "dependencies": {
5
- "@appsemble/sdk": "0.27.1",
5
+ "@appsemble/sdk": "0.27.3",
6
6
  "mini-jsx": "^4.0.0"
7
7
  }
8
8
  }
@@ -2,8 +2,8 @@
2
2
  "private": true,
3
3
  "type": "module",
4
4
  "dependencies": {
5
- "@appsemble/preact": "0.27.1",
6
- "@appsemble/sdk": "0.27.1",
5
+ "@appsemble/preact": "0.27.3",
6
+ "@appsemble/sdk": "0.27.3",
7
7
  "preact": "^10.0.0"
8
8
  }
9
9
  }
@@ -2,6 +2,6 @@
2
2
  "private": true,
3
3
  "type": "module",
4
4
  "dependencies": {
5
- "@appsemble/sdk": "0.27.1"
5
+ "@appsemble/sdk": "0.27.3"
6
6
  }
7
7
  }