@jtl-software/create-cloud-app 0.0.3 → 0.0.5

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
@@ -5,7 +5,7 @@ Scaffold a [JTL Platform](https://www.jtl-software.com/) cloud app in seconds.
5
5
  ## Quick start
6
6
 
7
7
  ```bash
8
- npm create @jtl-software/cloud-app
8
+ npm create @jtl-software/cloud-app@latest
9
9
  ```
10
10
 
11
11
  The CLI prompts you for:
package/dist/index.js CHANGED
@@ -123,6 +123,14 @@ async function scaffold({
123
123
  backend.meta.type,
124
124
  appName
125
125
  );
126
+ const runtimeVersions = backend.meta.runtimeVersions ?? {};
127
+ if (Object.keys(runtimeVersions).length > 0) {
128
+ const toolVersions = Object.entries(runtimeVersions).map(([tool, version]) => `${tool} ${version}`).join("\n");
129
+ fs.writeFileSync(
130
+ path.join(targetDir, ".tool-versions"),
131
+ toolVersions + "\n"
132
+ );
133
+ }
126
134
  const rootPackageJson = {
127
135
  name: appName,
128
136
  version: "1.0.0",
@@ -211,7 +219,7 @@ async function main() {
211
219
  hint: t.meta.hint
212
220
  }))
213
221
  }),
214
- frontend: () => frontends.length === 1 ? Promise.resolve(frontends[0].packageName) : p.select({
222
+ frontend: () => p.select({
215
223
  message: "Frontend",
216
224
  options: frontends.map((t) => ({
217
225
  value: t.packageName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jtl-software/create-cloud-app",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "type": "module",
5
5
  "description": "CLI tool for scaffolding JTL Platform cloud apps",
6
6
  "bin": {
@@ -14,10 +14,10 @@
14
14
  "dev": "tsx src/index.ts"
15
15
  },
16
16
  "dependencies": {
17
- "@clack/prompts": "^0.10.0",
18
- "@jtl-software/cloud-app-template-frontend-react": "0.0.3",
19
- "@jtl-software/cloud-app-template-backend-node": "0.0.3",
20
- "@jtl-software/cloud-app-template-backend-dotnet": "0.0.3",
17
+ "@clack/prompts": "^1.2.0",
18
+ "@jtl-software/cloud-app-template-frontend-react": "0.0.5",
19
+ "@jtl-software/cloud-app-template-backend-node": "0.0.5",
20
+ "@jtl-software/cloud-app-template-backend-dotnet": "0.0.4",
21
21
  "@jtl-software/cloud-app-template-shared": "0.0.3",
22
22
  "picocolors": "^1.1.1"
23
23
  },
@@ -25,7 +25,7 @@
25
25
  "@types/node": "^22.14.0",
26
26
  "tsup": "^8.4.0",
27
27
  "tsx": "^4.19.3",
28
- "typescript": "^5.8.3"
28
+ "typescript": "^6.0.2"
29
29
  },
30
30
  "publishConfig": {
31
31
  "access": "public"