@appsemble/cli 0.40.1 → 0.40.3-test.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.40.1/config/assets/logo.svg) Appsemble CLI
1
+ # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.40.3-test.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.40.1/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.40.1)
6
+ [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.40.3-test.3/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.40.3-test.3)
7
7
  [![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](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.1/LICENSE.md) ©
345
+ [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.40.3-test.3/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)
@@ -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' | 'synchronizeTrainings'>(...members: T[]): Promise<Record<T, any>>;
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.1",
3
+ "version": "0.40.3-test.3",
4
4
  "description": "The CLI for developing with Appsemble apps and blocks",
5
5
  "keywords": [
6
6
  "app",
@@ -44,10 +44,10 @@
44
44
  "test": "vitest"
45
45
  },
46
46
  "dependencies": {
47
- "@appsemble/node-utils": "0.40.1",
48
- "@appsemble/types": "0.40.1",
49
- "@appsemble/lang-sdk": "0.40.1",
50
- "@appsemble/utils": "0.40.1",
47
+ "@appsemble/node-utils": "0.40.3-test.3",
48
+ "@appsemble/types": "0.40.3-test.3",
49
+ "@appsemble/lang-sdk": "0.40.3-test.3",
50
+ "@appsemble/utils": "0.40.3-test.3",
51
51
  "@fortawesome/fontawesome-common-types": "^6.0.0",
52
52
  "@inquirer/prompts": "^8.0.0",
53
53
  "@koa/cors": "^5.0.0",
@@ -90,8 +90,8 @@
90
90
  "yargs": "^17.0.0"
91
91
  },
92
92
  "devDependencies": {
93
- "@appsemble/types": "0.40.1",
94
- "@appsemble/server": "0.40.1",
93
+ "@appsemble/types": "0.40.3-test.3",
94
+ "@appsemble/server": "0.40.3-test.3",
95
95
  "@types/concat-stream": "2.0.3",
96
96
  "@types/koa__cors": "5.0.1",
97
97
  "@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.1
9
+ version: 0.40.3-test.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.40.1
20
+ version: 0.40.3-test.3
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.40.1",
8
+ "@appsemble/sdk": "0.40.3-test.3",
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.40.1",
9
- "@appsemble/sdk": "0.40.1",
8
+ "@appsemble/preact": "0.40.3-test.3",
9
+ "@appsemble/sdk": "0.40.3-test.3",
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.40.1"
8
+ "@appsemble/sdk": "0.40.3-test.3"
9
9
  }
10
10
  }
@@ -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