@kosdev-code/kos-codegen-core 0.1.0-next.796 → 0.1.0-next.798
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 +2 -0
- package/index.js.map +1 -1
- package/index.mjs +2 -0
- package/index.mjs.map +1 -1
- package/lib/generators/generate-polyglot-workspace.d.ts +9 -0
- package/lib/generators/generate-polyglot-workspace.d.ts.map +1 -1
- package/package.json +2 -2
- package/templates/polyglot-workspace/build/build-ui.sh.template +7 -0
- package/templates/polyglot-workspace/build/docker-build.sh.template +8 -2
- package/templates/polyglot-workspace/build/release_version_prebuild.sh.template +9 -6
- package/templates/polyglot-workspace/github/build-release.json.template +2 -2
- package/templates/polyglot-workspace/github/build-ui.json.template +2 -2
- package/templates/polyglot-workspace/root/README.md.template +14 -12
package/index.js
CHANGED
|
@@ -545,9 +545,11 @@ const BUILD_SCRIPTS = [
|
|
|
545
545
|
"build/docker-build.sh"
|
|
546
546
|
];
|
|
547
547
|
function generatePolyglotWorkspace(codegenFs, templateDir, options) {
|
|
548
|
+
const hasUi = (options.type ?? "polyglot") !== "java";
|
|
548
549
|
const normalized = normalizeAllValues({ name: options.name });
|
|
549
550
|
const vars = {
|
|
550
551
|
...normalized,
|
|
552
|
+
hasUi,
|
|
551
553
|
keyset: options.keyset || "prod.kos",
|
|
552
554
|
appUiName: `${normalized.nameDashCase}-ui`,
|
|
553
555
|
nodeVersion: options.nodeVersion || process.version.replace(/^v/, ""),
|