create-mobile-app 0.0.0-stage → 1.0.0
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/LICENSE +21 -0
- package/README.md +490 -2
- package/assets/adaptive-icon.png +0 -0
- package/assets/favicon.png +0 -0
- package/assets/icon.png +0 -0
- package/assets/splash.png +0 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.js +2119 -0
- package/dist/index.d.ts +70 -0
- package/dist/index.js +2119 -0
- package/package.json +64 -4
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
type PackageManager = 'npm' | 'yarn' | 'pnpm' | 'bun';
|
|
2
|
+
type PlatformType = 'expo' | 'cli';
|
|
3
|
+
type SetupMode = 'complete' | 'custom' | 'minimal';
|
|
4
|
+
interface CliFlags {
|
|
5
|
+
yes?: boolean;
|
|
6
|
+
platform?: PlatformType;
|
|
7
|
+
responsive?: boolean;
|
|
8
|
+
theme?: boolean;
|
|
9
|
+
components?: boolean;
|
|
10
|
+
navigation?: boolean;
|
|
11
|
+
tabs?: boolean;
|
|
12
|
+
drawer?: boolean;
|
|
13
|
+
api?: boolean;
|
|
14
|
+
query?: boolean;
|
|
15
|
+
service?: boolean;
|
|
16
|
+
auth?: boolean;
|
|
17
|
+
guest?: boolean;
|
|
18
|
+
storage?: boolean;
|
|
19
|
+
examples?: boolean;
|
|
20
|
+
husky?: boolean;
|
|
21
|
+
expoSdk?: string;
|
|
22
|
+
expoSdkTemplate?: string;
|
|
23
|
+
pm?: PackageManager;
|
|
24
|
+
}
|
|
25
|
+
interface ProjectOptions {
|
|
26
|
+
projectName: string;
|
|
27
|
+
targetDir: string;
|
|
28
|
+
mode: SetupMode;
|
|
29
|
+
platform: PlatformType;
|
|
30
|
+
typescript: boolean;
|
|
31
|
+
responsive: boolean;
|
|
32
|
+
theme: boolean;
|
|
33
|
+
components: boolean;
|
|
34
|
+
navigation: boolean;
|
|
35
|
+
tabs: boolean;
|
|
36
|
+
drawer: boolean;
|
|
37
|
+
api: boolean;
|
|
38
|
+
query: boolean;
|
|
39
|
+
service: boolean;
|
|
40
|
+
auth: boolean;
|
|
41
|
+
guest: boolean;
|
|
42
|
+
storage: boolean;
|
|
43
|
+
examples: boolean;
|
|
44
|
+
husky: boolean;
|
|
45
|
+
expoSdk?: string;
|
|
46
|
+
expoSdkTemplate?: string;
|
|
47
|
+
pm: PackageManager;
|
|
48
|
+
skipInstall?: boolean;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
declare function createProject(options: ProjectOptions): Promise<boolean>;
|
|
52
|
+
|
|
53
|
+
interface ValidationResult {
|
|
54
|
+
valid: boolean;
|
|
55
|
+
error?: string;
|
|
56
|
+
sanitizedName?: string;
|
|
57
|
+
}
|
|
58
|
+
declare function validateProjectName(inputName: string): ValidationResult;
|
|
59
|
+
declare function resolveTargetDir(cwd: string, projectName: string): string;
|
|
60
|
+
|
|
61
|
+
declare function normalizeExpoSdk(rawSdk?: string): {
|
|
62
|
+
expoSdk: string;
|
|
63
|
+
expoSdkTemplate: string;
|
|
64
|
+
};
|
|
65
|
+
declare function promptExpoSdk(initialSdk?: string): Promise<{
|
|
66
|
+
expoSdk: string;
|
|
67
|
+
expoSdkTemplate: string;
|
|
68
|
+
}>;
|
|
69
|
+
|
|
70
|
+
export { type CliFlags, type PackageManager, type PlatformType, type ProjectOptions, type SetupMode, type ValidationResult, createProject, normalizeExpoSdk, promptExpoSdk, resolveTargetDir, validateProjectName };
|