MCPcopy Create free account
hub / github.com/TanStack/cli / createFramework

Function createFramework

packages/create/scripts/generate-manifest.mjs:169–183  ·  view source on GitHub ↗
(frameworkId)

Source from the content-addressed store, hash-verified

167}
168
169function createFramework(frameworkId) {
170 const frameworkDir = join(frameworksDir, frameworkId)
171 const project = scanProjectDirectory(frameworkDir)
172
173 return {
174 ...frameworkMetadata[frameworkId],
175 ...project,
176 addOns: [
177 ...scanCatalogDirectory(join(frameworkDir, 'add-ons')),
178 ...scanCatalogDirectory(join(frameworkDir, 'toolchains')),
179 ...scanCatalogDirectory(join(frameworkDir, 'examples')),
180 ...scanCatalogDirectory(join(frameworkDir, 'hosts')),
181 ],
182 }
183}
184
185function getTemplateKey(template) {
186 let hash = 0x811c9dc5

Callers 1

Calls 2

scanCatalogDirectoryFunction · 0.85
scanProjectDirectoryFunction · 0.70

Tested by

no test coverage detected