create-krispya 0.6.0 → 0.8.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/README.md +13 -341
- package/dist/chunks/index.cjs +741 -451
- package/dist/chunks/index.mjs +731 -452
- package/dist/cli.cjs +374 -573
- package/dist/cli.mjs +364 -563
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +40 -34
- package/dist/index.d.mts +40 -34
- package/dist/index.d.ts +40 -34
- package/dist/index.mjs +2 -2
- package/package.json +32 -15
- package/LICENSE +0 -15
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -1,28 +1,35 @@
|
|
|
1
|
-
type Template =
|
|
2
|
-
type BaseTemplate =
|
|
3
|
-
type ProjectType =
|
|
4
|
-
type LibraryBundler =
|
|
5
|
-
type
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
type Template = 'vanilla' | 'vanilla-js' | 'react' | 'react-js' | 'r3f' | 'r3f-js';
|
|
2
|
+
type BaseTemplate = 'vanilla' | 'react' | 'r3f';
|
|
3
|
+
type ProjectType = 'app' | 'library' | 'monorepo';
|
|
4
|
+
type LibraryBundler = 'unbuild' | 'tsdown';
|
|
5
|
+
type PackageManagerName = 'pnpm' | 'npm' | 'yarn';
|
|
6
|
+
type PackageManagerSpec = {
|
|
7
|
+
name: PackageManagerName;
|
|
8
|
+
version?: string;
|
|
9
|
+
};
|
|
10
|
+
type EngineName = string;
|
|
11
|
+
type EngineSpec = {
|
|
12
|
+
name: EngineName;
|
|
13
|
+
version?: string;
|
|
14
|
+
};
|
|
15
|
+
type PackageVersions = Record<string, string>;
|
|
16
|
+
type VersionRangePrefix = '^' | '~' | '';
|
|
17
|
+
type DependencyVersionOptions = {
|
|
18
|
+
prefix?: VersionRangePrefix;
|
|
19
|
+
version?: string;
|
|
13
20
|
};
|
|
14
21
|
type File = {
|
|
15
|
-
type:
|
|
22
|
+
type: 'text';
|
|
16
23
|
content: string;
|
|
17
24
|
} | {
|
|
18
|
-
type:
|
|
25
|
+
type: 'remote';
|
|
19
26
|
url: string;
|
|
20
27
|
};
|
|
21
|
-
type Linter =
|
|
22
|
-
type Formatter =
|
|
23
|
-
type Testing =
|
|
24
|
-
type ConfigStrategy =
|
|
25
|
-
type CodeInjectionLocation =
|
|
28
|
+
type Linter = 'eslint' | 'oxlint' | 'biome';
|
|
29
|
+
type Formatter = 'prettier' | 'oxfmt' | 'biome';
|
|
30
|
+
type Testing = 'vitest' | 'none';
|
|
31
|
+
type ConfigStrategy = 'stealth' | 'root';
|
|
32
|
+
type CodeInjectionLocation = 'vite-config-import' | 'import' | 'global-start' | 'global-end' | 'dom-start' | 'dom' | 'dom-end' | 'scene-start' | 'scene' | 'scene-end' | 'readme-start' | 'readme-end' | 'readme-libraries' | 'readme-tools' | 'readme-commands' | 'vscode-extension-suggestion' | 'vscode-setting';
|
|
26
33
|
type GenerateFiberOptions = {
|
|
27
34
|
/** @default true */
|
|
28
35
|
addExample?: boolean;
|
|
@@ -48,7 +55,7 @@ type GenerateZustandOptions = {
|
|
|
48
55
|
addExample?: boolean;
|
|
49
56
|
} | boolean;
|
|
50
57
|
type GenerateGithubPagesOptions = {} | boolean;
|
|
51
|
-
type AiPlatform =
|
|
58
|
+
type AiPlatform = 'agents' | 'claude';
|
|
52
59
|
type GenerateOptions = {
|
|
53
60
|
githubUserName?: string;
|
|
54
61
|
githubRepoName?: string;
|
|
@@ -87,22 +94,21 @@ type GenerateOptions = {
|
|
|
87
94
|
search: string;
|
|
88
95
|
replace: string;
|
|
89
96
|
}>;
|
|
90
|
-
packageManager?:
|
|
91
|
-
pnpmVersion?: string;
|
|
97
|
+
packageManager?: PackageManagerSpec;
|
|
92
98
|
pnpmManageVersions?: boolean;
|
|
93
|
-
|
|
94
|
-
npmVersion?: string;
|
|
95
|
-
nodeVersion?: string;
|
|
99
|
+
engine?: EngineSpec;
|
|
96
100
|
workspaceRoot?: string;
|
|
97
101
|
workspaceDependencies?: string[];
|
|
98
102
|
};
|
|
99
103
|
type Generator = {
|
|
100
104
|
get options(): GenerateOptions;
|
|
101
105
|
get versions(): PackageVersions;
|
|
106
|
+
getVersion(name: string): string;
|
|
102
107
|
/** Returns true if using stealth config strategy (configs in .config/) */
|
|
103
108
|
isStealthConfig(): boolean;
|
|
104
|
-
addDependency(name: string,
|
|
105
|
-
addDevDependency(name: string,
|
|
109
|
+
addDependency(name: string, options?: DependencyVersionOptions): void;
|
|
110
|
+
addDevDependency(name: string, options?: DependencyVersionOptions): void;
|
|
111
|
+
addPeerDependency(name: string, semver: string): void;
|
|
106
112
|
addFile(path: string, file: File): void;
|
|
107
113
|
addScript(name: string, command: string): void;
|
|
108
114
|
inject(location: CodeInjectionLocation, code: string): void;
|
|
@@ -110,7 +116,7 @@ type Generator = {
|
|
|
110
116
|
configureVite(object: unknown): void;
|
|
111
117
|
addVscodeSetting(key: string, value: unknown): void;
|
|
112
118
|
};
|
|
113
|
-
declare function getLanguageFromTemplate(template: Template):
|
|
119
|
+
declare function getLanguageFromTemplate(template: Template): 'javascript' | 'typescript';
|
|
114
120
|
declare function getBaseTemplate(template: Template): BaseTemplate;
|
|
115
121
|
|
|
116
122
|
/**
|
|
@@ -136,8 +142,8 @@ declare function getLatestYarnVersion(): Promise<string>;
|
|
|
136
142
|
*/
|
|
137
143
|
declare function getLatestNpmCliVersion(): Promise<string>;
|
|
138
144
|
/**
|
|
139
|
-
* Fetches the latest
|
|
140
|
-
* @returns The latest Node.js
|
|
145
|
+
* Fetches the latest stable version of Node.js
|
|
146
|
+
* @returns The latest Node.js version string (e.g., "25.1.0")
|
|
141
147
|
*/
|
|
142
148
|
declare function getLatestNodeVersion(): Promise<string>;
|
|
143
149
|
/**
|
|
@@ -187,10 +193,10 @@ type MonorepoParams = {
|
|
|
187
193
|
linter: Linter;
|
|
188
194
|
formatter: Formatter;
|
|
189
195
|
/** Currently always "pnpm" - monorepos are pnpm-only */
|
|
190
|
-
packageManager:
|
|
191
|
-
pnpmVersion?: string;
|
|
196
|
+
packageManager: PackageManagerSpec;
|
|
192
197
|
pnpmManageVersions?: boolean;
|
|
193
|
-
|
|
198
|
+
engine?: EngineSpec;
|
|
199
|
+
versions?: PackageVersions;
|
|
194
200
|
/** AI platforms to generate files for */
|
|
195
201
|
aiPlatforms?: AiPlatform[];
|
|
196
202
|
};
|
|
@@ -211,4 +217,4 @@ declare function generateMonorepo(params: MonorepoParams): MonorepoResult;
|
|
|
211
217
|
declare function generate(options: GenerateOptions): Record<string, File>;
|
|
212
218
|
|
|
213
219
|
export { detectTooling, generate, generateMonorepo, generateRandomName, getBaseTemplate, getLanguageFromTemplate, getLatestNodeVersion, getLatestNpmCliVersion, getLatestNpmVersion, getLatestPnpmVersion, getLatestYarnVersion, parseWorkspaceYamlContent, validatePackageName };
|
|
214
|
-
export type { AiPlatform, BaseTemplate, CodeInjectionLocation, ConfigStrategy, DetectedTooling, File, Formatter, GenerateDreiOptions, GenerateFiberOptions, GenerateGithubPagesOptions, GenerateHandleOptions, GenerateKootaOptions, GenerateLevaOptions, GenerateOffscreenOptions, GenerateOptions, GeneratePostprocessingOptions, GenerateRapierOptions, GenerateTriplexOptions, GenerateUikitOptions, GenerateViverseOptions, GenerateXrOptions, GenerateZustandOptions, Generator, LibraryBundler, Linter, PackageVersions, ProjectType, Template, Testing };
|
|
220
|
+
export type { AiPlatform, BaseTemplate, CodeInjectionLocation, ConfigStrategy, DependencyVersionOptions, DetectedTooling, EngineName, EngineSpec, File, Formatter, GenerateDreiOptions, GenerateFiberOptions, GenerateGithubPagesOptions, GenerateHandleOptions, GenerateKootaOptions, GenerateLevaOptions, GenerateOffscreenOptions, GenerateOptions, GeneratePostprocessingOptions, GenerateRapierOptions, GenerateTriplexOptions, GenerateUikitOptions, GenerateViverseOptions, GenerateXrOptions, GenerateZustandOptions, Generator, LibraryBundler, Linter, PackageManagerName, PackageManagerSpec, PackageVersions, ProjectType, Template, Testing, VersionRangePrefix };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,28 +1,35 @@
|
|
|
1
|
-
type Template =
|
|
2
|
-
type BaseTemplate =
|
|
3
|
-
type ProjectType =
|
|
4
|
-
type LibraryBundler =
|
|
5
|
-
type
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
type Template = 'vanilla' | 'vanilla-js' | 'react' | 'react-js' | 'r3f' | 'r3f-js';
|
|
2
|
+
type BaseTemplate = 'vanilla' | 'react' | 'r3f';
|
|
3
|
+
type ProjectType = 'app' | 'library' | 'monorepo';
|
|
4
|
+
type LibraryBundler = 'unbuild' | 'tsdown';
|
|
5
|
+
type PackageManagerName = 'pnpm' | 'npm' | 'yarn';
|
|
6
|
+
type PackageManagerSpec = {
|
|
7
|
+
name: PackageManagerName;
|
|
8
|
+
version?: string;
|
|
9
|
+
};
|
|
10
|
+
type EngineName = string;
|
|
11
|
+
type EngineSpec = {
|
|
12
|
+
name: EngineName;
|
|
13
|
+
version?: string;
|
|
14
|
+
};
|
|
15
|
+
type PackageVersions = Record<string, string>;
|
|
16
|
+
type VersionRangePrefix = '^' | '~' | '';
|
|
17
|
+
type DependencyVersionOptions = {
|
|
18
|
+
prefix?: VersionRangePrefix;
|
|
19
|
+
version?: string;
|
|
13
20
|
};
|
|
14
21
|
type File = {
|
|
15
|
-
type:
|
|
22
|
+
type: 'text';
|
|
16
23
|
content: string;
|
|
17
24
|
} | {
|
|
18
|
-
type:
|
|
25
|
+
type: 'remote';
|
|
19
26
|
url: string;
|
|
20
27
|
};
|
|
21
|
-
type Linter =
|
|
22
|
-
type Formatter =
|
|
23
|
-
type Testing =
|
|
24
|
-
type ConfigStrategy =
|
|
25
|
-
type CodeInjectionLocation =
|
|
28
|
+
type Linter = 'eslint' | 'oxlint' | 'biome';
|
|
29
|
+
type Formatter = 'prettier' | 'oxfmt' | 'biome';
|
|
30
|
+
type Testing = 'vitest' | 'none';
|
|
31
|
+
type ConfigStrategy = 'stealth' | 'root';
|
|
32
|
+
type CodeInjectionLocation = 'vite-config-import' | 'import' | 'global-start' | 'global-end' | 'dom-start' | 'dom' | 'dom-end' | 'scene-start' | 'scene' | 'scene-end' | 'readme-start' | 'readme-end' | 'readme-libraries' | 'readme-tools' | 'readme-commands' | 'vscode-extension-suggestion' | 'vscode-setting';
|
|
26
33
|
type GenerateFiberOptions = {
|
|
27
34
|
/** @default true */
|
|
28
35
|
addExample?: boolean;
|
|
@@ -48,7 +55,7 @@ type GenerateZustandOptions = {
|
|
|
48
55
|
addExample?: boolean;
|
|
49
56
|
} | boolean;
|
|
50
57
|
type GenerateGithubPagesOptions = {} | boolean;
|
|
51
|
-
type AiPlatform =
|
|
58
|
+
type AiPlatform = 'agents' | 'claude';
|
|
52
59
|
type GenerateOptions = {
|
|
53
60
|
githubUserName?: string;
|
|
54
61
|
githubRepoName?: string;
|
|
@@ -87,22 +94,21 @@ type GenerateOptions = {
|
|
|
87
94
|
search: string;
|
|
88
95
|
replace: string;
|
|
89
96
|
}>;
|
|
90
|
-
packageManager?:
|
|
91
|
-
pnpmVersion?: string;
|
|
97
|
+
packageManager?: PackageManagerSpec;
|
|
92
98
|
pnpmManageVersions?: boolean;
|
|
93
|
-
|
|
94
|
-
npmVersion?: string;
|
|
95
|
-
nodeVersion?: string;
|
|
99
|
+
engine?: EngineSpec;
|
|
96
100
|
workspaceRoot?: string;
|
|
97
101
|
workspaceDependencies?: string[];
|
|
98
102
|
};
|
|
99
103
|
type Generator = {
|
|
100
104
|
get options(): GenerateOptions;
|
|
101
105
|
get versions(): PackageVersions;
|
|
106
|
+
getVersion(name: string): string;
|
|
102
107
|
/** Returns true if using stealth config strategy (configs in .config/) */
|
|
103
108
|
isStealthConfig(): boolean;
|
|
104
|
-
addDependency(name: string,
|
|
105
|
-
addDevDependency(name: string,
|
|
109
|
+
addDependency(name: string, options?: DependencyVersionOptions): void;
|
|
110
|
+
addDevDependency(name: string, options?: DependencyVersionOptions): void;
|
|
111
|
+
addPeerDependency(name: string, semver: string): void;
|
|
106
112
|
addFile(path: string, file: File): void;
|
|
107
113
|
addScript(name: string, command: string): void;
|
|
108
114
|
inject(location: CodeInjectionLocation, code: string): void;
|
|
@@ -110,7 +116,7 @@ type Generator = {
|
|
|
110
116
|
configureVite(object: unknown): void;
|
|
111
117
|
addVscodeSetting(key: string, value: unknown): void;
|
|
112
118
|
};
|
|
113
|
-
declare function getLanguageFromTemplate(template: Template):
|
|
119
|
+
declare function getLanguageFromTemplate(template: Template): 'javascript' | 'typescript';
|
|
114
120
|
declare function getBaseTemplate(template: Template): BaseTemplate;
|
|
115
121
|
|
|
116
122
|
/**
|
|
@@ -136,8 +142,8 @@ declare function getLatestYarnVersion(): Promise<string>;
|
|
|
136
142
|
*/
|
|
137
143
|
declare function getLatestNpmCliVersion(): Promise<string>;
|
|
138
144
|
/**
|
|
139
|
-
* Fetches the latest
|
|
140
|
-
* @returns The latest Node.js
|
|
145
|
+
* Fetches the latest stable version of Node.js
|
|
146
|
+
* @returns The latest Node.js version string (e.g., "25.1.0")
|
|
141
147
|
*/
|
|
142
148
|
declare function getLatestNodeVersion(): Promise<string>;
|
|
143
149
|
/**
|
|
@@ -187,10 +193,10 @@ type MonorepoParams = {
|
|
|
187
193
|
linter: Linter;
|
|
188
194
|
formatter: Formatter;
|
|
189
195
|
/** Currently always "pnpm" - monorepos are pnpm-only */
|
|
190
|
-
packageManager:
|
|
191
|
-
pnpmVersion?: string;
|
|
196
|
+
packageManager: PackageManagerSpec;
|
|
192
197
|
pnpmManageVersions?: boolean;
|
|
193
|
-
|
|
198
|
+
engine?: EngineSpec;
|
|
199
|
+
versions?: PackageVersions;
|
|
194
200
|
/** AI platforms to generate files for */
|
|
195
201
|
aiPlatforms?: AiPlatform[];
|
|
196
202
|
};
|
|
@@ -211,4 +217,4 @@ declare function generateMonorepo(params: MonorepoParams): MonorepoResult;
|
|
|
211
217
|
declare function generate(options: GenerateOptions): Record<string, File>;
|
|
212
218
|
|
|
213
219
|
export { detectTooling, generate, generateMonorepo, generateRandomName, getBaseTemplate, getLanguageFromTemplate, getLatestNodeVersion, getLatestNpmCliVersion, getLatestNpmVersion, getLatestPnpmVersion, getLatestYarnVersion, parseWorkspaceYamlContent, validatePackageName };
|
|
214
|
-
export type { AiPlatform, BaseTemplate, CodeInjectionLocation, ConfigStrategy, DetectedTooling, File, Formatter, GenerateDreiOptions, GenerateFiberOptions, GenerateGithubPagesOptions, GenerateHandleOptions, GenerateKootaOptions, GenerateLevaOptions, GenerateOffscreenOptions, GenerateOptions, GeneratePostprocessingOptions, GenerateRapierOptions, GenerateTriplexOptions, GenerateUikitOptions, GenerateViverseOptions, GenerateXrOptions, GenerateZustandOptions, Generator, LibraryBundler, Linter, PackageVersions, ProjectType, Template, Testing };
|
|
220
|
+
export type { AiPlatform, BaseTemplate, CodeInjectionLocation, ConfigStrategy, DependencyVersionOptions, DetectedTooling, EngineName, EngineSpec, File, Formatter, GenerateDreiOptions, GenerateFiberOptions, GenerateGithubPagesOptions, GenerateHandleOptions, GenerateKootaOptions, GenerateLevaOptions, GenerateOffscreenOptions, GenerateOptions, GeneratePostprocessingOptions, GenerateRapierOptions, GenerateTriplexOptions, GenerateUikitOptions, GenerateViverseOptions, GenerateXrOptions, GenerateZustandOptions, Generator, LibraryBundler, Linter, PackageManagerName, PackageManagerSpec, PackageVersions, ProjectType, Template, Testing, VersionRangePrefix };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,28 +1,35 @@
|
|
|
1
|
-
type Template =
|
|
2
|
-
type BaseTemplate =
|
|
3
|
-
type ProjectType =
|
|
4
|
-
type LibraryBundler =
|
|
5
|
-
type
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
type Template = 'vanilla' | 'vanilla-js' | 'react' | 'react-js' | 'r3f' | 'r3f-js';
|
|
2
|
+
type BaseTemplate = 'vanilla' | 'react' | 'r3f';
|
|
3
|
+
type ProjectType = 'app' | 'library' | 'monorepo';
|
|
4
|
+
type LibraryBundler = 'unbuild' | 'tsdown';
|
|
5
|
+
type PackageManagerName = 'pnpm' | 'npm' | 'yarn';
|
|
6
|
+
type PackageManagerSpec = {
|
|
7
|
+
name: PackageManagerName;
|
|
8
|
+
version?: string;
|
|
9
|
+
};
|
|
10
|
+
type EngineName = string;
|
|
11
|
+
type EngineSpec = {
|
|
12
|
+
name: EngineName;
|
|
13
|
+
version?: string;
|
|
14
|
+
};
|
|
15
|
+
type PackageVersions = Record<string, string>;
|
|
16
|
+
type VersionRangePrefix = '^' | '~' | '';
|
|
17
|
+
type DependencyVersionOptions = {
|
|
18
|
+
prefix?: VersionRangePrefix;
|
|
19
|
+
version?: string;
|
|
13
20
|
};
|
|
14
21
|
type File = {
|
|
15
|
-
type:
|
|
22
|
+
type: 'text';
|
|
16
23
|
content: string;
|
|
17
24
|
} | {
|
|
18
|
-
type:
|
|
25
|
+
type: 'remote';
|
|
19
26
|
url: string;
|
|
20
27
|
};
|
|
21
|
-
type Linter =
|
|
22
|
-
type Formatter =
|
|
23
|
-
type Testing =
|
|
24
|
-
type ConfigStrategy =
|
|
25
|
-
type CodeInjectionLocation =
|
|
28
|
+
type Linter = 'eslint' | 'oxlint' | 'biome';
|
|
29
|
+
type Formatter = 'prettier' | 'oxfmt' | 'biome';
|
|
30
|
+
type Testing = 'vitest' | 'none';
|
|
31
|
+
type ConfigStrategy = 'stealth' | 'root';
|
|
32
|
+
type CodeInjectionLocation = 'vite-config-import' | 'import' | 'global-start' | 'global-end' | 'dom-start' | 'dom' | 'dom-end' | 'scene-start' | 'scene' | 'scene-end' | 'readme-start' | 'readme-end' | 'readme-libraries' | 'readme-tools' | 'readme-commands' | 'vscode-extension-suggestion' | 'vscode-setting';
|
|
26
33
|
type GenerateFiberOptions = {
|
|
27
34
|
/** @default true */
|
|
28
35
|
addExample?: boolean;
|
|
@@ -48,7 +55,7 @@ type GenerateZustandOptions = {
|
|
|
48
55
|
addExample?: boolean;
|
|
49
56
|
} | boolean;
|
|
50
57
|
type GenerateGithubPagesOptions = {} | boolean;
|
|
51
|
-
type AiPlatform =
|
|
58
|
+
type AiPlatform = 'agents' | 'claude';
|
|
52
59
|
type GenerateOptions = {
|
|
53
60
|
githubUserName?: string;
|
|
54
61
|
githubRepoName?: string;
|
|
@@ -87,22 +94,21 @@ type GenerateOptions = {
|
|
|
87
94
|
search: string;
|
|
88
95
|
replace: string;
|
|
89
96
|
}>;
|
|
90
|
-
packageManager?:
|
|
91
|
-
pnpmVersion?: string;
|
|
97
|
+
packageManager?: PackageManagerSpec;
|
|
92
98
|
pnpmManageVersions?: boolean;
|
|
93
|
-
|
|
94
|
-
npmVersion?: string;
|
|
95
|
-
nodeVersion?: string;
|
|
99
|
+
engine?: EngineSpec;
|
|
96
100
|
workspaceRoot?: string;
|
|
97
101
|
workspaceDependencies?: string[];
|
|
98
102
|
};
|
|
99
103
|
type Generator = {
|
|
100
104
|
get options(): GenerateOptions;
|
|
101
105
|
get versions(): PackageVersions;
|
|
106
|
+
getVersion(name: string): string;
|
|
102
107
|
/** Returns true if using stealth config strategy (configs in .config/) */
|
|
103
108
|
isStealthConfig(): boolean;
|
|
104
|
-
addDependency(name: string,
|
|
105
|
-
addDevDependency(name: string,
|
|
109
|
+
addDependency(name: string, options?: DependencyVersionOptions): void;
|
|
110
|
+
addDevDependency(name: string, options?: DependencyVersionOptions): void;
|
|
111
|
+
addPeerDependency(name: string, semver: string): void;
|
|
106
112
|
addFile(path: string, file: File): void;
|
|
107
113
|
addScript(name: string, command: string): void;
|
|
108
114
|
inject(location: CodeInjectionLocation, code: string): void;
|
|
@@ -110,7 +116,7 @@ type Generator = {
|
|
|
110
116
|
configureVite(object: unknown): void;
|
|
111
117
|
addVscodeSetting(key: string, value: unknown): void;
|
|
112
118
|
};
|
|
113
|
-
declare function getLanguageFromTemplate(template: Template):
|
|
119
|
+
declare function getLanguageFromTemplate(template: Template): 'javascript' | 'typescript';
|
|
114
120
|
declare function getBaseTemplate(template: Template): BaseTemplate;
|
|
115
121
|
|
|
116
122
|
/**
|
|
@@ -136,8 +142,8 @@ declare function getLatestYarnVersion(): Promise<string>;
|
|
|
136
142
|
*/
|
|
137
143
|
declare function getLatestNpmCliVersion(): Promise<string>;
|
|
138
144
|
/**
|
|
139
|
-
* Fetches the latest
|
|
140
|
-
* @returns The latest Node.js
|
|
145
|
+
* Fetches the latest stable version of Node.js
|
|
146
|
+
* @returns The latest Node.js version string (e.g., "25.1.0")
|
|
141
147
|
*/
|
|
142
148
|
declare function getLatestNodeVersion(): Promise<string>;
|
|
143
149
|
/**
|
|
@@ -187,10 +193,10 @@ type MonorepoParams = {
|
|
|
187
193
|
linter: Linter;
|
|
188
194
|
formatter: Formatter;
|
|
189
195
|
/** Currently always "pnpm" - monorepos are pnpm-only */
|
|
190
|
-
packageManager:
|
|
191
|
-
pnpmVersion?: string;
|
|
196
|
+
packageManager: PackageManagerSpec;
|
|
192
197
|
pnpmManageVersions?: boolean;
|
|
193
|
-
|
|
198
|
+
engine?: EngineSpec;
|
|
199
|
+
versions?: PackageVersions;
|
|
194
200
|
/** AI platforms to generate files for */
|
|
195
201
|
aiPlatforms?: AiPlatform[];
|
|
196
202
|
};
|
|
@@ -211,4 +217,4 @@ declare function generateMonorepo(params: MonorepoParams): MonorepoResult;
|
|
|
211
217
|
declare function generate(options: GenerateOptions): Record<string, File>;
|
|
212
218
|
|
|
213
219
|
export { detectTooling, generate, generateMonorepo, generateRandomName, getBaseTemplate, getLanguageFromTemplate, getLatestNodeVersion, getLatestNpmCliVersion, getLatestNpmVersion, getLatestPnpmVersion, getLatestYarnVersion, parseWorkspaceYamlContent, validatePackageName };
|
|
214
|
-
export type { AiPlatform, BaseTemplate, CodeInjectionLocation, ConfigStrategy, DetectedTooling, File, Formatter, GenerateDreiOptions, GenerateFiberOptions, GenerateGithubPagesOptions, GenerateHandleOptions, GenerateKootaOptions, GenerateLevaOptions, GenerateOffscreenOptions, GenerateOptions, GeneratePostprocessingOptions, GenerateRapierOptions, GenerateTriplexOptions, GenerateUikitOptions, GenerateViverseOptions, GenerateXrOptions, GenerateZustandOptions, Generator, LibraryBundler, Linter, PackageVersions, ProjectType, Template, Testing };
|
|
220
|
+
export type { AiPlatform, BaseTemplate, CodeInjectionLocation, ConfigStrategy, DependencyVersionOptions, DetectedTooling, EngineName, EngineSpec, File, Formatter, GenerateDreiOptions, GenerateFiberOptions, GenerateGithubPagesOptions, GenerateHandleOptions, GenerateKootaOptions, GenerateLevaOptions, GenerateOffscreenOptions, GenerateOptions, GeneratePostprocessingOptions, GenerateRapierOptions, GenerateTriplexOptions, GenerateUikitOptions, GenerateViverseOptions, GenerateXrOptions, GenerateZustandOptions, Generator, LibraryBundler, Linter, PackageManagerName, PackageManagerSpec, PackageVersions, ProjectType, Template, Testing, VersionRangePrefix };
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import 'chalk';
|
|
1
|
+
export { e as detectTooling, v as generate, C as generateMonorepo, d as generateRandomName, a as getBaseTemplate, b as getLanguageFromTemplate, D as getLatestNodeVersion, E as getLatestNpmCliVersion, F as getLatestNpmVersion, G as getLatestPnpmVersion, H as getLatestYarnVersion, p as parseWorkspaceYamlContent, B as validatePackageName } from './chunks/index.mjs';
|
|
3
2
|
import 'fs/promises';
|
|
4
3
|
import 'fs';
|
|
5
4
|
import 'path';
|
|
5
|
+
import 'chalk';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-krispya",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "🌹 CLI for creating web projects with (my) sensible defaults",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -10,16 +10,23 @@
|
|
|
10
10
|
"scaffold",
|
|
11
11
|
"vite"
|
|
12
12
|
],
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
13
|
+
"type": "module",
|
|
14
|
+
"main": "./dist/index.mjs",
|
|
15
|
+
"module": "./dist/index.mjs",
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"import": "./dist/index.mjs",
|
|
21
|
+
"require": "./dist/index.cjs"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"bin": {
|
|
25
|
+
"create-krispya": "./dist/cli.mjs"
|
|
26
|
+
},
|
|
16
27
|
"files": [
|
|
17
|
-
"dist"
|
|
18
|
-
"README.md"
|
|
28
|
+
"dist"
|
|
19
29
|
],
|
|
20
|
-
"type": "module",
|
|
21
|
-
"main": "dist/index.mjs",
|
|
22
|
-
"types": "dist/index.d.ts",
|
|
23
30
|
"dependencies": {
|
|
24
31
|
"@clack/prompts": "^0.11.0",
|
|
25
32
|
"chalk": "^5.4.1",
|
|
@@ -29,13 +36,23 @@
|
|
|
29
36
|
"undici": "^5.28.4"
|
|
30
37
|
},
|
|
31
38
|
"devDependencies": {
|
|
32
|
-
"@types/node": "^
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
39
|
+
"@types/node": "^25.3.5",
|
|
40
|
+
"oxlint": "^1.51.0",
|
|
41
|
+
"prettier": "^3.8.1",
|
|
42
|
+
"tsx": "^4.21.0",
|
|
43
|
+
"unbuild": "^3.5.0",
|
|
44
|
+
"vitest": "^4.0.18"
|
|
45
|
+
},
|
|
46
|
+
"engines": {
|
|
47
|
+
"pnpm": ">=10.0.0",
|
|
48
|
+
"node": ">=25.0.0"
|
|
36
49
|
},
|
|
37
50
|
"scripts": {
|
|
38
|
-
"
|
|
39
|
-
"
|
|
51
|
+
"dev": "tsx src/cli.ts",
|
|
52
|
+
"build": "unbuild --config .config/build.config.ts",
|
|
53
|
+
"release": "pnpm run build && pnpm publish",
|
|
54
|
+
"test": "vitest",
|
|
55
|
+
"lint": "oxlint -c .config/oxlint.json",
|
|
56
|
+
"format": "prettier --config .config/prettier.json --write ."
|
|
40
57
|
}
|
|
41
58
|
}
|
package/LICENSE
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
ISC License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2024-2025 Poimandres
|
|
4
|
-
|
|
5
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
-
purpose with or without fee is hereby granted, provided that the above
|
|
7
|
-
copyright notice and this permission notice appear in all copies.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
10
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
11
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
12
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
13
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
14
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
15
|
-
PERFORMANCE OF THIS SOFTWARE.
|