@appsemble/cli 0.40.2 → 0.40.3-test.4
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/start.js +0 -3
- package/index.js +0 -2
- package/lib/serverImport.d.ts +1 -1
- package/package.json +7 -8
- 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/commands/synchronizeTrainings.d.ts +0 -6
- package/commands/synchronizeTrainings.js +0 -40
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.40.3-test.4)
|
|
7
7
|
[](https://prettier.io)
|
|
8
8
|
|
|
9
9
|
## Table of Contents
|
|
@@ -342,5 +342,5 @@ appsemble run-cronjobs --interval 30
|
|
|
342
342
|
|
|
343
343
|
## License
|
|
344
344
|
|
|
345
|
-
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.40.
|
|
345
|
+
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.40.3-test.4/LICENSE.md) ©
|
|
346
346
|
[Appsemble](https://appsemble.com)
|
package/commands/start.js
CHANGED
|
@@ -36,9 +36,6 @@ export function builder(yargs) {
|
|
|
36
36
|
.option('database-url', {
|
|
37
37
|
desc: 'A connection string for the database to connect to. This is an alternative to the separate database related variables.',
|
|
38
38
|
conflicts: ['database-host', 'database-name', 'database-user', 'database-password'],
|
|
39
|
-
})
|
|
40
|
-
.option('migrate-to', {
|
|
41
|
-
desc: "To which version to migrate the database. This should be either a semver or 'next'",
|
|
42
39
|
})
|
|
43
40
|
.option('smtp-host', {
|
|
44
41
|
desc: 'The host of the SMTP server to connect to.',
|
package/index.js
CHANGED
|
@@ -29,7 +29,6 @@ import * as runCronJobs from './commands/runCronJobs.js';
|
|
|
29
29
|
import * as scaleContainers from './commands/scaleContainers.js';
|
|
30
30
|
import * as serve from './commands/serve.js';
|
|
31
31
|
import * as start from './commands/start.js';
|
|
32
|
-
import * as synchronizeTrainings from './commands/synchronizeTrainings.js';
|
|
33
32
|
import { coerceRemote } from './lib/coercers.js';
|
|
34
33
|
import { initAxios } from './lib/initAxios.js';
|
|
35
34
|
import { validateServerVersion } from './lib/validateServerVersion.js';
|
|
@@ -80,7 +79,6 @@ let parser = yargs(process.argv.slice(2))
|
|
|
80
79
|
.command(resource)
|
|
81
80
|
.command(runCronJobs)
|
|
82
81
|
.command(start)
|
|
83
|
-
.command(synchronizeTrainings)
|
|
84
82
|
.command(serve)
|
|
85
83
|
.command(scaleContainers)
|
|
86
84
|
.command(chargeOrganizationSubscriptions)
|
package/lib/serverImport.d.ts
CHANGED
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
* @param members The names of the exported member to import.
|
|
5
5
|
* @returns The exported member.
|
|
6
6
|
*/
|
|
7
|
-
export declare function serverImport<T extends 'backupProductionData' | 'chargeOrganizationSubscriptions' | 'checkDownMigrations' | 'checkMigrations' | 'cleanupDemoAppMembers' | 'cleanupExpiredDomains' | 'cleanupResourcesAndAssets' | 'cleanupSoftDeletedRecords' | 'fuzzMigrations' | 'migrate' | 'migrateAppDefinitions' | 'reencryptSecrets' | 'restoreDataFromBackup' | 'runCronJobs' | 'scaleContainers' | 'setArgv' | 'start'
|
|
7
|
+
export declare function serverImport<T extends 'backupProductionData' | 'chargeOrganizationSubscriptions' | 'checkDownMigrations' | 'checkMigrations' | 'cleanupDemoAppMembers' | 'cleanupExpiredDomains' | 'cleanupResourcesAndAssets' | 'cleanupSoftDeletedRecords' | 'fuzzMigrations' | 'migrate' | 'migrateAppDefinitions' | 'reencryptSecrets' | 'restoreDataFromBackup' | 'runCronJobs' | 'scaleContainers' | 'setArgv' | 'start'>(...members: T[]): Promise<Record<T, any>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appsemble/cli",
|
|
3
|
-
"version": "0.40.
|
|
3
|
+
"version": "0.40.3-test.4",
|
|
4
4
|
"description": "The CLI for developing with Appsemble apps and blocks",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"app",
|
|
@@ -23,7 +23,6 @@
|
|
|
23
23
|
"type": "module",
|
|
24
24
|
"exports": {
|
|
25
25
|
".": {
|
|
26
|
-
"ts-source": "./index.ts",
|
|
27
26
|
"default": "./index.js"
|
|
28
27
|
},
|
|
29
28
|
"./README.md": "./README.md"
|
|
@@ -44,10 +43,10 @@
|
|
|
44
43
|
"test": "vitest"
|
|
45
44
|
},
|
|
46
45
|
"dependencies": {
|
|
47
|
-
"@appsemble/node-utils": "0.40.
|
|
48
|
-
"@appsemble/types": "0.40.
|
|
49
|
-
"@appsemble/lang-sdk": "0.40.
|
|
50
|
-
"@appsemble/utils": "0.40.
|
|
46
|
+
"@appsemble/node-utils": "0.40.3-test.4",
|
|
47
|
+
"@appsemble/types": "0.40.3-test.4",
|
|
48
|
+
"@appsemble/lang-sdk": "0.40.3-test.4",
|
|
49
|
+
"@appsemble/utils": "0.40.3-test.4",
|
|
51
50
|
"@fortawesome/fontawesome-common-types": "^6.0.0",
|
|
52
51
|
"@inquirer/prompts": "^8.0.0",
|
|
53
52
|
"@koa/cors": "^5.0.0",
|
|
@@ -90,8 +89,8 @@
|
|
|
90
89
|
"yargs": "^17.0.0"
|
|
91
90
|
},
|
|
92
91
|
"devDependencies": {
|
|
93
|
-
"@appsemble/types": "0.40.
|
|
94
|
-
"@appsemble/server": "0.40.
|
|
92
|
+
"@appsemble/types": "0.40.3-test.4",
|
|
93
|
+
"@appsemble/server": "0.40.3-test.4",
|
|
95
94
|
"@types/concat-stream": "2.0.3",
|
|
96
95
|
"@types/koa__cors": "5.0.1",
|
|
97
96
|
"@types/koa-compress": "4.0.7",
|
|
@@ -6,7 +6,7 @@ pages:
|
|
|
6
6
|
- name: Example Page A
|
|
7
7
|
blocks:
|
|
8
8
|
- type: action-button
|
|
9
|
-
version: 0.40.
|
|
9
|
+
version: 0.40.3-test.4
|
|
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.40.
|
|
20
|
+
version: 0.40.3-test.4
|
|
21
21
|
parameters:
|
|
22
22
|
icon: arrow-left
|
|
23
23
|
actions:
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type Argv } from 'yargs';
|
|
2
|
-
import { type ServeArguments } from './serve.js';
|
|
3
|
-
export declare const command = "synchronize-trainings";
|
|
4
|
-
export declare const description = "Checks the training folder for training documents and makes sure they are synchronized with the database";
|
|
5
|
-
export declare function builder(yargs: Argv): Argv<any>;
|
|
6
|
-
export declare function handler(argv: ServeArguments): Promise<void>;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { serverImport } from '../lib/serverImport.js';
|
|
2
|
-
export const command = 'synchronize-trainings';
|
|
3
|
-
export const description = 'Checks the training folder for training documents and makes sure they are synchronized with the database';
|
|
4
|
-
export function builder(yargs) {
|
|
5
|
-
return yargs
|
|
6
|
-
.option('database-host', {
|
|
7
|
-
desc: 'The host of the database to connect to. This defaults to the connected database container.',
|
|
8
|
-
})
|
|
9
|
-
.option('database-port', {
|
|
10
|
-
desc: 'The port of the database to connect to.',
|
|
11
|
-
type: 'number',
|
|
12
|
-
default: 5432,
|
|
13
|
-
})
|
|
14
|
-
.option('database-ssl', {
|
|
15
|
-
desc: 'Use SSL to connect to the database.',
|
|
16
|
-
type: 'boolean',
|
|
17
|
-
})
|
|
18
|
-
.option('database-name', {
|
|
19
|
-
desc: 'The name of the database to connect to.',
|
|
20
|
-
implies: ['database-user', 'database-password'],
|
|
21
|
-
})
|
|
22
|
-
.option('database-user', {
|
|
23
|
-
desc: 'The user to use to login to the database.',
|
|
24
|
-
implies: ['database-name', 'database-password'],
|
|
25
|
-
})
|
|
26
|
-
.option('database-password', {
|
|
27
|
-
desc: 'The password to use to login to the database.',
|
|
28
|
-
implies: ['database-name', 'database-user'],
|
|
29
|
-
})
|
|
30
|
-
.option('database-url', {
|
|
31
|
-
desc: 'A connection string for the database to connect to. This is an alternative to the separate database related variables.',
|
|
32
|
-
conflicts: ['database-host', 'database-name', 'database-user', 'database-password'],
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
export async function handler(argv) {
|
|
36
|
-
const { setArgv, synchronizeTrainings } = await serverImport('setArgv', 'synchronizeTrainings');
|
|
37
|
-
setArgv(argv);
|
|
38
|
-
return synchronizeTrainings();
|
|
39
|
-
}
|
|
40
|
-
//# sourceMappingURL=synchronizeTrainings.js.map
|