mirror of
https://github.com/HananoshikaYomaru/openfreebooks.git
synced 2026-11-13 04:55:51 +00:00
Update build scripts and enhance development workflow: Revise package.json to streamline build commands, replacing deprecated scripts with new chapter-specific build commands. Update CONTRIBUTING.md to clarify local development instructions and improve chapter sync processes. Enhance README.md with updated serving and build commands for better user guidance. Add new types for Bun in devDependencies and update the feed and sitemap to reflect recent content changes.
This commit is contained in:
parent
61963350e7
commit
5ac8e330ca
19 changed files with 501 additions and 125 deletions
15
scripts/validate-curriculum.test.ts
Normal file
15
scripts/validate-curriculum.test.ts
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import { describe, expect, it } from "bun:test";
|
||||
import { validateCurriculum } from "./validate-curriculum";
|
||||
|
||||
describe("validate-curriculum", () => {
|
||||
it("has no curriculum validation errors", async () => {
|
||||
const result = await validateCurriculum();
|
||||
if (result.errors.length > 0) {
|
||||
const details = result.errors
|
||||
.map((error) => `[${error.file}] ${error.message}`)
|
||||
.join("\n");
|
||||
throw new Error(`Curriculum validation failed:\n${details}`);
|
||||
}
|
||||
expect(result.errors).toHaveLength(0);
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue