vona-cli-set-api 1.1.100 → 1.1.102
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/cli/templates/tools/crudBasic/snippets/2-meta.index.ts +1 -1
- package/cli/templates/tools/crudBasic/snippets/2-meta.version.ts +0 -1
- package/cli/templates/tools/crudBasic/snippets/3-en-us.ts +1 -1
- package/cli/templates/tools/crudStart/snippets/2-meta.index.ts +1 -1
- package/cli/templates/tools/crudStart/snippets/2-meta.version.ts +0 -1
- package/cli/templates/tools/crudStart/snippets/3-en-us.ts +1 -1
- package/dist/index.js +38 -241
- package/dist/lib/beans.d.ts +0 -2
- package/dist/lib/commands.d.ts +0 -44
- package/dist-cli/templates/tools/crudBasic/snippets/2-meta.index.js +1 -1
- package/dist-cli/templates/tools/crudBasic/snippets/2-meta.version.js +0 -1
- package/dist-cli/templates/tools/crudBasic/snippets/3-en-us.js +1 -1
- package/dist-cli/templates/tools/crudStart/snippets/2-meta.index.js +1 -1
- package/dist-cli/templates/tools/crudStart/snippets/2-meta.version.js +0 -1
- package/dist-cli/templates/tools/crudStart/snippets/3-en-us.js +1 -1
- package/package.json +3 -3
- package/dist/lib/bean/cli.create.project.d.ts +0 -26
- package/dist/lib/command/create.project.d.ts +0 -45
|
@@ -18,7 +18,7 @@ export default metadataCustomSnippet({
|
|
|
18
18
|
init: async ({ cli, argv, targetFile }) => {
|
|
19
19
|
await catchError(() => {
|
|
20
20
|
return cli.helper.invokeCli(
|
|
21
|
-
[':create:bean', 'meta', 'index', `--module=${argv.module}`, '--nometadata'
|
|
21
|
+
[':create:bean', 'meta', 'index', `--module=${argv.module}`, '--nometadata'],
|
|
22
22
|
{
|
|
23
23
|
cwd: argv.projectPath,
|
|
24
24
|
},
|
|
@@ -18,7 +18,7 @@ export default metadataCustomSnippet({
|
|
|
18
18
|
language: 'plain',
|
|
19
19
|
init: async ({ cli, argv, targetFile }) => {
|
|
20
20
|
await catchError(() => {
|
|
21
|
-
return cli.helper.invokeCli([':init:locale', argv.module, '--nometadata'
|
|
21
|
+
return cli.helper.invokeCli([':init:locale', argv.module, '--nometadata'], {
|
|
22
22
|
cwd: argv.projectPath,
|
|
23
23
|
});
|
|
24
24
|
});
|
|
@@ -18,7 +18,7 @@ export default metadataCustomSnippet({
|
|
|
18
18
|
init: async ({ cli, argv, targetFile }) => {
|
|
19
19
|
await catchError(() => {
|
|
20
20
|
return cli.helper.invokeCli(
|
|
21
|
-
[':create:bean', 'meta', 'index', `--module=${argv.module}`, '--nometadata'
|
|
21
|
+
[':create:bean', 'meta', 'index', `--module=${argv.module}`, '--nometadata'],
|
|
22
22
|
{
|
|
23
23
|
cwd: argv.projectPath,
|
|
24
24
|
},
|
|
@@ -18,7 +18,7 @@ export default metadataCustomSnippet({
|
|
|
18
18
|
language: 'plain',
|
|
19
19
|
init: async ({ cli, argv, targetFile }) => {
|
|
20
20
|
await catchError(() => {
|
|
21
|
-
return cli.helper.invokeCli([':init:locale', argv.module, '--nometadata'
|
|
21
|
+
return cli.helper.invokeCli([':init:locale', argv.module, '--nometadata'], {
|
|
22
22
|
cwd: argv.projectPath,
|
|
23
23
|
});
|
|
24
24
|
});
|
package/dist/index.js
CHANGED
|
@@ -25,10 +25,6 @@ import { catchError, combineApiPathControllerAndActionRaw, replaceTemplate } fro
|
|
|
25
25
|
import { getOnionScenesMeta, getOnionMetasMeta, relativeNameToCapitalize } from '@cabloy/module-info';
|
|
26
26
|
import { toUpperCaseFirstChar, stringToCapitalize, replaceTemplate as replaceTemplate$1 } from '@cabloy/word-utils';
|
|
27
27
|
import fs from 'node:fs';
|
|
28
|
-
import compressing from 'compressing';
|
|
29
|
-
import randomize from 'randomatic';
|
|
30
|
-
import urllib from 'urllib';
|
|
31
|
-
import * as uuid from 'uuid';
|
|
32
28
|
import { beanFullNameFromOnionName } from 'vona-core';
|
|
33
29
|
|
|
34
30
|
function getEnvMeta(configMeta) {
|
|
@@ -920,7 +916,16 @@ class CliBinTest extends BeanCliBase {
|
|
|
920
916
|
argv
|
|
921
917
|
} = this.context;
|
|
922
918
|
// globs
|
|
923
|
-
|
|
919
|
+
let patterns;
|
|
920
|
+
if (argv._.length > 0) {
|
|
921
|
+
patterns = argv._.map(item => {
|
|
922
|
+
if (item.startsWith('src/')) return item;
|
|
923
|
+
if (item.startsWith('vona/src/')) return item.substring('vona/'.length);
|
|
924
|
+
return `src/**/test/**/${item}`;
|
|
925
|
+
});
|
|
926
|
+
} else {
|
|
927
|
+
patterns = this._combineTestPatterns(projectPath, modulesMeta);
|
|
928
|
+
}
|
|
924
929
|
// testFile
|
|
925
930
|
let testFile = path.join(import.meta.dirname, '../../../toolsIsolate/test.ts');
|
|
926
931
|
if (!fse.existsSync(testFile)) {
|
|
@@ -1043,8 +1048,6 @@ class CliCreateBean extends BeanCliBase {
|
|
|
1043
1048
|
} = this.context;
|
|
1044
1049
|
// super
|
|
1045
1050
|
await super.execute();
|
|
1046
|
-
// noformat
|
|
1047
|
-
// argv.noformat = true;
|
|
1048
1051
|
// ssrSiteModuleName
|
|
1049
1052
|
argv.ssrSiteModuleName = fs.existsSync(path.join(argv.projectPath, 'src/suite/cabloy-start')) ? 'vona-module-start-siteadmin' : 'vona-module-basic-siteadmin';
|
|
1050
1053
|
argv.ssrSiteOnionName = fs.existsSync(path.join(argv.projectPath, 'src/suite/cabloy-start')) ? 'start-siteadmin:admin' : 'basic-siteadmin:admin';
|
|
@@ -1148,8 +1151,6 @@ class CliCreateModule extends BeanCliBase {
|
|
|
1148
1151
|
} = this.context;
|
|
1149
1152
|
// super
|
|
1150
1153
|
await super.execute();
|
|
1151
|
-
// noformat
|
|
1152
|
-
// argv.noformat = true;
|
|
1153
1154
|
// suite name/info
|
|
1154
1155
|
const suiteName = argv.suite;
|
|
1155
1156
|
if (suiteName) {
|
|
@@ -1214,128 +1215,6 @@ class CliCreateModule extends BeanCliBase {
|
|
|
1214
1215
|
}
|
|
1215
1216
|
}
|
|
1216
1217
|
|
|
1217
|
-
class CliCreateProject extends BeanCliBase {
|
|
1218
|
-
constructor(options) {
|
|
1219
|
-
super(options);
|
|
1220
|
-
this.httpClient = void 0;
|
|
1221
|
-
this.httpClient = urllib;
|
|
1222
|
-
}
|
|
1223
|
-
async execute() {
|
|
1224
|
-
const {
|
|
1225
|
-
argv
|
|
1226
|
-
} = this.context;
|
|
1227
|
-
// super
|
|
1228
|
-
await super.execute();
|
|
1229
|
-
// noformat
|
|
1230
|
-
// argv.noformat = true;
|
|
1231
|
-
// project name
|
|
1232
|
-
const projectName = argv.name;
|
|
1233
|
-
// target dir
|
|
1234
|
-
const targetDir = path.join(argv.projectPath, projectName);
|
|
1235
|
-
if (!argv.force && fs.existsSync(targetDir)) {
|
|
1236
|
-
throw new Error(`project exists: ${projectName}`);
|
|
1237
|
-
}
|
|
1238
|
-
fse.ensureDirSync(targetDir);
|
|
1239
|
-
// vars
|
|
1240
|
-
argv.SERVER_KEYS = `vona_${uuid.v4()}_${Date.now()}_${random(100, 10000)}`;
|
|
1241
|
-
argv.SERVER_KEYS_PROD = `vona_${uuid.v4()}_${Date.now()}_${random(100, 10000)}`;
|
|
1242
|
-
argv.DATABASE_CLIENT_MYSQL_USER = 'web_user';
|
|
1243
|
-
argv.DATABASE_CLIENT_MYSQL_PASSWORD = randomize('*', 16, {
|
|
1244
|
-
exclude: '\\\'"$'
|
|
1245
|
-
});
|
|
1246
|
-
argv.DATABASE_CLIENT_MYSQL_PASSWORD_ROOT = randomize('*', 16, {
|
|
1247
|
-
exclude: '\\\'"$'
|
|
1248
|
-
});
|
|
1249
|
-
argv.DATABASE_CLIENT_PG_USER = 'postgres';
|
|
1250
|
-
argv.DATABASE_CLIENT_PG_PASSWORD = randomize('*', 16, {
|
|
1251
|
-
exclude: '\\\'"$'
|
|
1252
|
-
});
|
|
1253
|
-
argv.DATABASE_CLIENT_PG_PASSWORD_ROOT = randomize('*', 16, {
|
|
1254
|
-
exclude: '\\\'"$'
|
|
1255
|
-
});
|
|
1256
|
-
// template
|
|
1257
|
-
const template = argv.template;
|
|
1258
|
-
// render project boilerplate
|
|
1259
|
-
await this.template.renderBoilerplateAndSnippets({
|
|
1260
|
-
targetDir,
|
|
1261
|
-
setName: __ThisSetName__,
|
|
1262
|
-
snippetsPath: null,
|
|
1263
|
-
boilerplatePath: `create/project/${template}/boilerplate`
|
|
1264
|
-
});
|
|
1265
|
-
// create docker-compose/data/pg
|
|
1266
|
-
fse.ensureDirSync(path.join(targetDir, 'docker-compose/data/pg'));
|
|
1267
|
-
// copy package.json
|
|
1268
|
-
fse.copyFileSync(path.join(targetDir, 'package.original.json'), path.join(targetDir, 'package.json'));
|
|
1269
|
-
// npm run init
|
|
1270
|
-
await this.helper.spawnCmd({
|
|
1271
|
-
cmd: 'npm',
|
|
1272
|
-
args: ['run', 'init'],
|
|
1273
|
-
options: {
|
|
1274
|
-
cwd: targetDir
|
|
1275
|
-
}
|
|
1276
|
-
});
|
|
1277
|
-
// done
|
|
1278
|
-
await this.printUsage(targetDir);
|
|
1279
|
-
}
|
|
1280
|
-
async printUsage(targetDir) {
|
|
1281
|
-
await this.console.log(`usage:
|
|
1282
|
-
- cd ${targetDir}
|
|
1283
|
-
- pnpm install
|
|
1284
|
-
- npm run dev
|
|
1285
|
-
- npm run test
|
|
1286
|
-
- npm run build
|
|
1287
|
-
- npm run start
|
|
1288
|
-
`);
|
|
1289
|
-
}
|
|
1290
|
-
async downloadBoilerplate(packageName) {
|
|
1291
|
-
const result = await this.getPackageInfo(packageName, false);
|
|
1292
|
-
const tgzUrl = result.dist.tarball;
|
|
1293
|
-
await this.console.log(`downloading ${tgzUrl}`);
|
|
1294
|
-
const saveDir = path.join(os.tmpdir(), 'zova-project-boilerplate');
|
|
1295
|
-
await rimraf(saveDir);
|
|
1296
|
-
const response = await this.curl(tgzUrl, {
|
|
1297
|
-
streaming: true,
|
|
1298
|
-
followRedirect: true
|
|
1299
|
-
});
|
|
1300
|
-
await compressing.tgz.uncompress(response.res, saveDir);
|
|
1301
|
-
await this.console.log(`extract to ${saveDir}`);
|
|
1302
|
-
return path.join(saveDir, '/package');
|
|
1303
|
-
}
|
|
1304
|
-
async getPackageInfo(packageName, withFallback) {
|
|
1305
|
-
await this.console.log(`fetching npm info of ${packageName}`);
|
|
1306
|
-
try {
|
|
1307
|
-
const registry = await this.helper.getRegistry();
|
|
1308
|
-
const result = await this.curl(`${registry}${packageName}/latest`, {
|
|
1309
|
-
dataType: 'json',
|
|
1310
|
-
followRedirect: true,
|
|
1311
|
-
maxRedirects: 5
|
|
1312
|
-
});
|
|
1313
|
-
if (result.status !== 200) {
|
|
1314
|
-
const message = `npm info ${packageName} got error: ${result.status}, ${result.data.reason}`;
|
|
1315
|
-
throw new Error(message);
|
|
1316
|
-
}
|
|
1317
|
-
return result.data;
|
|
1318
|
-
} catch (err) {
|
|
1319
|
-
if (withFallback) {
|
|
1320
|
-
await this.console.log(`use fallback from ${packageName}`);
|
|
1321
|
-
const require = createRequire(import.meta.url);
|
|
1322
|
-
return require(`${packageName}/package.json`);
|
|
1323
|
-
}
|
|
1324
|
-
throw err;
|
|
1325
|
-
}
|
|
1326
|
-
}
|
|
1327
|
-
async curl(url, options) {
|
|
1328
|
-
options = options || {};
|
|
1329
|
-
if (!options.timeout) {
|
|
1330
|
-
options.timeout = 30000;
|
|
1331
|
-
}
|
|
1332
|
-
return await this.httpClient.request(url, options);
|
|
1333
|
-
}
|
|
1334
|
-
}
|
|
1335
|
-
function random(start, end) {
|
|
1336
|
-
return Math.floor(Math.random() * (end - start) + start);
|
|
1337
|
-
}
|
|
1338
|
-
|
|
1339
1218
|
class CliCreateSuite extends BeanCliBase {
|
|
1340
1219
|
async execute() {
|
|
1341
1220
|
const {
|
|
@@ -1343,8 +1222,6 @@ class CliCreateSuite extends BeanCliBase {
|
|
|
1343
1222
|
} = this.context;
|
|
1344
1223
|
// super
|
|
1345
1224
|
await super.execute();
|
|
1346
|
-
// noformat
|
|
1347
|
-
// argv.noformat = true;
|
|
1348
1225
|
// nameMeta
|
|
1349
1226
|
const nameMeta = this.helper.parseNameMeta(argv.name);
|
|
1350
1227
|
const suiteDir = nameMeta.directory || 'suite';
|
|
@@ -1377,8 +1254,6 @@ class CliCreateTest extends BeanCliBase {
|
|
|
1377
1254
|
} = this.context;
|
|
1378
1255
|
// super
|
|
1379
1256
|
await super.execute();
|
|
1380
|
-
// noformat
|
|
1381
|
-
// argv.noformat = true;
|
|
1382
1257
|
// module name/info
|
|
1383
1258
|
const moduleName = argv.module;
|
|
1384
1259
|
argv.moduleInfo = this.helper.parseModuleInfo(moduleName);
|
|
@@ -1523,8 +1398,6 @@ class CliInitAppMonkey extends BeanCliBase {
|
|
|
1523
1398
|
} = this.context;
|
|
1524
1399
|
// super
|
|
1525
1400
|
await super.execute();
|
|
1526
|
-
// noformat
|
|
1527
|
-
// argv.noformat = true;
|
|
1528
1401
|
// target dir
|
|
1529
1402
|
const targetDir = path.join(argv.projectPath, 'src/backend/config');
|
|
1530
1403
|
const monkeyFile = path.join(targetDir, 'monkey.ts');
|
|
@@ -1548,8 +1421,6 @@ class CliInitAsset extends BeanCliBase {
|
|
|
1548
1421
|
} = this.context;
|
|
1549
1422
|
// super
|
|
1550
1423
|
await super.execute();
|
|
1551
|
-
// noformat
|
|
1552
|
-
// argv.noformat = true;
|
|
1553
1424
|
// module name/info
|
|
1554
1425
|
const moduleName = argv.module;
|
|
1555
1426
|
argv.moduleInfo = this.helper.parseModuleInfo(moduleName);
|
|
@@ -1578,8 +1449,6 @@ class CliInitConfig extends BeanCliBase {
|
|
|
1578
1449
|
} = this.context;
|
|
1579
1450
|
// super
|
|
1580
1451
|
await super.execute();
|
|
1581
|
-
// noformat
|
|
1582
|
-
// argv.noformat = true;
|
|
1583
1452
|
// module name/info
|
|
1584
1453
|
const moduleName = argv._[0];
|
|
1585
1454
|
if (!moduleName) return;
|
|
@@ -1618,8 +1487,6 @@ class CliInitConstant extends BeanCliBase {
|
|
|
1618
1487
|
} = this.context;
|
|
1619
1488
|
// super
|
|
1620
1489
|
await super.execute();
|
|
1621
|
-
// noformat
|
|
1622
|
-
// argv.noformat = true;
|
|
1623
1490
|
// module name/info
|
|
1624
1491
|
const moduleName = argv._[0];
|
|
1625
1492
|
if (!moduleName) return;
|
|
@@ -1658,8 +1525,6 @@ class CliInitError extends BeanCliBase {
|
|
|
1658
1525
|
} = this.context;
|
|
1659
1526
|
// super
|
|
1660
1527
|
await super.execute();
|
|
1661
|
-
// noformat
|
|
1662
|
-
// argv.noformat = true;
|
|
1663
1528
|
// module name/info
|
|
1664
1529
|
const moduleName = argv._[0];
|
|
1665
1530
|
if (!moduleName) return;
|
|
@@ -1709,8 +1574,6 @@ class CliInitLib extends BeanCliBase {
|
|
|
1709
1574
|
} = this.context;
|
|
1710
1575
|
// super
|
|
1711
1576
|
await super.execute();
|
|
1712
|
-
// noformat
|
|
1713
|
-
// argv.noformat = true;
|
|
1714
1577
|
// module name/info
|
|
1715
1578
|
const moduleName = argv._[0];
|
|
1716
1579
|
if (!moduleName) return;
|
|
@@ -1749,8 +1612,6 @@ class CliInitLocale extends BeanCliBase {
|
|
|
1749
1612
|
} = this.context;
|
|
1750
1613
|
// super
|
|
1751
1614
|
await super.execute();
|
|
1752
|
-
// noformat
|
|
1753
|
-
// argv.noformat = true;
|
|
1754
1615
|
// module name/info
|
|
1755
1616
|
const moduleName = argv._[0];
|
|
1756
1617
|
if (!moduleName) return;
|
|
@@ -1789,8 +1650,6 @@ class CliInitMain extends BeanCliBase {
|
|
|
1789
1650
|
} = this.context;
|
|
1790
1651
|
// super
|
|
1791
1652
|
await super.execute();
|
|
1792
|
-
// noformat
|
|
1793
|
-
// argv.noformat = true;
|
|
1794
1653
|
// module name/info
|
|
1795
1654
|
const moduleName = argv._[0];
|
|
1796
1655
|
if (!moduleName) return;
|
|
@@ -1829,8 +1688,6 @@ class CliInitMonkey extends BeanCliBase {
|
|
|
1829
1688
|
} = this.context;
|
|
1830
1689
|
// super
|
|
1831
1690
|
await super.execute();
|
|
1832
|
-
// noformat
|
|
1833
|
-
// argv.noformat = true;
|
|
1834
1691
|
// module name/info
|
|
1835
1692
|
const moduleName = argv._[0];
|
|
1836
1693
|
if (!moduleName) return;
|
|
@@ -1893,8 +1750,6 @@ class CliInitStatic extends BeanCliBase {
|
|
|
1893
1750
|
} = this.context;
|
|
1894
1751
|
// super
|
|
1895
1752
|
await super.execute();
|
|
1896
|
-
// noformat
|
|
1897
|
-
// argv.noformat = true;
|
|
1898
1753
|
// module name/info
|
|
1899
1754
|
const moduleName = argv._[0];
|
|
1900
1755
|
if (!moduleName) return;
|
|
@@ -1931,8 +1786,6 @@ class CliInitTypes extends BeanCliBase {
|
|
|
1931
1786
|
} = this.context;
|
|
1932
1787
|
// super
|
|
1933
1788
|
await super.execute();
|
|
1934
|
-
// noformat
|
|
1935
|
-
// argv.noformat = true;
|
|
1936
1789
|
// module name/info
|
|
1937
1790
|
const moduleName = argv._[0];
|
|
1938
1791
|
if (!moduleName) return;
|
|
@@ -1971,8 +1824,6 @@ class CliToolsCrud extends BeanCliBase {
|
|
|
1971
1824
|
} = this.context;
|
|
1972
1825
|
// super
|
|
1973
1826
|
await super.execute();
|
|
1974
|
-
// noformat
|
|
1975
|
-
// argv.noformat = true;
|
|
1976
1827
|
// ssrSiteModuleName
|
|
1977
1828
|
const isCabloyStart = fs.existsSync(path.join(argv.projectPath, '__CABLOY_START__'));
|
|
1978
1829
|
argv.ssrSiteModuleName = isCabloyStart ? 'vona-module-start-siteadmin' : 'vona-module-basic-siteadmin';
|
|
@@ -2024,8 +1875,6 @@ class CliToolsCrudBasic extends BeanCliBase {
|
|
|
2024
1875
|
} = this.context;
|
|
2025
1876
|
// super
|
|
2026
1877
|
await super.execute();
|
|
2027
|
-
// noformat
|
|
2028
|
-
// argv.noformat = true;
|
|
2029
1878
|
// module name/info
|
|
2030
1879
|
const moduleName = argv.module;
|
|
2031
1880
|
argv.moduleInfo = this.helper.parseModuleInfo(moduleName);
|
|
@@ -2070,8 +1919,6 @@ class CliToolsCrudStart extends BeanCliBase {
|
|
|
2070
1919
|
} = this.context;
|
|
2071
1920
|
// super
|
|
2072
1921
|
await super.execute();
|
|
2073
|
-
// noformat
|
|
2074
|
-
// argv.noformat = true;
|
|
2075
1922
|
// module name/info
|
|
2076
1923
|
const moduleName = argv.module;
|
|
2077
1924
|
argv.moduleInfo = this.helper.parseModuleInfo(moduleName);
|
|
@@ -2907,7 +2754,6 @@ const beans = {
|
|
|
2907
2754
|
'create.suite': CliCreateSuite,
|
|
2908
2755
|
'create.bean': CliCreateBean,
|
|
2909
2756
|
'create.module': CliCreateModule,
|
|
2910
|
-
'create.project': CliCreateProject,
|
|
2911
2757
|
'create.test': CliCreateTest,
|
|
2912
2758
|
'init.config': CliInitConfig,
|
|
2913
2759
|
'init.constant': CliInitConstant,
|
|
@@ -2932,7 +2778,7 @@ var binBuild = {
|
|
|
2932
2778
|
info: {
|
|
2933
2779
|
version: '5.0.0',
|
|
2934
2780
|
title: 'Cli: Tools: Bin',
|
|
2935
|
-
usage: 'vona :bin:build [--workers=] [--flavor=] [--sourcemap=]'
|
|
2781
|
+
usage: 'npm run vona :bin:build -- [--workers=] [--flavor=] [--sourcemap=]'
|
|
2936
2782
|
},
|
|
2937
2783
|
options: {
|
|
2938
2784
|
workers: {
|
|
@@ -2951,7 +2797,7 @@ var binBuildGeneral = {
|
|
|
2951
2797
|
info: {
|
|
2952
2798
|
version: '5.0.0',
|
|
2953
2799
|
title: 'Cli: Tools: Bin',
|
|
2954
|
-
usage: 'vona :bin:buildGeneral [--minify] [--sourcemap]'
|
|
2800
|
+
usage: 'npm run vona :bin:buildGeneral -- [--minify] [--sourcemap]'
|
|
2955
2801
|
},
|
|
2956
2802
|
options: {
|
|
2957
2803
|
minify: {
|
|
@@ -2970,7 +2816,7 @@ var binBuildModule = {
|
|
|
2970
2816
|
info: {
|
|
2971
2817
|
version: '5.0.0',
|
|
2972
2818
|
title: 'Cli: Tools: Bin',
|
|
2973
|
-
usage: 'vona :bin:buildModule [--minify] [--sourcemap]'
|
|
2819
|
+
usage: 'npm run vona :bin:buildModule -- [--minify] [--sourcemap]'
|
|
2974
2820
|
},
|
|
2975
2821
|
options: {
|
|
2976
2822
|
minify: {
|
|
@@ -2989,7 +2835,7 @@ var binDbReset = {
|
|
|
2989
2835
|
info: {
|
|
2990
2836
|
version: '5.0.0',
|
|
2991
2837
|
title: 'Cli: Bin: DbReset',
|
|
2992
|
-
usage: 'vona :bin:dbReset [--flavor=]'
|
|
2838
|
+
usage: 'npm run vona :bin:dbReset -- [--flavor=]'
|
|
2993
2839
|
},
|
|
2994
2840
|
options: {
|
|
2995
2841
|
flavor: {
|
|
@@ -3004,7 +2850,7 @@ var binDev = {
|
|
|
3004
2850
|
info: {
|
|
3005
2851
|
version: '5.0.0',
|
|
3006
2852
|
title: 'Cli: Bin: Dev',
|
|
3007
|
-
usage: 'vona :bin:dev [--workers=] [--flavor=]'
|
|
2853
|
+
usage: 'npm run vona :bin:dev -- [--workers=] [--flavor=]'
|
|
3008
2854
|
},
|
|
3009
2855
|
options: {
|
|
3010
2856
|
workers: {
|
|
@@ -3023,7 +2869,7 @@ var binPlay = {
|
|
|
3023
2869
|
info: {
|
|
3024
2870
|
version: '5.0.0',
|
|
3025
2871
|
title: 'Cli: Bin: Play',
|
|
3026
|
-
usage: 'vona :bin:play [index.ts] [--flavor=] [--retainRuntime=] [--attach]'
|
|
2872
|
+
usage: 'npm run vona :bin:play [index.ts] -- [--flavor=] [--retainRuntime=] [--attach]'
|
|
3027
2873
|
},
|
|
3028
2874
|
options: {
|
|
3029
2875
|
mode: {
|
|
@@ -3051,7 +2897,7 @@ var binTest = {
|
|
|
3051
2897
|
info: {
|
|
3052
2898
|
version: '5.0.0',
|
|
3053
2899
|
title: 'Cli: Bin: Test',
|
|
3054
|
-
usage: 'vona :bin:test [--coverage=] [--flavor=]'
|
|
2900
|
+
usage: 'npm run vona :bin:test -- [--coverage=] [--flavor=]'
|
|
3055
2901
|
},
|
|
3056
2902
|
options: {
|
|
3057
2903
|
coverage: {
|
|
@@ -3070,7 +2916,7 @@ var binTsc = {
|
|
|
3070
2916
|
info: {
|
|
3071
2917
|
version: '5.0.0',
|
|
3072
2918
|
title: 'Cli: Bin: Tsc',
|
|
3073
|
-
usage: 'vona :bin:tsc [--force]'
|
|
2919
|
+
usage: 'npm run vona :bin:tsc -- [--force]'
|
|
3074
2920
|
},
|
|
3075
2921
|
options: {
|
|
3076
2922
|
force: {
|
|
@@ -3085,7 +2931,7 @@ var createBean = {
|
|
|
3085
2931
|
info: {
|
|
3086
2932
|
version: '5.0.0',
|
|
3087
2933
|
title: 'Cli: Create Bean',
|
|
3088
|
-
usage: 'vona :create:bean sceneName beanName [--module=] [--boilerplate=]'
|
|
2934
|
+
usage: 'npm run vona :create:bean sceneName beanName -- [--module=] [--boilerplate=]'
|
|
3089
2935
|
},
|
|
3090
2936
|
options: {
|
|
3091
2937
|
module: {
|
|
@@ -3132,7 +2978,7 @@ var createModule = {
|
|
|
3132
2978
|
info: {
|
|
3133
2979
|
version: '5.0.0',
|
|
3134
2980
|
title: 'Cli: Create Module',
|
|
3135
|
-
usage: 'vona :create:module moduleName [--suite=] [--force]'
|
|
2981
|
+
usage: 'npm run vona :create:module moduleName -- [--suite=] [--force]'
|
|
3136
2982
|
},
|
|
3137
2983
|
options: {
|
|
3138
2984
|
suite: {
|
|
@@ -3164,60 +3010,12 @@ var createModule = {
|
|
|
3164
3010
|
}
|
|
3165
3011
|
};
|
|
3166
3012
|
|
|
3167
|
-
var createProject = {
|
|
3168
|
-
bean: 'create.project',
|
|
3169
|
-
info: {
|
|
3170
|
-
version: '5.0.0',
|
|
3171
|
-
title: 'Cli: Create Project',
|
|
3172
|
-
usage: 'vona :create:project projectName [--template=] [--force]'
|
|
3173
|
-
},
|
|
3174
|
-
options: {
|
|
3175
|
-
template: {
|
|
3176
|
-
description: 'template',
|
|
3177
|
-
type: 'string'
|
|
3178
|
-
},
|
|
3179
|
-
force: {
|
|
3180
|
-
description: 'force',
|
|
3181
|
-
type: 'boolean'
|
|
3182
|
-
}
|
|
3183
|
-
},
|
|
3184
|
-
groups: {
|
|
3185
|
-
default: {
|
|
3186
|
-
questions: {
|
|
3187
|
-
template: {
|
|
3188
|
-
type: 'select',
|
|
3189
|
-
message: 'Specify the project template',
|
|
3190
|
-
choices: [{
|
|
3191
|
-
name: 'cabloy-basic',
|
|
3192
|
-
message: 'Cabloy Basic'
|
|
3193
|
-
}, {
|
|
3194
|
-
name: 'cabloy-start',
|
|
3195
|
-
message: 'Cabloy Start'
|
|
3196
|
-
}]
|
|
3197
|
-
}
|
|
3198
|
-
}
|
|
3199
|
-
},
|
|
3200
|
-
moduleInfo: {
|
|
3201
|
-
questions: {
|
|
3202
|
-
name: {
|
|
3203
|
-
type: 'input',
|
|
3204
|
-
message: 'project name',
|
|
3205
|
-
initial: {
|
|
3206
|
-
expression: 'arg0'
|
|
3207
|
-
},
|
|
3208
|
-
required: true
|
|
3209
|
-
}
|
|
3210
|
-
}
|
|
3211
|
-
}
|
|
3212
|
-
}
|
|
3213
|
-
};
|
|
3214
|
-
|
|
3215
3013
|
var createSuite = {
|
|
3216
3014
|
bean: 'create.suite',
|
|
3217
3015
|
info: {
|
|
3218
3016
|
version: '5.0.0',
|
|
3219
3017
|
title: 'Cli: Create Suite',
|
|
3220
|
-
usage: 'vona :create:suite suiteName'
|
|
3018
|
+
usage: 'npm run vona :create:suite suiteName'
|
|
3221
3019
|
},
|
|
3222
3020
|
options: {},
|
|
3223
3021
|
groups: {
|
|
@@ -3241,7 +3039,7 @@ var createTest = {
|
|
|
3241
3039
|
info: {
|
|
3242
3040
|
version: '5.0.0',
|
|
3243
3041
|
title: 'Cli: Create Test',
|
|
3244
|
-
usage: 'vona :create:test name [--module=]'
|
|
3042
|
+
usage: 'npm run vona :create:test name -- [--module=]'
|
|
3245
3043
|
},
|
|
3246
3044
|
options: {
|
|
3247
3045
|
module: {
|
|
@@ -3294,7 +3092,7 @@ var initAppMonkey = {
|
|
|
3294
3092
|
info: {
|
|
3295
3093
|
version: '5.0.0',
|
|
3296
3094
|
title: 'Cli: Init: App Monkey',
|
|
3297
|
-
usage: 'vona :init:appMonkey'
|
|
3095
|
+
usage: 'npm run vona :init:appMonkey'
|
|
3298
3096
|
}
|
|
3299
3097
|
// options: null,
|
|
3300
3098
|
// groups: null,
|
|
@@ -3305,7 +3103,7 @@ var initAsset = {
|
|
|
3305
3103
|
info: {
|
|
3306
3104
|
version: '5.0.0',
|
|
3307
3105
|
title: 'Cli: Init: Asset Resources',
|
|
3308
|
-
usage: 'vona :init:asset scene [--module=]'
|
|
3106
|
+
usage: 'npm run vona :init:asset scene -- [--module=]'
|
|
3309
3107
|
},
|
|
3310
3108
|
options: {
|
|
3311
3109
|
module: {
|
|
@@ -3339,7 +3137,7 @@ var initConfig = {
|
|
|
3339
3137
|
info: {
|
|
3340
3138
|
version: '5.0.0',
|
|
3341
3139
|
title: 'Cli: Init: Config',
|
|
3342
|
-
usage: 'vona :init:config module'
|
|
3140
|
+
usage: 'npm run vona :init:config module'
|
|
3343
3141
|
}
|
|
3344
3142
|
// options: null,
|
|
3345
3143
|
// groups: null,
|
|
@@ -3350,7 +3148,7 @@ var initConstant = {
|
|
|
3350
3148
|
info: {
|
|
3351
3149
|
version: '5.0.0',
|
|
3352
3150
|
title: 'Cli: Init: Constant',
|
|
3353
|
-
usage: 'vona :init:constant module'
|
|
3151
|
+
usage: 'npm run vona :init:constant module'
|
|
3354
3152
|
}
|
|
3355
3153
|
// options: null,
|
|
3356
3154
|
// groups: null,
|
|
@@ -3361,7 +3159,7 @@ var initError = {
|
|
|
3361
3159
|
info: {
|
|
3362
3160
|
version: '5.0.0',
|
|
3363
3161
|
title: 'Cli: Init: Error',
|
|
3364
|
-
usage: 'vona :init:error module'
|
|
3162
|
+
usage: 'npm run vona :init:error module'
|
|
3365
3163
|
}
|
|
3366
3164
|
// options: null,
|
|
3367
3165
|
// groups: null,
|
|
@@ -3372,7 +3170,7 @@ var initLib = {
|
|
|
3372
3170
|
info: {
|
|
3373
3171
|
version: '5.0.0',
|
|
3374
3172
|
title: 'Cli: Init: Lib',
|
|
3375
|
-
usage: 'vona :init:lib module'
|
|
3173
|
+
usage: 'npm run vona :init:lib module'
|
|
3376
3174
|
}
|
|
3377
3175
|
// options: null,
|
|
3378
3176
|
// groups: null,
|
|
@@ -3383,7 +3181,7 @@ var initLocale = {
|
|
|
3383
3181
|
info: {
|
|
3384
3182
|
version: '5.0.0',
|
|
3385
3183
|
title: 'Cli: Init: Locale',
|
|
3386
|
-
usage: 'vona :init:locale module'
|
|
3184
|
+
usage: 'npm run vona :init:locale module'
|
|
3387
3185
|
}
|
|
3388
3186
|
// options: null,
|
|
3389
3187
|
// groups: null,
|
|
@@ -3394,7 +3192,7 @@ var initMain = {
|
|
|
3394
3192
|
info: {
|
|
3395
3193
|
version: '5.0.0',
|
|
3396
3194
|
title: 'Cli: Init: Main',
|
|
3397
|
-
usage: 'vona :init:main module'
|
|
3195
|
+
usage: 'npm run vona :init:main module'
|
|
3398
3196
|
}
|
|
3399
3197
|
// options: null,
|
|
3400
3198
|
// groups: null,
|
|
@@ -3405,7 +3203,7 @@ var initMonkey = {
|
|
|
3405
3203
|
info: {
|
|
3406
3204
|
version: '5.0.0',
|
|
3407
3205
|
title: 'Cli: Init: Monkey',
|
|
3408
|
-
usage: 'vona :init:monkey module'
|
|
3206
|
+
usage: 'npm run vona :init:monkey module'
|
|
3409
3207
|
}
|
|
3410
3208
|
// options: null,
|
|
3411
3209
|
// groups: null,
|
|
@@ -3416,7 +3214,7 @@ var initStatic = {
|
|
|
3416
3214
|
info: {
|
|
3417
3215
|
version: '5.0.0',
|
|
3418
3216
|
title: 'Cli: Init: Static Resources',
|
|
3419
|
-
usage: 'vona :init:static module'
|
|
3217
|
+
usage: 'npm run vona :init:static module'
|
|
3420
3218
|
}
|
|
3421
3219
|
// options: null,
|
|
3422
3220
|
// groups: null,
|
|
@@ -3427,7 +3225,7 @@ var initTypes = {
|
|
|
3427
3225
|
info: {
|
|
3428
3226
|
version: '5.0.0',
|
|
3429
3227
|
title: 'Cli: Init: Types',
|
|
3430
|
-
usage: 'vona :init:types module'
|
|
3228
|
+
usage: 'npm run vona :init:types module'
|
|
3431
3229
|
}
|
|
3432
3230
|
// options: null,
|
|
3433
3231
|
// groups: null,
|
|
@@ -3438,7 +3236,7 @@ var toolsCrud = {
|
|
|
3438
3236
|
info: {
|
|
3439
3237
|
version: '5.0.0',
|
|
3440
3238
|
title: 'Cli: Tools: Crud',
|
|
3441
|
-
usage: 'vona :tools:crud resourceName [--module=]'
|
|
3239
|
+
usage: 'npm run vona :tools:crud resourceName -- [--module=]'
|
|
3442
3240
|
},
|
|
3443
3241
|
options: {
|
|
3444
3242
|
module: {
|
|
@@ -3472,7 +3270,7 @@ var toolsCrudBasic = {
|
|
|
3472
3270
|
info: {
|
|
3473
3271
|
version: '5.0.0',
|
|
3474
3272
|
title: 'Cli: Tools: Crud Basic',
|
|
3475
|
-
usage: 'vona :tools:crudBasic resourceName [--module=]'
|
|
3273
|
+
usage: 'npm run vona :tools:crudBasic resourceName -- [--module=]'
|
|
3476
3274
|
},
|
|
3477
3275
|
options: {
|
|
3478
3276
|
module: {
|
|
@@ -3506,7 +3304,7 @@ var toolsCrudStart = {
|
|
|
3506
3304
|
info: {
|
|
3507
3305
|
version: '5.0.0',
|
|
3508
3306
|
title: 'Cli: Tools: Crud Start',
|
|
3509
|
-
usage: 'vona :tools:crudStart resourceName [--module=]'
|
|
3307
|
+
usage: 'npm run vona :tools:crudStart resourceName -- [--module=]'
|
|
3510
3308
|
},
|
|
3511
3309
|
options: {
|
|
3512
3310
|
module: {
|
|
@@ -3540,7 +3338,7 @@ var toolsDeps = {
|
|
|
3540
3338
|
info: {
|
|
3541
3339
|
version: '5.0.0',
|
|
3542
3340
|
title: 'Cli: Tools: Deps',
|
|
3543
|
-
usage: 'vona :tools:deps'
|
|
3341
|
+
usage: 'npm run vona :tools:deps'
|
|
3544
3342
|
},
|
|
3545
3343
|
options: {}
|
|
3546
3344
|
};
|
|
@@ -3550,7 +3348,7 @@ var toolsMetadata = {
|
|
|
3550
3348
|
info: {
|
|
3551
3349
|
version: '5.0.0',
|
|
3552
3350
|
title: 'Cli: Tools: Metadata',
|
|
3553
|
-
usage: 'vona :tools:metadata module1 [module2] [--force]'
|
|
3351
|
+
usage: 'npm run vona :tools:metadata module1 [module2] -- [--force]'
|
|
3554
3352
|
},
|
|
3555
3353
|
options: {
|
|
3556
3354
|
force: {
|
|
@@ -3577,7 +3375,6 @@ const commands = {
|
|
|
3577
3375
|
create: {
|
|
3578
3376
|
suite: createSuite,
|
|
3579
3377
|
module: createModule,
|
|
3580
|
-
project: createProject,
|
|
3581
3378
|
bean: createBean,
|
|
3582
3379
|
test: createTest
|
|
3583
3380
|
},
|
package/dist/lib/beans.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ import { CliBinTest } from './bean/cli.bin.test.ts';
|
|
|
8
8
|
import { CliBinTsc } from './bean/cli.bin.tsc.ts';
|
|
9
9
|
import { CliCreateBean } from './bean/cli.create.bean.ts';
|
|
10
10
|
import { CliCreateModule } from './bean/cli.create.module.ts';
|
|
11
|
-
import { CliCreateProject } from './bean/cli.create.project.ts';
|
|
12
11
|
import { CliCreateSuite } from './bean/cli.create.suite.ts';
|
|
13
12
|
import { CliCreateTest } from './bean/cli.create.test.ts';
|
|
14
13
|
import { CliDefaultList } from './bean/cli.default.list.ts';
|
|
@@ -41,7 +40,6 @@ export declare const beans: {
|
|
|
41
40
|
'create.suite': typeof CliCreateSuite;
|
|
42
41
|
'create.bean': typeof CliCreateBean;
|
|
43
42
|
'create.module': typeof CliCreateModule;
|
|
44
|
-
'create.project': typeof CliCreateProject;
|
|
45
43
|
'create.test': typeof CliCreateTest;
|
|
46
44
|
'init.config': typeof CliInitConfig;
|
|
47
45
|
'init.constant': typeof CliInitConstant;
|
package/dist/lib/commands.d.ts
CHANGED
|
@@ -226,50 +226,6 @@ export declare const commands: {
|
|
|
226
226
|
};
|
|
227
227
|
};
|
|
228
228
|
};
|
|
229
|
-
project: {
|
|
230
|
-
bean: string;
|
|
231
|
-
info: {
|
|
232
|
-
version: string;
|
|
233
|
-
title: string;
|
|
234
|
-
usage: string;
|
|
235
|
-
};
|
|
236
|
-
options: {
|
|
237
|
-
template: {
|
|
238
|
-
description: string;
|
|
239
|
-
type: string;
|
|
240
|
-
};
|
|
241
|
-
force: {
|
|
242
|
-
description: string;
|
|
243
|
-
type: string;
|
|
244
|
-
};
|
|
245
|
-
};
|
|
246
|
-
groups: {
|
|
247
|
-
default: {
|
|
248
|
-
questions: {
|
|
249
|
-
template: {
|
|
250
|
-
type: string;
|
|
251
|
-
message: string;
|
|
252
|
-
choices: {
|
|
253
|
-
name: string;
|
|
254
|
-
message: string;
|
|
255
|
-
}[];
|
|
256
|
-
};
|
|
257
|
-
};
|
|
258
|
-
};
|
|
259
|
-
moduleInfo: {
|
|
260
|
-
questions: {
|
|
261
|
-
name: {
|
|
262
|
-
type: string;
|
|
263
|
-
message: string;
|
|
264
|
-
initial: {
|
|
265
|
-
expression: string;
|
|
266
|
-
};
|
|
267
|
-
required: boolean;
|
|
268
|
-
};
|
|
269
|
-
};
|
|
270
|
-
};
|
|
271
|
-
};
|
|
272
|
-
};
|
|
273
229
|
bean: {
|
|
274
230
|
bean: string;
|
|
275
231
|
info: {
|
|
@@ -9,7 +9,7 @@ export default metadataCustomSnippet({
|
|
|
9
9
|
format: true,
|
|
10
10
|
init: async ({ cli, argv, targetFile }) => {
|
|
11
11
|
await catchError(() => {
|
|
12
|
-
return cli.helper.invokeCli([':create:bean', 'meta', 'index', `--module=${argv.module}`, '--nometadata'
|
|
12
|
+
return cli.helper.invokeCli([':create:bean', 'meta', 'index', `--module=${argv.module}`, '--nometadata'], {
|
|
13
13
|
cwd: argv.projectPath,
|
|
14
14
|
});
|
|
15
15
|
});
|
|
@@ -8,7 +8,7 @@ export default metadataCustomSnippet({
|
|
|
8
8
|
language: 'plain',
|
|
9
9
|
init: async ({ cli, argv, targetFile }) => {
|
|
10
10
|
await catchError(() => {
|
|
11
|
-
return cli.helper.invokeCli([':init:locale', argv.module, '--nometadata'
|
|
11
|
+
return cli.helper.invokeCli([':init:locale', argv.module, '--nometadata'], {
|
|
12
12
|
cwd: argv.projectPath,
|
|
13
13
|
});
|
|
14
14
|
});
|
|
@@ -9,7 +9,7 @@ export default metadataCustomSnippet({
|
|
|
9
9
|
format: true,
|
|
10
10
|
init: async ({ cli, argv, targetFile }) => {
|
|
11
11
|
await catchError(() => {
|
|
12
|
-
return cli.helper.invokeCli([':create:bean', 'meta', 'index', `--module=${argv.module}`, '--nometadata'
|
|
12
|
+
return cli.helper.invokeCli([':create:bean', 'meta', 'index', `--module=${argv.module}`, '--nometadata'], {
|
|
13
13
|
cwd: argv.projectPath,
|
|
14
14
|
});
|
|
15
15
|
});
|
|
@@ -8,7 +8,7 @@ export default metadataCustomSnippet({
|
|
|
8
8
|
language: 'plain',
|
|
9
9
|
init: async ({ cli, argv, targetFile }) => {
|
|
10
10
|
await catchError(() => {
|
|
11
|
-
return cli.helper.invokeCli([':init:locale', argv.module, '--nometadata'
|
|
11
|
+
return cli.helper.invokeCli([':init:locale', argv.module, '--nometadata'], {
|
|
12
12
|
cwd: argv.projectPath,
|
|
13
13
|
});
|
|
14
14
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vona-cli-set-api",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "1.1.102",
|
|
4
|
+
"gitHead": "4b0a319ce45d4154ed050a046185ddaa7667da87",
|
|
5
5
|
"description": "vona cli-set-api",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"framework",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@babel/plugin-proposal-decorators": "^7.29.0",
|
|
42
42
|
"@babel/plugin-transform-class-properties": "^7.28.6",
|
|
43
43
|
"@babel/plugin-transform-typescript": "^7.28.6",
|
|
44
|
-
"@cabloy/cli": "^3.1.
|
|
44
|
+
"@cabloy/cli": "^3.1.14",
|
|
45
45
|
"@cabloy/dotenv": "^1.2.5",
|
|
46
46
|
"@cabloy/extend": "^3.2.5",
|
|
47
47
|
"@cabloy/module-glob": "^5.3.10",
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { CmdOptions } from '@cabloy/cli';
|
|
2
|
-
import { BeanCliBase } from '@cabloy/cli';
|
|
3
|
-
import urllib from 'urllib';
|
|
4
|
-
declare module '@cabloy/cli' {
|
|
5
|
-
interface ICommandArgv {
|
|
6
|
-
force: boolean;
|
|
7
|
-
template: string;
|
|
8
|
-
SERVER_KEYS: string;
|
|
9
|
-
SERVER_KEYS_PROD: string;
|
|
10
|
-
DATABASE_CLIENT_MYSQL_USER: string;
|
|
11
|
-
DATABASE_CLIENT_MYSQL_PASSWORD: string;
|
|
12
|
-
DATABASE_CLIENT_MYSQL_PASSWORD_ROOT: string;
|
|
13
|
-
DATABASE_CLIENT_PG_USER: string;
|
|
14
|
-
DATABASE_CLIENT_PG_PASSWORD: string;
|
|
15
|
-
DATABASE_CLIENT_PG_PASSWORD_ROOT: string;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
export declare class CliCreateProject extends BeanCliBase {
|
|
19
|
-
httpClient: typeof urllib;
|
|
20
|
-
constructor(options: CmdOptions);
|
|
21
|
-
execute(): Promise<void>;
|
|
22
|
-
printUsage(targetDir: string): Promise<void>;
|
|
23
|
-
downloadBoilerplate(packageName: string): Promise<string>;
|
|
24
|
-
getPackageInfo(packageName: string, withFallback: boolean): Promise<any>;
|
|
25
|
-
curl(url: string, options: any): Promise<import("urllib").HttpClientResponse<any>>;
|
|
26
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
bean: string;
|
|
3
|
-
info: {
|
|
4
|
-
version: string;
|
|
5
|
-
title: string;
|
|
6
|
-
usage: string;
|
|
7
|
-
};
|
|
8
|
-
options: {
|
|
9
|
-
template: {
|
|
10
|
-
description: string;
|
|
11
|
-
type: string;
|
|
12
|
-
};
|
|
13
|
-
force: {
|
|
14
|
-
description: string;
|
|
15
|
-
type: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
groups: {
|
|
19
|
-
default: {
|
|
20
|
-
questions: {
|
|
21
|
-
template: {
|
|
22
|
-
type: string;
|
|
23
|
-
message: string;
|
|
24
|
-
choices: {
|
|
25
|
-
name: string;
|
|
26
|
-
message: string;
|
|
27
|
-
}[];
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
moduleInfo: {
|
|
32
|
-
questions: {
|
|
33
|
-
name: {
|
|
34
|
-
type: string;
|
|
35
|
-
message: string;
|
|
36
|
-
initial: {
|
|
37
|
-
expression: string;
|
|
38
|
-
};
|
|
39
|
-
required: boolean;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
export default _default;
|