@appsemble/cli 0.32.2-test.6 → 0.32.2
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/extract-messages.d.ts +1 -1
- package/commands/app/extract-messages.js +1 -1
- package/lib/app.js +2 -0
- package/package.json +18 -18
- 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.32.2)
|
|
7
7
|
[](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
|
|
326
|
+
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.32.2/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
|
|
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
|
|
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
|
|
3
|
+
"version": "0.32.2",
|
|
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
|
|
48
|
-
"@appsemble/types": "0.32.2
|
|
49
|
-
"@appsemble/utils": "0.32.2
|
|
47
|
+
"@appsemble/node-utils": "0.32.2",
|
|
48
|
+
"@appsemble/types": "0.32.2",
|
|
49
|
+
"@appsemble/utils": "0.32.2",
|
|
50
50
|
"@fortawesome/fontawesome-common-types": "^6.0.0",
|
|
51
51
|
"@koa/cors": "^5.0.0",
|
|
52
52
|
"@odata/parser": "^0.2.0",
|
|
@@ -89,20 +89,20 @@
|
|
|
89
89
|
"yargs": "^17.0.0"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
|
-
"@appsemble/types": "0.32.2
|
|
93
|
-
"@appsemble/server": "0.32.2
|
|
94
|
-
"bcrypt": "
|
|
95
|
-
"axios-test-instance": "
|
|
96
|
-
"@types/concat-stream": "
|
|
97
|
-
"@types/inquirer": "
|
|
98
|
-
"@types/koa__cors": "
|
|
99
|
-
"@types/normalize-path": "
|
|
100
|
-
"@types/postcss-import": "
|
|
101
|
-
"@types/postcss-url": "
|
|
102
|
-
"concat-stream": "
|
|
103
|
-
"vitest": "
|
|
104
|
-
"sequelize": "
|
|
105
|
-
"minio": "
|
|
92
|
+
"@appsemble/types": "0.32.2",
|
|
93
|
+
"@appsemble/server": "0.32.2",
|
|
94
|
+
"bcrypt": "5.1.1",
|
|
95
|
+
"axios-test-instance": "7.0.0",
|
|
96
|
+
"@types/concat-stream": "2.0.3",
|
|
97
|
+
"@types/inquirer": "9.0.7",
|
|
98
|
+
"@types/koa__cors": "5.0.0",
|
|
99
|
+
"@types/normalize-path": "3.0.2",
|
|
100
|
+
"@types/postcss-import": "14.0.3",
|
|
101
|
+
"@types/postcss-url": "10.0.4",
|
|
102
|
+
"concat-stream": "2.0.0",
|
|
103
|
+
"vitest": "2.1.9",
|
|
104
|
+
"sequelize": "6.37.7",
|
|
105
|
+
"minio": "8.0.5"
|
|
106
106
|
},
|
|
107
107
|
"optionalDependencies": {
|
|
108
108
|
"keytar": "^7.0.0"
|
|
@@ -6,7 +6,7 @@ pages:
|
|
|
6
6
|
- name: Example Page A
|
|
7
7
|
blocks:
|
|
8
8
|
- type: action-button
|
|
9
|
-
version: 0.32.2
|
|
9
|
+
version: 0.32.2
|
|
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
|
|
20
|
+
version: 0.32.2
|
|
21
21
|
parameters:
|
|
22
22
|
icon: arrow-left
|
|
23
23
|
actions:
|