@kosmojs/dev 0.0.20 → 0.0.21
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/package.json +11 -10
- package/pkg/{src/ast.d.ts → ast.d.ts} +11 -16
- package/pkg/{src/base-plugin → base-plugin}/api-handler.d.ts +1 -1
- package/pkg/{src/base-plugin → base-plugin}/worker.d.ts +1 -2
- package/pkg/base-plugin/worker.js +489 -221
- package/pkg/base-plugin/worker.js.map +4 -4
- package/pkg/{src/cache.d.ts → cache.d.ts} +1 -1
- package/pkg/index.js +640 -296
- package/pkg/index.js.map +4 -4
- package/pkg/{src/paths.d.ts → paths.d.ts} +2 -2
- package/pkg/{src/render.d.ts → render.d.ts} +4 -4
- package/pkg/routes-factory/base.d.ts +47 -0
- package/pkg/{src/routes-factory → routes-factory}/index.d.ts +1 -0
- package/pkg/stub-generator/index.js +1 -12
- package/pkg/stub-generator/index.js.map +2 -2
- package/pkg/{src/types.d.ts → types.d.ts} +55 -38
- package/pkg/src/routes-factory/base.d.ts +0 -17
- package/pkg/test/@fixtures/app/lib/@src/{api}/articles/[...path]/index.ts/types.d.ts +0 -3
- package/pkg/test/@fixtures/app/lib/@src/{api}/articles/[...path]/types.d.ts +0 -3
- package/pkg/test/@fixtures/app/lib/@src/{api}/books/[category]/[[author]]/index.ts/types.d.ts +0 -4
- package/pkg/test/@fixtures/app/lib/@src/{api}/books/[category]/[[author]]/types.d.ts +0 -4
- package/pkg/test/@fixtures/app/lib/@src/{api}/books/[category]/index.ts/types.d.ts +0 -3
- package/pkg/test/@fixtures/app/lib/@src/{api}/books/[category]/types.d.ts +0 -3
- package/pkg/test/@fixtures/app/lib/@src/{api}/books/index.ts/types.d.ts +0 -1
- package/pkg/test/@fixtures/app/lib/@src/{api}/books/types.d.ts +0 -1
- package/pkg/test/@fixtures/app/lib/@src/{api}/files/[[folder]]/[[id]].json/index.ts/types.d.ts +0 -4
- package/pkg/test/@fixtures/app/lib/@src/{api}/files/[[folder]]/[[id]].json/types.d.ts +0 -4
- package/pkg/test/@fixtures/app/lib/@src/{api}/files/[[folder]]/index.ts/types.d.ts +0 -3
- package/pkg/test/@fixtures/app/lib/@src/{api}/files/[[folder]]/types.d.ts +0 -3
- package/pkg/test/@fixtures/app/lib/@src/{api}/index/index.ts/types.d.ts +0 -1
- package/pkg/test/@fixtures/app/lib/@src/{api}/index/types.d.ts +0 -1
- package/pkg/test/@fixtures/app/lib/@src/{api}/pages/[...path].html/index.ts/types.d.ts +0 -3
- package/pkg/test/@fixtures/app/lib/@src/{api}/pages/[...path].html/types.d.ts +0 -3
- package/pkg/test/@fixtures/app/lib/@src/{api}/users/[id].json/index.ts/types.d.ts +0 -3
- package/pkg/test/@fixtures/app/lib/@src/{api}/users/[id].json/types.d.ts +0 -3
- package/pkg/test/@fixtures/app/src/test/api/articles/[...path]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/api/books/[category]/[[author]]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/api/books/[category]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/api/books/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/api/files/[[folder]]/[[id]].json/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/api/files/[[folder]]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/api/index/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/api/pages/[...path].html/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/api/users/[id].json/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/about/careers/[jobId]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/about/careers/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/about/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/about/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/about/team/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/account/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/account/profile/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/admin/[tenant]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/admin/[tenant]/resources/[[type]]/[...path]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/admin/[tenant]/resources/[[type]]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/admin/[tenant]/resources/[[type]]/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/admin/[tenant]/resources/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/admin/[tenant]/resources/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/admin/[tenant]/settings/general/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/admin/[tenant]/settings/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/admin/[tenant]/settings/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/admin/[tenant]/settings/permissions/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/admin/[tenant]/users/[userId]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/admin/[tenant]/users/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/admin/[tenant]/users/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/admin/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/admin/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/blog/[[category]]/[[tag]]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/blog/[[category]]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/blog/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/blog/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/blog/post/[slug]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/blog/post/[slug]/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/contact/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/contact/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/courses/[courseId]/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/courses/[courseId]/lessons/[[lessonId]]/assignments/[...assignmentPath]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/dashboard/[view]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/dashboard/analytics/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/dashboard/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/dashboard/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/dashboard/settings/billing/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/dashboard/settings/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/dashboard/settings/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/dashboard/settings/notifications/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/dashboard/settings/profile/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/dashboard/settings/security/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/dashboard/settings/security/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/docs/[...path]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/docs/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/docs/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/files/[...filePath]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/files/[...filePath]/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/legal/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/legal/privacy/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/legal/terms/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/news/[category]/articles/[...articlePath]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/news/[category]/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/portal/[clientId]/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/portal/[clientId]/reports/[reportType]/data/[dataView]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/portal/[clientId]/reports/[reportType]/data/[dataView]/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/portal/[clientId]/reports/[reportType]/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/portal/[clientId]/reports/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/portal/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/products/[id]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/products/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/profile/[username]/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/profile/[username]/posts/[postId]/comments/[...thread]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/profile/[username]/posts/[postId]/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/projects/[projectId]/files/[...path]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/projects/[projectId]/files/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/projects/[projectId]/files/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/projects/[projectId]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/projects/[projectId]/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/projects/[projectId]/tasks/[taskId]/comments/[commentId]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/projects/[projectId]/tasks/[taskId]/comments/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/projects/[projectId]/tasks/[taskId]/comments/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/projects/[projectId]/tasks/[taskId]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/projects/[projectId]/tasks/[taskId]/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/projects/[projectId]/tasks/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/projects/[projectId]/tasks/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/projects/[projectId]/team/[userId]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/projects/[projectId]/team/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/projects/[projectId]/team/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/projects/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/projects/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/properties/[[city]]/filters/[...filters]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/properties/filters/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/properties/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/search/[[query]]/[[page]]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/search/[[query]]/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/search/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/shop/[category]/[productId]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/shop/[category]/[productId]/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/shop/cart/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/shop/checkout/confirm/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/shop/checkout/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/shop/checkout/payment/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/shop/checkout/shipping/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/shop/checkout/shipping/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/shop/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/shop/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/shop/orders/[orderId]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/shop/orders/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/shop/orders/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/shop/product/[id]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/shop/product/[id]/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/shop/product/[id]/reviews/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/shop/products/[[category]]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/shop/products/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/shop/products/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/signup/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/store/[category]/filters/[...filters]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/store/[category]/sort/[sortBy]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/store/[category]/sort/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/store/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/users/[username]/followers/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/users/[username]/following/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/users/[username]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/users/[username]/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/users/[username]/posts/[postId]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/users/[username]/posts/[postId]/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/users/[username]/posts/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/users/[username]/posts/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/users/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/users/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/workspace/[workspaceId]/analytics/[range]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/workspace/[workspaceId]/analytics/[range]/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/workspace/[workspaceId]/analytics/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/workspace/[workspaceId]/analytics/layout.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/workspace/[workspaceId]/team/[memberId]/permissions/[...permissionPath]/index.d.ts +0 -0
- package/pkg/test/@fixtures/app/src/test/pages/workspace/[workspaceId]/team/layout.d.ts +0 -0
- package/pkg/test/@fixtures/ast/extractTypeDeclarations/exports/with-referenced-files.d.ts +0 -1
- package/pkg/test/@fixtures/ast/extractTypeDeclarations/imports/with-referenced-files.d.ts +0 -1
- package/pkg/test/ast/extractParamsRefinements.test.d.ts +0 -1
- package/pkg/test/ast/extractRouteMethods.test.d.ts +0 -1
- package/pkg/test/ast/extractTypeDeclarations.test.d.ts +0 -1
- package/pkg/test/routes/index.d.ts +0 -4
- package/pkg/test/routes/nesting.test.d.ts +0 -1
- package/pkg/test/routes/resolver.test.d.ts +0 -1
- package/pkg/test/routes/routes.test.d.ts +0 -1
- /package/pkg/{src/alias-plugin → alias-plugin}/index.d.ts +0 -0
- /package/pkg/{src/base-plugin → base-plugin}/index.d.ts +0 -0
- /package/pkg/{src/base-plugin → base-plugin}/spinner.d.ts +0 -0
- /package/pkg/{src/defaults.d.ts → defaults.d.ts} +0 -0
- /package/pkg/{src/define-plugin → define-plugin}/index.d.ts +0 -0
- /package/pkg/{src/fs.d.ts → fs.d.ts} +0 -0
- /package/pkg/{src/index.d.ts → index.d.ts} +0 -0
- /package/pkg/{src/routes-factory → routes-factory}/nesting.d.ts +0 -0
- /package/pkg/{src/routes-factory → routes-factory}/resolve.d.ts +0 -0
- /package/pkg/{src/stub-generator → stub-generator}/index.d.ts +0 -0
- /package/pkg/{src/typebox.d.ts → typebox.d.ts} +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { PluginOptionsResolved } from "../types";
|
|
2
2
|
import { type ResolverSignature } from "./resolve";
|
|
3
|
+
export * from "./base";
|
|
3
4
|
export * from "./nesting";
|
|
4
5
|
export * from "./resolve";
|
|
5
6
|
export declare const routesFactory: (pluginOptions: PluginOptionsResolved) => Promise<{
|
|
@@ -51,9 +51,6 @@ var pathResolver = ({
|
|
|
51
51
|
},
|
|
52
52
|
libEntry(...a) {
|
|
53
53
|
return this.lib(defaults.entryDir, ...a);
|
|
54
|
-
},
|
|
55
|
-
fetch(...a) {
|
|
56
|
-
return this.lib(defaults.fetchDir, ...a);
|
|
57
54
|
}
|
|
58
55
|
};
|
|
59
56
|
return {
|
|
@@ -87,9 +84,6 @@ var pathResolver = ({
|
|
|
87
84
|
},
|
|
88
85
|
libPages(...a) {
|
|
89
86
|
return this.lib(defaults.pagesDir, ...a);
|
|
90
|
-
},
|
|
91
|
-
fetch(...a) {
|
|
92
|
-
return this.lib(defaults.fetchDir, ...a);
|
|
93
87
|
}
|
|
94
88
|
},
|
|
95
89
|
createImport,
|
|
@@ -121,13 +115,8 @@ var render = (template, context, options) => {
|
|
|
121
115
|
const { noEscape = true, renderer = handlebars } = { ...options };
|
|
122
116
|
return renderer.compile(template, { noEscape })(context);
|
|
123
117
|
};
|
|
124
|
-
var renderAsFile = (file, template, context, options) => {
|
|
125
|
-
const { formatters, ...renderOpts } = { ...options };
|
|
126
|
-
const content = render(template, context, renderOpts);
|
|
127
|
-
return Array.isArray(formatters) ? formatters.reduce((c, f) => f(c, file), content) : content;
|
|
128
|
-
};
|
|
129
118
|
var renderToFile = async (file, template, context, options) => {
|
|
130
|
-
const content =
|
|
119
|
+
const content = render(template, context, options);
|
|
131
120
|
if (await pathExists(file)) {
|
|
132
121
|
const { overwrite = true } = { ...options };
|
|
133
122
|
if (overwrite === false) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/stub-generator/index.ts", "../../src/paths.ts", "../../src/defaults.ts", "../../src/render.ts", "../../src/fs.ts", "load-as-text:/volumes/studio/OpenSource/KosmoJS/Kosmo/packages/core/dev/src/stub-generator/templates/env.d.ts", "../../src/stub-generator/templates/gitignore.hbs", "../../src/stub-generator/templates/schemas.hbs"],
|
|
4
|
-
"sourcesContent": ["import { dirname } from \"node:path\";\n\nimport { pathResolver } from \"@/paths\";\nimport { renderToFile } from \"@/render\";\nimport type { GeneratorConstructor, ResolvedEntry } from \"@/types\";\n\nimport envTpl from \"./templates/env.d.ts?as=text\";\nimport gitignoreTpl from \"./templates/gitignore.hbs\";\nimport schemasTpl from \"./templates/schemas.hbs\";\n\n/**\n * Generates stub files required by various generators.\n * Ensures cross-generator dependencies remain resolvable\n * even if specialized generators supposed to generate these files are not installed.\n * */\nexport default (): GeneratorConstructor => {\n return {\n name: \"Stub\",\n moduleImport: import.meta.filename,\n moduleConfig: undefined,\n async factory({ appRoot, sourceFolder }) {\n const generateLibFiles = async (entries: Array<ResolvedEntry>) => {\n const { createPath } = pathResolver({ appRoot, sourceFolder });\n\n /**\n * expose TRefine as a global type.\n * not supposed to be overriden by generators.\n * */\n await renderToFile(createPath.lib(\"../env.d.ts\"), envTpl, {});\n\n /**\n * deploy a default gitignore file that ignore everything,\n * except cache.json files; if file exists, do not override.\n * */\n await renderToFile(\n createPath.lib(\"../.gitignore\"),\n gitignoreTpl,\n {},\n { overwrite: false },\n );\n\n for (const { kind, entry } of entries) {\n if (kind === \"apiRoute\") {\n // Generating stub schemas file.\n // It is required by various generators, e.g. api-generator, fetch-generator.\n // Specialized generators (e.g. typebox-generator) may override this later.\n await renderToFile(\n createPath.libApi(dirname(entry.file), \"schemas.ts\"),\n schemasTpl,\n { route: entry },\n { overwrite: false },\n );\n }\n }\n };\n\n return {\n watch: generateLibFiles,\n build: generateLibFiles,\n };\n },\n };\n};\n", "import { join } from \"node:path\";\n\nimport { defaults } from \"./defaults\";\n\ntype CreateImport = Record<\n | \"coreApi\"\n | \"src\"\n | \"config\"\n | \"api\"\n | \"pages\"\n | \"fetch\"\n | \"lib\"\n | \"libApi\"\n | \"libEntry\",\n (...a: Array<string>) => string\n>;\n\nexport const createTsconfigPaths = (prefix: string) => {\n return {\n [`${defaults.appPrefix}/*`]: [`${prefix}/*`],\n [`${defaults.srcPrefix}/*`]: [`${prefix}/${defaults.srcDir}/*`],\n [`${defaults.libPrefix}/*`]: [\n `${prefix}/${defaults.libDir}/${defaults.srcDir}/*`,\n ],\n };\n};\n\nexport const pathResolver = ({\n appRoot,\n sourceFolder,\n}: {\n appRoot?: string;\n sourceFolder: string;\n}): {\n createPath: Record<\n | \"coreApi\"\n | \"src\"\n | \"config\"\n | \"api\"\n | \"pages\"\n | \"entry\"\n | \"fetch\"\n | \"lib\"\n | \"libApi\"\n | \"libEntry\"\n | \"libPages\",\n (...a: Array<string>) => string\n >;\n createImport: CreateImport;\n createImportHelper: (k: keyof CreateImport, ...a: Array<string>) => string;\n} => {\n const createPath = (...a: Array<string>) => {\n return appRoot ? join(appRoot, ...a) : join(...a);\n };\n\n const createImport: CreateImport = {\n coreApi(...a) {\n return join(defaults.appPrefix, defaults.coreDir, defaults.apiDir, ...a);\n },\n src(...a) {\n return join(defaults.srcPrefix, sourceFolder, ...a);\n },\n config(...a) {\n return this.src(defaults.configDir, ...a);\n },\n api(...a) {\n return this.src(defaults.apiDir, ...a);\n },\n pages(...a) {\n return this.src(defaults.pagesDir, ...a);\n },\n lib(...a) {\n return join(defaults.libPrefix, sourceFolder, ...a);\n },\n libApi(...a) {\n return this.lib(defaults.apiDir, ...a);\n },\n libEntry(...a) {\n return this.lib(defaults.entryDir, ...a);\n },\n fetch(...a) {\n return this.lib(defaults.fetchDir, ...a);\n },\n };\n\n return {\n createPath: {\n coreApi(...a) {\n return createPath(defaults.coreDir, defaults.apiDir, ...a);\n },\n src(...a) {\n return createPath(defaults.srcDir, sourceFolder, ...a);\n },\n api(...a) {\n return this.src(defaults.apiDir, ...a);\n },\n pages(...a) {\n return this.src(defaults.pagesDir, ...a);\n },\n config(...a) {\n return this.src(defaults.configDir, ...a);\n },\n entry(...a) {\n return this.src(defaults.entryDir, ...a);\n },\n lib(...a) {\n return createPath(defaults.libDir, defaults.srcDir, sourceFolder, ...a);\n },\n libApi(...a) {\n return this.lib(defaults.apiDir, ...a);\n },\n libEntry(...a) {\n return this.lib(defaults.entryDir, ...a);\n },\n libPages(...a) {\n return this.lib(defaults.pagesDir, ...a);\n },\n fetch(...a) {\n return this.lib(defaults.fetchDir, ...a);\n },\n },\n createImport,\n createImportHelper: (key, ...a) => {\n // Handlebars always appends an options object as the last argument,\n // slice it off before passing args to createImport\n return createImport[key](...a.slice(0, -1));\n },\n };\n};\n", "export const defaults = {\n appPrefix: \"~\",\n srcPrefix: \"@\",\n libPrefix: \"_\",\n\n coreDir: \"core\",\n srcDir: \"src\",\n libDir: \"lib\",\n\n configDir: \"config\",\n apiDir: \"api\",\n pagesDir: \"pages\",\n entryDir: \"entry\",\n fetchDir: \"fetch\",\n};\n", "import { mkdir, readFile, writeFile } from \"node:fs/promises\";\nimport { dirname, join } from \"node:path\";\n\nimport crc from \"crc/crc32\";\nimport handlebars from \"handlebars\";\n\nimport { pathExists } from \"./fs\";\n\nexport type RenderOptions = {\n noEscape?: boolean;\n // handlebars instance\n renderer?: typeof handlebars;\n};\n\nexport type FactoryOptions = RenderOptions & {\n /**\n * Controls whether to overwrite an existing file.\n * - `false`: skip writing if the file already exists\n * - `true` (default): always overwrite\n * - function: custom logic to decide whether to overwrite, based on current file content\n */\n overwrite?: boolean | ((fileContent: string) => boolean);\n formatters?: Array<Formatter>;\n};\n\ntype Formatter = (content: string, file: string) => string;\n\nexport const render = <Context = object>(\n template: string,\n context: Context,\n options?: RenderOptions,\n): string => {\n const { noEscape = true, renderer = handlebars } = { ...options };\n return renderer.compile(template, { noEscape })(context);\n};\n\nexport const renderAsFile = <Context = object>(\n file: string,\n template: string,\n context: Context,\n options?: Omit<FactoryOptions, \"overwrite\">,\n): string => {\n const { formatters, ...renderOpts } = { ...options };\n const content = render(template, context, renderOpts);\n return Array.isArray(formatters)\n ? formatters.reduce((c, f) => f(c, file), content)\n : content;\n};\n\nexport const renderToFile = async <Context = object>(\n file: string,\n template: string,\n context: Context,\n options?: FactoryOptions,\n): Promise<void> => {\n const content = renderAsFile(file, template, context, options);\n\n /**\n * Two fs calls (exists + read) are worth it to avoid touching the file\n * and triggering watchers unnecessarily.\n * */\n if (await pathExists(file)) {\n const { overwrite = true } = { ...options };\n if (overwrite === false) {\n return;\n }\n const fileContent = await readFile(file, \"utf8\");\n if (typeof overwrite === \"function\" && !overwrite(fileContent)) {\n return;\n }\n if (crc(content) === crc(fileContent)) {\n return;\n }\n }\n\n await mkdir(dirname(file), { recursive: true });\n await writeFile(file, content, \"utf8\");\n};\n\nexport const renderFactory = (\n options?: FactoryOptions & {\n outdir?: string;\n partials?: Record<string, string>;\n helpers?: Record<string, (...a: Array<never>) => unknown>;\n },\n) => {\n const renderer = handlebars.create();\n if (options?.partials) {\n renderer.registerPartial(options.partials as never);\n }\n if (options?.helpers) {\n renderer.registerHelper(options.helpers as never);\n }\n return {\n render<Context = object>(\n template: string,\n context: Context,\n selfOoptions?: FactoryOptions,\n ) {\n return render(template, context, {\n renderer,\n ...options,\n ...selfOoptions,\n });\n },\n async renderToFile<Context = object>(\n file: string,\n template: string,\n context: Context,\n selfOoptions?: FactoryOptions,\n ) {\n return renderToFile(\n options?.outdir ? join(options.outdir, file) : file,\n template,\n context,\n { renderer, ...options, ...selfOoptions },\n );\n },\n };\n};\n", "import { access, constants } from \"node:fs/promises\";\n\nexport const pathExists = async (path: string): Promise<boolean> => {\n try {\n await access(path, constants.F_OK);\n return true;\n } catch {\n return false;\n }\n};\n", "/**\n * Enhances base TypeScript types with JSON Schema validation constraints.\n * Allows declaring refined types that carry validation metadata for runtime\n * schema validation while maintaining full TypeScript type safety.\n *\n * Useful for generating validation schemas and ensuring\n * data conforms to specific business rules beyond basic type checking.\n * */\nexport declare global {\n type TRefine<\n T extends unknown[] | number | string | object,\n _ extends T extends unknown[]\n ? TArrayOptions\n : T extends number\n ? TNumberOptions\n : T extends string\n ? TStringOptions\n : TObjectOptions,\n > = T;\n}\n\n/**\n * Type definitions inspired by and gently adapted from TypeBox.\n * Original TypeBox created by sinclairzx81: https://github.com/sinclairzx81/typebox\n * TypeBox is licensed under MIT: https://github.com/sinclairzx81/typebox/blob/main/license\n *\n * These types provide JSON Schema compatible type refinements for TypeScript.\n * */\ninterface TSchema {}\n\n// ------------------------------------------------------------------\n// ObjectOptions\n// ------------------------------------------------------------------\ninterface TObjectOptions {\n /**\n * Defines whether additional properties are allowed beyond those explicitly defined in `properties`.\n */\n additionalProperties?: TSchema | boolean;\n /**\n * The minimum number of properties required in the object.\n */\n minProperties?: number;\n /**\n * The maximum number of properties allowed in the object.\n */\n maxProperties?: number;\n /**\n * Defines conditional requirements for properties.\n */\n dependencies?: Record<string, boolean | TSchema | string[]>;\n /**\n * Specifies properties that *must* be present if a given property is present.\n */\n dependentRequired?: Record<string, string[]>;\n /**\n * Defines schemas that apply if a specific property is present.\n */\n dependentSchemas?: Record<string, TSchema>;\n /**\n * Maps regular expressions to schemas properties matching a pattern must validate against the schema.\n */\n patternProperties?: Record<string, TSchema>;\n /**\n * A schema that all property names within the object must validate against.\n */\n propertyNames?: TSchema;\n}\n\n// ------------------------------------------------------------------\n// ArrayOptions\n// ------------------------------------------------------------------\ninterface TArrayOptions {\n /**\n * The minimum number of items allowed in the array.\n */\n minItems?: number;\n /**\n * The maximum number of items allowed in the array.\n */\n maxItems?: number;\n /**\n * A schema that at least one item in the array must validate against.\n */\n contains?: TSchema;\n /**\n * The minimum number of array items that must validate against the `contains` schema.\n */\n minContains?: number;\n /**\n * The maximum number of array items that may validate against the `contains` schema.\n */\n maxContains?: number;\n /**\n * An array of schemas, where each schema in `prefixItems` validates against items at corresponding positions from the beginning of the array.\n */\n prefixItems?: TSchema[];\n /**\n * If `true`, all items in the array must be unique.\n */\n uniqueItems?: boolean;\n}\n\n// ------------------------------------------------------------------\n// NumberOptions\n// ------------------------------------------------------------------\ninterface TNumberOptions {\n /**\n * Specifies an exclusive upper limit for the number (number must be less than this value).\n */\n exclusiveMaximum?: number | bigint;\n /**\n * Specifies an exclusive lower limit for the number (number must be greater than this value).\n */\n exclusiveMinimum?: number | bigint;\n /**\n * Specifies an inclusive upper limit for the number (number must be less than or equal to this value).\n */\n maximum?: number | bigint;\n /**\n * Specifies an inclusive lower limit for the number (number must be greater than or equal to this value).\n */\n minimum?: number | bigint;\n /**\n * Specifies that the number must be a multiple of this value.\n */\n multipleOf?: number | bigint;\n}\n\n// ------------------------------------------------------------------\n// StringOptions\n// ------------------------------------------------------------------\ntype TFormat =\n | \"date-time\"\n | \"date\"\n | \"duration\"\n | \"email\"\n | \"hostname\"\n | \"idn-email\"\n | \"idn-hostname\"\n | \"ipv4\"\n | \"ipv6\"\n | \"iri-reference\"\n | \"iri\"\n | \"json-pointer-uri-fragment\"\n | \"json-pointer\"\n | \"json-string\"\n | \"regex\"\n | \"relative-json-pointer\"\n | \"time\"\n | \"uri-reference\"\n | \"uri-template\"\n | \"url\"\n | \"uuid\";\n\ninterface TStringOptions {\n /**\n * Specifies the expected string format.\n *\n * Common values include:\n * - `base64` \u2013 Base64-encoded string.\n * - `date-time` \u2013 [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time format.\n * - `date` \u2013 [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date (YYYY-MM-DD).\n * - `duration` \u2013 [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) duration format.\n * - `email` \u2013 RFC 5321/5322 compliant email address.\n * - `hostname` \u2013 RFC 1034/1035 compliant host name.\n * - `idn-email` \u2013 Internationalized email address.\n * - `idn-hostname` \u2013 Internationalized host name.\n * - `ipv4` \u2013 IPv4 address.\n * - `ipv6` \u2013 IPv6 address.\n * - `iri` / `iri-reference` \u2013 Internationalized Resource Identifier.\n * - `json-pointer` / `json-pointer-uri-fragment` \u2013 JSON Pointer format.\n * - `json-string` \u2013 String containing valid JSON.\n * - `regex` \u2013 Regular expression syntax.\n * - `relative-json-pointer` \u2013 Relative JSON Pointer format.\n * - `time` \u2013 [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time (HH:MM:SS).\n * - `uri-reference` / `uri-template` \u2013 URI reference or template.\n * - `url` \u2013 Web URL format.\n * - `uuid` \u2013 RFC 4122 UUID string.\n *\n * May also be a custom format string.\n */\n format?: TFormat;\n /**\n * Specifies the minimum number of characters allowed in the string.\n * Must be a non-negative integer.\n */\n minLength?: number;\n /**\n * Specifies the maximum number of characters allowed in the string.\n * Must be a non-negative integer.\n */\n maxLength?: number;\n /**\n * Specifies a regular expression pattern that the string value must match.\n * Can be provided as a string (ECMA-262 regex syntax) or a `RegExp` object.\n */\n pattern?: string | RegExp;\n}\n", "# Ignore all files\n*\n\n# But don't ignore directories (so Git can traverse them)\n!*/\n\n# And don't ignore these files at any depth\n!cache.json\n!types.ts\n", "// stub schemas, specialized generators supposed to overwrite this file\nimport type { ValidationSchemas } from \"@kosmojs/api\";\nexport type { ValidationSchemas };\nexport const validationSchemas: ValidationSchemas = {};\n"],
|
|
5
|
-
"mappings": ";AAAA,SAAS,WAAAA,gBAAe;;;ACAxB,SAAS,YAAY;;;ACAd,IAAM,WAAW;AAAA,EACtB,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AAAA,EAEX,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,QAAQ;AAAA,EAER,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,UAAU;AAAA,EACV,UAAU;AACZ;;;
|
|
4
|
+
"sourcesContent": ["import { dirname } from \"node:path\";\n\nimport { pathResolver } from \"../paths\";\nimport { renderToFile } from \"../render\";\nimport type { GeneratorConstructor, ResolvedEntry } from \"../types\";\n\nimport envTpl from \"./templates/env.d.ts?as=text\";\nimport gitignoreTpl from \"./templates/gitignore.hbs\";\nimport schemasTpl from \"./templates/schemas.hbs\";\n\n/**\n * Generates stub files required by various generators.\n * Ensures cross-generator dependencies remain resolvable\n * even if specialized generators supposed to generate these files are not installed.\n * */\nexport default (): GeneratorConstructor => {\n return {\n name: \"Stub\",\n moduleImport: import.meta.filename,\n moduleConfig: undefined,\n async factory({ appRoot, sourceFolder }) {\n const generateLibFiles = async (entries: Array<ResolvedEntry>) => {\n const { createPath } = pathResolver({ appRoot, sourceFolder });\n\n /**\n * expose TRefine as a global type.\n * not supposed to be overriden by generators.\n * */\n await renderToFile(createPath.lib(\"../env.d.ts\"), envTpl, {});\n\n /**\n * deploy a default gitignore file that ignore everything,\n * except cache.json files; if file exists, do not override.\n * */\n await renderToFile(\n createPath.lib(\"../.gitignore\"),\n gitignoreTpl,\n {},\n { overwrite: false },\n );\n\n for (const { kind, entry } of entries) {\n if (kind === \"apiRoute\") {\n // Generating stub schemas file.\n // It is required by various generators, e.g. api-generator, fetch-generator.\n // Specialized generators (e.g. typebox-generator) may override this later.\n await renderToFile(\n createPath.libApi(dirname(entry.file), \"schemas.ts\"),\n schemasTpl,\n { route: entry },\n { overwrite: false },\n );\n }\n }\n };\n\n return {\n watch: generateLibFiles,\n build: generateLibFiles,\n };\n },\n };\n};\n", "import { join } from \"node:path\";\n\nimport { defaults } from \"./defaults\";\n\ntype CreateImport = Record<\n | \"coreApi\"\n | \"src\"\n | \"config\"\n | \"api\"\n | \"pages\"\n | \"lib\"\n | \"libApi\"\n | \"libEntry\",\n (...a: Array<string>) => string\n>;\n\nexport const createTsconfigPaths = (prefix: string) => {\n return {\n [`${defaults.appPrefix}/*`]: [`${prefix}/*`],\n [`${defaults.srcPrefix}/*`]: [`${prefix}/${defaults.srcDir}/*`],\n [`${defaults.libPrefix}/*`]: [\n `${prefix}/${defaults.libDir}/${defaults.srcDir}/*`,\n ],\n };\n};\n\nexport const pathResolver = ({\n appRoot,\n sourceFolder,\n}: {\n appRoot?: string;\n sourceFolder: string;\n}): {\n createPath: Record<\n | \"coreApi\"\n | \"src\"\n | \"config\"\n | \"api\"\n | \"pages\"\n | \"entry\"\n | \"lib\"\n | \"libApi\"\n | \"libEntry\"\n | \"libPages\",\n (...a: Array<string>) => string\n >;\n createImport: CreateImport;\n createImportHelper: (k: keyof CreateImport, ...a: Array<string>) => string;\n} => {\n const createPath = (...a: Array<string>) => {\n return appRoot ? join(appRoot, ...a) : join(...a);\n };\n\n const createImport: CreateImport = {\n coreApi(...a) {\n return join(defaults.appPrefix, defaults.coreDir, defaults.apiDir, ...a);\n },\n src(...a) {\n return join(defaults.srcPrefix, sourceFolder, ...a);\n },\n config(...a) {\n return this.src(defaults.configDir, ...a);\n },\n api(...a) {\n return this.src(defaults.apiDir, ...a);\n },\n pages(...a) {\n return this.src(defaults.pagesDir, ...a);\n },\n lib(...a) {\n return join(defaults.libPrefix, sourceFolder, ...a);\n },\n libApi(...a) {\n return this.lib(defaults.apiDir, ...a);\n },\n libEntry(...a) {\n return this.lib(defaults.entryDir, ...a);\n },\n };\n\n return {\n createPath: {\n coreApi(...a) {\n return createPath(defaults.coreDir, defaults.apiDir, ...a);\n },\n src(...a) {\n return createPath(defaults.srcDir, sourceFolder, ...a);\n },\n api(...a) {\n return this.src(defaults.apiDir, ...a);\n },\n pages(...a) {\n return this.src(defaults.pagesDir, ...a);\n },\n config(...a) {\n return this.src(defaults.configDir, ...a);\n },\n entry(...a) {\n return this.src(defaults.entryDir, ...a);\n },\n lib(...a) {\n return createPath(defaults.libDir, defaults.srcDir, sourceFolder, ...a);\n },\n libApi(...a) {\n return this.lib(defaults.apiDir, ...a);\n },\n libEntry(...a) {\n return this.lib(defaults.entryDir, ...a);\n },\n libPages(...a) {\n return this.lib(defaults.pagesDir, ...a);\n },\n },\n createImport,\n createImportHelper: (key, ...a) => {\n // Handlebars always appends an options object as the last argument,\n // slice it off before passing args to createImport\n return createImport[key](...a.slice(0, -1));\n },\n };\n};\n", "export const defaults = {\n appPrefix: \"~\",\n srcPrefix: \"@\",\n libPrefix: \"_\",\n\n coreDir: \"core\",\n srcDir: \"src\",\n libDir: \"lib\",\n\n configDir: \"config\",\n apiDir: \"api\",\n pagesDir: \"pages\",\n entryDir: \"entry\",\n fetchDir: \"fetch\",\n};\n", "import { mkdir, readFile, writeFile } from \"node:fs/promises\";\nimport { dirname, join } from \"node:path\";\n\nimport crc from \"crc/crc32\";\nimport handlebars from \"handlebars\";\n\nimport { pathExists } from \"./fs\";\nimport type { PageRoute } from \"./types\";\n\nexport type RenderOptions = {\n noEscape?: boolean;\n // handlebars instance\n renderer?: typeof handlebars;\n};\n\nexport type FactoryOptions = RenderOptions & {\n /**\n * Controls whether to overwrite an existing file.\n * - `false`: skip writing if the file already exists\n * - `true` (default): always overwrite\n * - function: custom logic to decide whether to overwrite, based on current file content\n */\n overwrite?: boolean | ((fileContent: string) => boolean);\n};\n\nexport const render = <Context = object>(\n template: string,\n context: Context,\n options?: RenderOptions,\n): string => {\n const { noEscape = true, renderer = handlebars } = { ...options };\n return renderer.compile(template, { noEscape })(context);\n};\n\nexport const renderToFile = async <Context = object>(\n file: string,\n template: string,\n context: Context,\n options?: FactoryOptions,\n): Promise<void> => {\n const content = render(template, context, options);\n\n /**\n * Two fs calls (exists + read) are worth it to avoid touching the file\n * and triggering watchers unnecessarily.\n * */\n if (await pathExists(file)) {\n const { overwrite = true } = { ...options };\n if (overwrite === false) {\n return;\n }\n const fileContent = await readFile(file, \"utf8\");\n if (typeof overwrite === \"function\" && !overwrite(fileContent)) {\n return;\n }\n if (crc(content) === crc(fileContent)) {\n return;\n }\n }\n\n await mkdir(dirname(file), { recursive: true });\n await writeFile(file, content, \"utf8\");\n};\n\nexport const renderFactory = (\n options?: FactoryOptions & {\n outdir?: string;\n partials?: Record<string, string>;\n helpers?: Record<string, (...a: Array<never>) => unknown>;\n },\n) => {\n const renderer = handlebars.create();\n\n renderer.registerPartial({ ...options?.partials } as never);\n\n renderer.registerHelper({ ...options?.helpers } as never);\n\n return {\n render<Context = object>(\n template: string,\n context: Context,\n selfOoptions?: FactoryOptions,\n ) {\n return render(template, context, {\n renderer,\n ...options,\n ...selfOoptions,\n });\n },\n async renderToFile<Context = object>(\n file: string,\n template: string,\n context: Context,\n selfOoptions?: FactoryOptions,\n ) {\n return renderToFile(\n options?.outdir ? join(options.outdir, file) : file,\n template,\n context,\n { renderer, ...options, ...selfOoptions },\n );\n },\n };\n};\n\nexport const renderHelpers = {\n createParamsLiteral: (params: PageRoute[\"params\"]) => {\n return params.schema\n .map((p) => {\n return p.kind === \"splat\"\n ? `${p.const}?: Array<string | number>`\n : p.kind === \"optional\"\n ? `${p.const}?: string | number`\n : `${p.const}: string | number`;\n })\n .join(\", \");\n },\n};\n", "import { access, constants } from \"node:fs/promises\";\n\nexport const pathExists = async (path: string): Promise<boolean> => {\n try {\n await access(path, constants.F_OK);\n return true;\n } catch {\n return false;\n }\n};\n", "/**\n * Enhances base TypeScript types with JSON Schema validation constraints.\n * Allows declaring refined types that carry validation metadata for runtime\n * schema validation while maintaining full TypeScript type safety.\n *\n * Useful for generating validation schemas and ensuring\n * data conforms to specific business rules beyond basic type checking.\n * */\nexport declare global {\n type TRefine<\n T extends unknown[] | number | string | object,\n _ extends T extends unknown[]\n ? TArrayOptions\n : T extends number\n ? TNumberOptions\n : T extends string\n ? TStringOptions\n : TObjectOptions,\n > = T;\n}\n\n/**\n * Type definitions inspired by and gently adapted from TypeBox.\n * Original TypeBox created by sinclairzx81: https://github.com/sinclairzx81/typebox\n * TypeBox is licensed under MIT: https://github.com/sinclairzx81/typebox/blob/main/license\n *\n * These types provide JSON Schema compatible type refinements for TypeScript.\n * */\ninterface TSchema {}\n\n// ------------------------------------------------------------------\n// ObjectOptions\n// ------------------------------------------------------------------\ninterface TObjectOptions {\n /**\n * Defines whether additional properties are allowed beyond those explicitly defined in `properties`.\n */\n additionalProperties?: TSchema | boolean;\n /**\n * The minimum number of properties required in the object.\n */\n minProperties?: number;\n /**\n * The maximum number of properties allowed in the object.\n */\n maxProperties?: number;\n /**\n * Defines conditional requirements for properties.\n */\n dependencies?: Record<string, boolean | TSchema | string[]>;\n /**\n * Specifies properties that *must* be present if a given property is present.\n */\n dependentRequired?: Record<string, string[]>;\n /**\n * Defines schemas that apply if a specific property is present.\n */\n dependentSchemas?: Record<string, TSchema>;\n /**\n * Maps regular expressions to schemas properties matching a pattern must validate against the schema.\n */\n patternProperties?: Record<string, TSchema>;\n /**\n * A schema that all property names within the object must validate against.\n */\n propertyNames?: TSchema;\n}\n\n// ------------------------------------------------------------------\n// ArrayOptions\n// ------------------------------------------------------------------\ninterface TArrayOptions {\n /**\n * The minimum number of items allowed in the array.\n */\n minItems?: number;\n /**\n * The maximum number of items allowed in the array.\n */\n maxItems?: number;\n /**\n * A schema that at least one item in the array must validate against.\n */\n contains?: TSchema;\n /**\n * The minimum number of array items that must validate against the `contains` schema.\n */\n minContains?: number;\n /**\n * The maximum number of array items that may validate against the `contains` schema.\n */\n maxContains?: number;\n /**\n * An array of schemas, where each schema in `prefixItems` validates against items at corresponding positions from the beginning of the array.\n */\n prefixItems?: TSchema[];\n /**\n * If `true`, all items in the array must be unique.\n */\n uniqueItems?: boolean;\n}\n\n// ------------------------------------------------------------------\n// NumberOptions\n// ------------------------------------------------------------------\ninterface TNumberOptions {\n /**\n * Specifies an exclusive upper limit for the number (number must be less than this value).\n */\n exclusiveMaximum?: number | bigint;\n /**\n * Specifies an exclusive lower limit for the number (number must be greater than this value).\n */\n exclusiveMinimum?: number | bigint;\n /**\n * Specifies an inclusive upper limit for the number (number must be less than or equal to this value).\n */\n maximum?: number | bigint;\n /**\n * Specifies an inclusive lower limit for the number (number must be greater than or equal to this value).\n */\n minimum?: number | bigint;\n /**\n * Specifies that the number must be a multiple of this value.\n */\n multipleOf?: number | bigint;\n}\n\n// ------------------------------------------------------------------\n// StringOptions\n// ------------------------------------------------------------------\ntype TFormat =\n | \"date-time\"\n | \"date\"\n | \"duration\"\n | \"email\"\n | \"hostname\"\n | \"idn-email\"\n | \"idn-hostname\"\n | \"ipv4\"\n | \"ipv6\"\n | \"iri-reference\"\n | \"iri\"\n | \"json-pointer-uri-fragment\"\n | \"json-pointer\"\n | \"json-string\"\n | \"regex\"\n | \"relative-json-pointer\"\n | \"time\"\n | \"uri-reference\"\n | \"uri-template\"\n | \"url\"\n | \"uuid\";\n\ninterface TStringOptions {\n /**\n * Specifies the expected string format.\n *\n * Common values include:\n * - `base64` \u2013 Base64-encoded string.\n * - `date-time` \u2013 [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time format.\n * - `date` \u2013 [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date (YYYY-MM-DD).\n * - `duration` \u2013 [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) duration format.\n * - `email` \u2013 RFC 5321/5322 compliant email address.\n * - `hostname` \u2013 RFC 1034/1035 compliant host name.\n * - `idn-email` \u2013 Internationalized email address.\n * - `idn-hostname` \u2013 Internationalized host name.\n * - `ipv4` \u2013 IPv4 address.\n * - `ipv6` \u2013 IPv6 address.\n * - `iri` / `iri-reference` \u2013 Internationalized Resource Identifier.\n * - `json-pointer` / `json-pointer-uri-fragment` \u2013 JSON Pointer format.\n * - `json-string` \u2013 String containing valid JSON.\n * - `regex` \u2013 Regular expression syntax.\n * - `relative-json-pointer` \u2013 Relative JSON Pointer format.\n * - `time` \u2013 [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time (HH:MM:SS).\n * - `uri-reference` / `uri-template` \u2013 URI reference or template.\n * - `url` \u2013 Web URL format.\n * - `uuid` \u2013 RFC 4122 UUID string.\n *\n * May also be a custom format string.\n */\n format?: TFormat;\n /**\n * Specifies the minimum number of characters allowed in the string.\n * Must be a non-negative integer.\n */\n minLength?: number;\n /**\n * Specifies the maximum number of characters allowed in the string.\n * Must be a non-negative integer.\n */\n maxLength?: number;\n /**\n * Specifies a regular expression pattern that the string value must match.\n * Can be provided as a string (ECMA-262 regex syntax) or a `RegExp` object.\n */\n pattern?: string | RegExp;\n}\n", "# Ignore all files\n*\n\n# But don't ignore directories (so Git can traverse them)\n!*/\n\n# And don't ignore these files at any depth\n!cache.json\n!types.ts\n", "// stub schemas, specialized generators supposed to overwrite this file\nimport type { ValidationSchemas } from \"@kosmojs/api\";\nexport type { ValidationSchemas };\nexport const validationSchemas: ValidationSchemas = {};\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
6
|
"names": ["dirname", "join", "dirname"]
|
|
7
7
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { IncomingMessage, ServerResponse } from "node:http";
|
|
2
2
|
import type { ResolvedType } from "tfusion";
|
|
3
3
|
import type { ResolvedConfig } from "vite";
|
|
4
|
+
import type { HTTPMethod, ValidationTarget } from "@kosmojs/api";
|
|
4
5
|
export type PluginOptions = {
|
|
5
6
|
generators?: Array<GeneratorConstructor>;
|
|
6
|
-
formatters?: Array<FormatterConstructor>;
|
|
7
7
|
/**
|
|
8
8
|
* Name to use for custom runtime validation refinements.
|
|
9
9
|
* @default "TRefine"
|
|
@@ -18,25 +18,28 @@ export type PluginOptionsResolved = {
|
|
|
18
18
|
outDir: string;
|
|
19
19
|
command: ResolvedConfig["command"];
|
|
20
20
|
generators: Array<GeneratorConstructor>;
|
|
21
|
-
formatters: Array<Formatter>;
|
|
22
21
|
refineTypeName: string;
|
|
23
22
|
watcher: {
|
|
24
23
|
delay: number;
|
|
25
24
|
options?: import("vite").WatchOptions;
|
|
26
25
|
};
|
|
27
|
-
} & Omit<PluginOptions, "generators" | "
|
|
26
|
+
} & Omit<PluginOptions, "generators" | "refineTypeName">;
|
|
27
|
+
export type PathTokenStaticPart = {
|
|
28
|
+
type: "static";
|
|
29
|
+
value: string;
|
|
30
|
+
};
|
|
31
|
+
export type PathTokenParamPart = {
|
|
32
|
+
type: "param";
|
|
33
|
+
kind: "required" | "optional" | "splat";
|
|
34
|
+
name: string;
|
|
35
|
+
/** codegen-safe identifier: sanitized name + crc suffix when needed */
|
|
36
|
+
const: string;
|
|
37
|
+
};
|
|
28
38
|
export type PathToken = {
|
|
39
|
+
kind: "static" | "param" | "mixed";
|
|
29
40
|
orig: string;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
ext: string;
|
|
33
|
-
param?: {
|
|
34
|
-
name: string;
|
|
35
|
-
const: string;
|
|
36
|
-
isRequired?: boolean;
|
|
37
|
-
isOptional?: boolean;
|
|
38
|
-
isRest?: boolean;
|
|
39
|
-
};
|
|
41
|
+
pattern: string;
|
|
42
|
+
parts: Array<PathTokenStaticPart | PathTokenParamPart>;
|
|
40
43
|
};
|
|
41
44
|
/**
|
|
42
45
|
* route entry as found in file-system, before any processing
|
|
@@ -48,6 +51,7 @@ export type RouteEntry = {
|
|
|
48
51
|
file: string;
|
|
49
52
|
fileFullpath: string;
|
|
50
53
|
pathTokens: Array<PathToken>;
|
|
54
|
+
pathPattern: string;
|
|
51
55
|
};
|
|
52
56
|
export type NestedRouteEntry = {
|
|
53
57
|
index: Omit<RouteEntry, "fileFullpath"> | undefined;
|
|
@@ -58,21 +62,20 @@ export type NestedRouteEntry = {
|
|
|
58
62
|
export type ApiRoute = RouteEntry & {
|
|
59
63
|
params: {
|
|
60
64
|
id: string;
|
|
61
|
-
schema: Array<
|
|
65
|
+
schema: Array<PathTokenParamPart>;
|
|
62
66
|
resolvedType: ResolvedType | undefined;
|
|
63
67
|
};
|
|
64
68
|
numericParams: Array<string>;
|
|
65
69
|
optionalParams: boolean;
|
|
66
70
|
methods: Array<string>;
|
|
67
71
|
typeDeclarations: Array<TypeDeclaration>;
|
|
68
|
-
|
|
69
|
-
responseTypes: Array<ResponseType>;
|
|
72
|
+
validationDefinitions: Array<ValidationDefinition>;
|
|
70
73
|
referencedFiles: Array<string>;
|
|
71
74
|
};
|
|
72
75
|
export type ApiUse = RouteEntry;
|
|
73
76
|
export type PageRoute = RouteEntry & {
|
|
74
77
|
params: {
|
|
75
|
-
schema: Array<
|
|
78
|
+
schema: Array<PathTokenParamPart>;
|
|
76
79
|
};
|
|
77
80
|
};
|
|
78
81
|
export type PageLayout = RouteEntry;
|
|
@@ -89,20 +92,34 @@ export type ResolvedEntry = {
|
|
|
89
92
|
kind: "pageLayout";
|
|
90
93
|
entry: PageLayout;
|
|
91
94
|
};
|
|
92
|
-
export type
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
95
|
+
export type ValidationDefinition = {
|
|
96
|
+
method: HTTPMethod;
|
|
97
|
+
runtimeValidation?: boolean | undefined;
|
|
98
|
+
customErrors?: Record<string, string> | undefined;
|
|
99
|
+
} & ({
|
|
100
|
+
target: "response";
|
|
101
|
+
variants: Array<{
|
|
102
|
+
id: string;
|
|
103
|
+
status: number;
|
|
104
|
+
contentType: string | undefined;
|
|
105
|
+
body: string | undefined;
|
|
106
|
+
resolvedType?: ResolvedType | undefined;
|
|
107
|
+
}>;
|
|
108
|
+
} | {
|
|
109
|
+
target: Exclude<ValidationTarget, "response">;
|
|
110
|
+
contentType?: string | undefined;
|
|
111
|
+
schema: {
|
|
112
|
+
id: string;
|
|
113
|
+
text: string;
|
|
114
|
+
resolvedType?: ResolvedType | undefined;
|
|
115
|
+
};
|
|
116
|
+
});
|
|
117
|
+
export type RequestValidationDefinition = Exclude<ValidationDefinition, {
|
|
118
|
+
target: "response";
|
|
119
|
+
}>;
|
|
120
|
+
export type ResponseValidationDefinition = Extract<ValidationDefinition, {
|
|
121
|
+
target: "response";
|
|
122
|
+
}>;
|
|
106
123
|
export type TypeDeclaration = {
|
|
107
124
|
text: string;
|
|
108
125
|
importDeclaration?: {
|
|
@@ -143,7 +160,7 @@ type GeneratorFactoryReturn = {
|
|
|
143
160
|
};
|
|
144
161
|
export type GeneratorFactory<T = undefined> = T extends undefined ? (options: PluginOptionsResolved) => Promise<GeneratorFactoryReturn> : (options: PluginOptionsResolved, extra: T) => Promise<GeneratorFactoryReturn>;
|
|
145
162
|
export type GeneratorConstructor = {
|
|
146
|
-
|
|
163
|
+
slot?: "api" | "fetch" | "ssr";
|
|
147
164
|
name: string;
|
|
148
165
|
/**
|
|
149
166
|
* Specifies the module import path and provided config for worker thread imports.
|
|
@@ -155,6 +172,12 @@ export type GeneratorConstructor = {
|
|
|
155
172
|
moduleImport: string;
|
|
156
173
|
moduleConfig: unknown;
|
|
157
174
|
factory: GeneratorFactory;
|
|
175
|
+
/**
|
|
176
|
+
* Package dependencies required by this generator.
|
|
177
|
+
* The dev plugin checks installation status before running.
|
|
178
|
+
* */
|
|
179
|
+
dependencies?: Record<string, string>;
|
|
180
|
+
devDependencies?: Record<string, string>;
|
|
158
181
|
options?: {
|
|
159
182
|
/**
|
|
160
183
|
* Enables type resolution for generators that require fully resolved type information.
|
|
@@ -165,12 +188,6 @@ export type GeneratorConstructor = {
|
|
|
165
188
|
resolveTypes?: boolean;
|
|
166
189
|
};
|
|
167
190
|
};
|
|
168
|
-
export type Formatter = (text: string, filePath: string) => string;
|
|
169
|
-
export type FormatterConstructor<ModuleConfig extends object | undefined = undefined> = {
|
|
170
|
-
moduleImport: string;
|
|
171
|
-
moduleConfig: ModuleConfig;
|
|
172
|
-
formatter: Formatter;
|
|
173
|
-
};
|
|
174
191
|
type RouterSetup<R> = {
|
|
175
192
|
clientRouter: () => R | Promise<R>;
|
|
176
193
|
serverRouter: (ssrOpts: {
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { PathToken, RouteEntry } from "../types";
|
|
2
|
-
export declare const pathTokensFactory: (path: string) => Array<PathToken>;
|
|
3
|
-
/**
|
|
4
|
-
* Sort routes so that more specific (static) paths come before dynamic ones.
|
|
5
|
-
*
|
|
6
|
-
* This is important because dynamic segments
|
|
7
|
-
* (e.g., `:id` or `*catchall`) are more general,
|
|
8
|
-
* and can match values that should be routed to more specific static paths.
|
|
9
|
-
*
|
|
10
|
-
* For example, given:
|
|
11
|
-
* - `/users/account`
|
|
12
|
-
* - `/users/:id`
|
|
13
|
-
*
|
|
14
|
-
* If `/users/:id` comes first, visiting `/users/account` would incorrectly match it,
|
|
15
|
-
* treating "account" as an `id`. So static routes must take precedence.
|
|
16
|
-
* */
|
|
17
|
-
export declare const sortRoutes: (a: Pick<RouteEntry, "name" | "pathTokens">, b: Pick<RouteEntry, "name" | "pathTokens">) => number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type ParamsT1243294354 = {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type ParamsT1243294354 = {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type ParamsT2155046657 = {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type ParamsT2155046657 = {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/pkg/test/@fixtures/app/src/test/pages/admin/[tenant]/resources/[[type]]/[...path]/index.d.ts
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/pkg/test/@fixtures/app/src/test/pages/admin/[tenant]/settings/permissions/index.d.ts
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/pkg/test/@fixtures/app/src/test/pages/news/[category]/articles/[...articlePath]/index.d.ts
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/pkg/test/@fixtures/app/src/test/pages/portal/[clientId]/reports/[reportType]/layout.d.ts
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|