vona-cli-set-api 1.0.257 → 1.0.261

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.
@@ -24,6 +24,7 @@ PROJECT_DISABLED_SUITES =
24
24
  # logger
25
25
 
26
26
  LOGGER_CLIENT_DEFAULT =
27
+ LOGGER_DUMMY =
27
28
 
28
29
  # build
29
30
 
@@ -0,0 +1,7 @@
1
+ # server
2
+
3
+ SERVER_LISTEN_DISABLE = true
4
+
5
+ # logger
6
+
7
+ LOGGER_DUMMY = true
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "scripts": {
26
26
  "init": "pnpm install --no-frozen-lockfile && npm run prerun && pnpm install --no-frozen-lockfile && pnpm dedupe",
27
- "demo": "vona :bin:demo --flavor=normal",
27
+ "demo": "vona :bin:demo --flavor=demo --dummy",
28
28
  "db:reset": "npm run prerun && vona :bin:dbReset --flavor=normal",
29
29
  "dev": "npm run prerun && vona :bin:dev --workers=2 --flavor=normal",
30
30
  "dev:one": "npm run prerun && vona :bin:dev --workers=1 --flavor=normal",
@@ -46,7 +46,7 @@
46
46
  }
47
47
  },
48
48
  "dependencies": {
49
- "vona": "^5.0.150"
49
+ "vona": "^5.0.152"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@cabloy/lint": "^5.0.16",
@@ -0,0 +1,32 @@
1
+ import type { VonaAppInfo, VonaConfigOptional } from 'vona';
2
+
3
+ export default function (_appInfo: VonaAppInfo) {
4
+ const config = {} as VonaConfigOptional;
5
+
6
+ // instances
7
+ config.instances = [
8
+ { name: '', password: '', title: '' },
9
+ ];
10
+
11
+ // redis
12
+ config.redis = {
13
+ clients: {},
14
+ };
15
+
16
+ // database
17
+ config.database = {
18
+ testDatabase: true,
19
+ base: {
20
+ pool: { min: 0, max: 1 },
21
+ },
22
+ clients: {},
23
+ };
24
+
25
+ // modules
26
+ config.modules = {};
27
+
28
+ // onions
29
+ config.onions = {};
30
+
31
+ return config;
32
+ }
@@ -15,7 +15,7 @@ export class CliBinDemo extends BeanCliBase {
15
15
  async _demo(projectPath) {
16
16
  const { argv } = this.context;
17
17
  const mode = argv.mode || 'dev';
18
- const flavor = argv.flavor || 'normal';
18
+ const flavor = argv.flavor || 'demo';
19
19
  const configMeta = { flavor, mode };
20
20
  if (!argv.retainRuntime || !fse.existsSync(path.join(projectPath, '.vona'))) {
21
21
  const configOptions = {
@@ -32,7 +32,7 @@ else {
32
32
  await demoRun(projectPath);
33
33
  async function demoRun(projectPath) {
34
34
  // create
35
- const app = await createGeneralApp(projectPath, { SERVER_LISTEN_DISABLE: 'true' });
35
+ const app = await createGeneralApp(projectPath);
36
36
  // demo
37
37
  const demoFile = path.join(projectPath, `src/backend/demo/${mainFile}`);
38
38
  if (!fse.existsSync(demoFile)) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-cli-set-api",
3
3
  "type": "module",
4
- "version": "1.0.257",
4
+ "version": "1.0.261",
5
5
  "description": "vona cli-set-api",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -31,11 +31,11 @@
31
31
  "@babel/plugin-proposal-decorators": "^7.25.9",
32
32
  "@babel/plugin-transform-class-properties": "^7.25.9",
33
33
  "@babel/plugin-transform-typescript": "^7.26.8",
34
- "@cabloy/cli": "^3.0.49",
34
+ "@cabloy/cli": "^3.0.51",
35
35
  "@cabloy/dotenv": "^1.1.10",
36
36
  "@cabloy/extend": "^3.1.10",
37
- "@cabloy/module-glob": "^5.2.26",
38
- "@cabloy/module-info": "^1.3.26",
37
+ "@cabloy/module-glob": "^5.2.28",
38
+ "@cabloy/module-info": "^1.3.28",
39
39
  "@cabloy/word-utils": "^2.0.1",
40
40
  "@lcov-viewer/cli": "^1.3.0",
41
41
  "@rollup/plugin-alias": "^5.1.1",
@@ -61,7 +61,7 @@
61
61
  "ts-node-maintained": "^10.9.6",
62
62
  "urllib": "^4.6.11",
63
63
  "uuid": "^11.1.0",
64
- "vona-core": "^5.0.67",
64
+ "vona-core": "^5.0.69",
65
65
  "why-is-node-running": "^3.2.2",
66
66
  "yargs-parser": "^21.1.1"
67
67
  },