chore: create manifest generation task (#2088)

This commit is contained in:
Reed von Redwitz
2023-11-30 17:07:00 +01:00
committed by GitHub
parent 9e11c5c56b
commit a0483bc357
38 changed files with 168 additions and 79 deletions
+6 -1
View File
@@ -1,6 +1,6 @@
import { gte, join, relative, semverParse, walk, WalkEntry } from "./deps.ts";
export { generate, type Manifest } from "./manifest.ts";
import type { Manifest } from "./manifest.ts";
import { generate, type Manifest } from "./manifest.ts";
import { error } from "./error.ts";
const MIN_DENO_VERSION = "1.31.0";
const TEST_FILE_PATTERN = /[._]test\.(?:[tj]sx?|[mc][tj]s)$/;
@@ -92,3 +92,8 @@ export async function collect(
return { routes, islands };
}
export async function manifest(path: string, ignoreFilePattern?: RegExp) {
const manifest = await collect(path, ignoreFilePattern);
await generate(path, manifest);
}