@tenkit/cli 0.1.0 → 0.1.1
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 +23 -2
- package/dist/index.mjs +3 -2
- package/package.json +8 -3
package/README.md
CHANGED
|
@@ -2,5 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
Public Tenkit CLI implementation package.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
Most users should run Tenkit through the package-manager create entrypoint:
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm create tenkit@latest
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
This package owns the real Public CLI implementation behind `create-tenkit`:
|
|
12
|
+
parsing, prompts, create-flow orchestration, Template generation, dependency
|
|
13
|
+
installation, git convenience policy, and final output.
|
|
14
|
+
|
|
15
|
+
Tenkit creates Expo and React Native projects for white-label apps,
|
|
16
|
+
multi-tenant products, App Variant builds, and Runtime Tenant experiences.
|
|
17
|
+
|
|
18
|
+
## Direct CLI
|
|
19
|
+
|
|
20
|
+
The package exposes a `tenkit` binary for direct usage:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
tenkit --help
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
For public project creation, prefer `pnpm create tenkit@latest` so the package
|
|
27
|
+
manager resolves the create entrypoint correctly.
|
package/dist/index.mjs
CHANGED
|
@@ -36,7 +36,7 @@ function resolveRealPath(path) {
|
|
|
36
36
|
}
|
|
37
37
|
//#endregion
|
|
38
38
|
//#region src/constants.ts
|
|
39
|
-
const CLI_VERSION = "0.1.
|
|
39
|
+
const CLI_VERSION = "0.1.1";
|
|
40
40
|
const DEFAULT_PROJECT_NAME = "tenkit-app";
|
|
41
41
|
const DEFAULT_PUBLIC_SETUP_SLUG = "white-label";
|
|
42
42
|
const PROMPT_CANCELLED = Symbol("prompt-cancelled");
|
|
@@ -246,7 +246,8 @@ async function readProjectName(options, env) {
|
|
|
246
246
|
if (!env.isInteractive) throw new Error("Missing --name. Pass --name or use --yes to accept the default.");
|
|
247
247
|
const answer = await env.prompts.text({
|
|
248
248
|
message: "Project name",
|
|
249
|
-
|
|
249
|
+
placeholder: DEFAULT_PROJECT_NAME,
|
|
250
|
+
defaultValue: DEFAULT_PROJECT_NAME,
|
|
250
251
|
validate(value) {
|
|
251
252
|
try {
|
|
252
253
|
validateProjectName(value ?? "");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tenkit/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Public Tenkit CLI implementation package.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/brilliantinsane/tenkit#readme",
|
|
@@ -13,11 +13,16 @@
|
|
|
13
13
|
"directory": "packages/cli"
|
|
14
14
|
},
|
|
15
15
|
"keywords": [
|
|
16
|
+
"app-variants",
|
|
16
17
|
"cli",
|
|
17
18
|
"expo",
|
|
19
|
+
"expo-cli",
|
|
20
|
+
"multi-tenant",
|
|
18
21
|
"react-native",
|
|
22
|
+
"runtime-tenants",
|
|
19
23
|
"tenkit",
|
|
20
|
-
"typescript"
|
|
24
|
+
"typescript",
|
|
25
|
+
"white-label"
|
|
21
26
|
],
|
|
22
27
|
"type": "module",
|
|
23
28
|
"bin": {
|
|
@@ -36,7 +41,7 @@
|
|
|
36
41
|
"commander": "^15.0.0",
|
|
37
42
|
"fs-extra": "^11.3.5",
|
|
38
43
|
"pathe": "^2.0.3",
|
|
39
|
-
"@tenkit/template-generator": "0.1.
|
|
44
|
+
"@tenkit/template-generator": "0.1.1"
|
|
40
45
|
},
|
|
41
46
|
"devDependencies": {
|
|
42
47
|
"@types/fs-extra": "^11.0.4",
|