@appsemble/cli 0.32.2-test.7 → 0.32.3-test.0

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.32.2-test.7/config/assets/logo.svg) Appsemble CLI
1
+ # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.32.3-test.0/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.32.2-test.7/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.32.2-test.7)
6
+ [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.32.3-test.0/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.32.3-test.0)
7
7
  [![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://prettier.io)
8
8
 
9
9
  ## Table of Contents
@@ -323,5 +323,5 @@ appsemble run-cronjobs --interval 30
323
323
 
324
324
  ## License
325
325
 
326
- [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.32.2-test.7/LICENSE.md) ©
326
+ [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.32.3-test.0/LICENSE.md) ©
327
327
  [Appsemble](https://appsemble.com)
@@ -7,7 +7,7 @@ interface BuildBlockArguments extends BaseArguments {
7
7
  format: 'json' | 'yaml';
8
8
  }
9
9
  export declare const command = "extract-messages <paths...>";
10
- export declare const description = "Extract messages from a block.";
10
+ export declare const description = "Extract messages from an app.";
11
11
  export declare function builder(yargs: Argv): Argv<any>;
12
12
  export declare function handler({ format, languages, paths, verify, }: BuildBlockArguments): Promise<void>;
13
13
  export {};
@@ -3,7 +3,7 @@ import fg from 'fast-glob';
3
3
  import normalizePath from 'normalize-path';
4
4
  import { writeAppMessages } from '../../lib/app.js';
5
5
  export const command = 'extract-messages <paths...>';
6
- export const description = 'Extract messages from a block.';
6
+ export const description = 'Extract messages from an app.';
7
7
  export function builder(yargs) {
8
8
  return yargs
9
9
  .positional('paths', {
package/lib/app.js CHANGED
@@ -624,6 +624,8 @@ export async function writeAppMessages(path, languages, verify, format) {
624
624
  }
625
625
  return [key, ''];
626
626
  }));
627
+ const unusedMessages = Object.fromEntries(Object.entries(oldMessages.messageIds ?? {}).filter(([key, value]) => !Object.hasOwn(newMessageIds, key) && value !== ''));
628
+ Object.assign(newMessageIds, unusedMessages);
627
629
  const newAppMessages = Object.fromEntries(Object.keys(extractedMessages.app).map((key) => {
628
630
  if (has(oldMessages.app, key) && oldMessages.app[key]) {
629
631
  if (typeof oldMessages.app[key] !== 'string') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/cli",
3
- "version": "0.32.2-test.7",
3
+ "version": "0.32.3-test.0",
4
4
  "description": "The CLI for developing with Appsemble apps and blocks",
5
5
  "keywords": [
6
6
  "app",
@@ -44,9 +44,9 @@
44
44
  "test": "vitest"
45
45
  },
46
46
  "dependencies": {
47
- "@appsemble/node-utils": "0.32.2-test.7",
48
- "@appsemble/types": "0.32.2-test.7",
49
- "@appsemble/utils": "0.32.2-test.7",
47
+ "@appsemble/node-utils": "0.32.3-test.0",
48
+ "@appsemble/types": "0.32.3-test.0",
49
+ "@appsemble/utils": "0.32.3-test.0",
50
50
  "@fortawesome/fontawesome-common-types": "^6.0.0",
51
51
  "@koa/cors": "^5.0.0",
52
52
  "@odata/parser": "^0.2.0",
@@ -89,8 +89,8 @@
89
89
  "yargs": "^17.0.0"
90
90
  },
91
91
  "devDependencies": {
92
- "@appsemble/types": "0.32.2-test.7",
93
- "@appsemble/server": "0.32.2-test.7",
92
+ "@appsemble/types": "0.32.3-test.0",
93
+ "@appsemble/server": "0.32.3-test.0",
94
94
  "bcrypt": "5.1.1",
95
95
  "axios-test-instance": "7.0.0",
96
96
  "@types/concat-stream": "2.0.3",
@@ -6,7 +6,7 @@ pages:
6
6
  - name: Example Page A
7
7
  blocks:
8
8
  - type: action-button
9
- version: 0.32.2-test.7
9
+ version: 0.32.3-test.0
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.32.2-test.7
20
+ version: 0.32.3-test.0
21
21
  parameters:
22
22
  icon: arrow-left
23
23
  actions:
@@ -5,7 +5,7 @@
5
5
  "*.css"
6
6
  ],
7
7
  "dependencies": {
8
- "@appsemble/sdk": "0.32.2-test.7",
8
+ "@appsemble/sdk": "0.32.3-test.0",
9
9
  "mini-jsx": "^4.0.0"
10
10
  }
11
11
  }
@@ -5,8 +5,8 @@
5
5
  "*.css"
6
6
  ],
7
7
  "dependencies": {
8
- "@appsemble/preact": "0.32.2-test.7",
9
- "@appsemble/sdk": "0.32.2-test.7",
8
+ "@appsemble/preact": "0.32.3-test.0",
9
+ "@appsemble/sdk": "0.32.3-test.0",
10
10
  "preact": "^10.0.0"
11
11
  }
12
12
  }
@@ -5,6 +5,6 @@
5
5
  "*.css"
6
6
  ],
7
7
  "dependencies": {
8
- "@appsemble/sdk": "0.32.2-test.7"
8
+ "@appsemble/sdk": "0.32.3-test.0"
9
9
  }
10
10
  }