create-qs 0.8.26 → 0.8.27
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/index.js +8 -2
- package/package.json +1 -1
- package/template/default/pnpm-workspace.yaml +6 -6
package/index.js
CHANGED
|
@@ -646,6 +646,12 @@ async function inputBoolean(options, initial) {
|
|
|
646
646
|
}
|
|
647
647
|
var { Input } = enquirer;
|
|
648
648
|
var TextPrompt = class extends Input {
|
|
649
|
+
async submit() {
|
|
650
|
+
if (this.options.cancelOnEmpty && String(this.value ?? "").trim() === "") {
|
|
651
|
+
return this.cancel();
|
|
652
|
+
}
|
|
653
|
+
return super.submit();
|
|
654
|
+
}
|
|
649
655
|
async close() {
|
|
650
656
|
try {
|
|
651
657
|
await super.close();
|
|
@@ -1970,7 +1976,7 @@ async function processFiles(options) {
|
|
|
1970
1976
|
variables.set("WEB_PACKAGE_NAME", options.webModulePackage);
|
|
1971
1977
|
variables.set("API_PACKAGE", options.apiPackage);
|
|
1972
1978
|
variables.set("API_ARTIFACT_ID", options.apiArtifactId);
|
|
1973
|
-
variables.set("QUICKSILVER_VERSION", "0.8.
|
|
1979
|
+
variables.set("QUICKSILVER_VERSION", "0.8.27");
|
|
1974
1980
|
variables.set("MODULE_ID", randomUUID());
|
|
1975
1981
|
variables.set("DB_PREFIX", toDbPrefix(options.name));
|
|
1976
1982
|
variables.set("JSONS_LOCALE", options.jsonsLocale);
|
|
@@ -2033,7 +2039,7 @@ if (process.argv.some((arg) => arg === "--version" || arg === "-v")) {
|
|
|
2033
2039
|
console.log(getCliVersion());
|
|
2034
2040
|
process.exit(0);
|
|
2035
2041
|
}
|
|
2036
|
-
var program = new Command().name("create-qs").description("Create a new Quicksilver application").version("0.8.
|
|
2042
|
+
var program = new Command().name("create-qs").description("Create a new Quicksilver application").version("0.8.27", "-v, --version").argument("[project-name]", "Name of the project").option("-c, --module-code <code>", "Full module code (e.g., power_crm.sales)").option("-d, --module-directory <directory>", "Module directory name (e.g., sales)").option("-n, --module-namespace <code>", "Prefix of unit/table, defaults to the initials of the module code (e.g., pcs)").option("-p, --api-package <package>", "JVM package for Kotlin files (e.g., com.company.crm)").option("-a, --api-artifact-id <artifactId>", "Module artifact ID in repository (e.g., power-crm-module-sales)").option("-w, --web-module-package <package>", "Web module package name (e.g., @powercrm/module-sales-web)").option("-m, --modules <codes>", "Modules to depend on, comma separated (e.g., quicksilver.org)").option("--module-menu <name>", "Create the module's top-level menu in the left nav, with this label").option("--no-module-menu", "Do not create a top-level menu").option("--jsons-locale <locale>", "Language of the display texts in data files: zh-CN or zh-TW. Changing it later means rewriting every data file").option("-y, --yes", "Skip prompts and use defaults").action(async (projectName, options) => {
|
|
2037
2043
|
applyPromptTexts();
|
|
2038
2044
|
console.log(chalk4.cyan(`
|
|
2039
2045
|
${t("banner")}`));
|
package/package.json
CHANGED
|
@@ -25,13 +25,13 @@ catalogs:
|
|
|
25
25
|
client:
|
|
26
26
|
"@qs-charts/adapter-preact": "0.2.11"
|
|
27
27
|
"@qs-charts/core": "0.2.11"
|
|
28
|
-
"@qs-elements/web": "1.0.
|
|
29
|
-
"@qs-elements/web-preact": "1.0.
|
|
28
|
+
"@qs-elements/web": "1.0.165"
|
|
29
|
+
"@qs-elements/web-preact": "1.0.165"
|
|
30
30
|
quicksilver:
|
|
31
|
-
"@qs-platform/cli": "0.8.
|
|
32
|
-
"@qs-platform/preset-vite-web": "0.8.
|
|
33
|
-
"@qs-platform/web-module-core": "0.8.
|
|
34
|
-
"@qs-platform/web-module-org": "0.8.
|
|
31
|
+
"@qs-platform/cli": "0.8.27"
|
|
32
|
+
"@qs-platform/preset-vite-web": "0.8.27"
|
|
33
|
+
"@qs-platform/web-module-core": "0.8.27"
|
|
34
|
+
"@qs-platform/web-module-org": "0.8.27"
|
|
35
35
|
tooling:
|
|
36
36
|
"@types/node": "^26.4.0"
|
|
37
37
|
"sass": "^1.103.1"
|