- tasks/tasks-prd-vitepress-llms-concatenator.md
Relevant Files
scripts/generate-llms-txt.js - Main CLI script for processing VitePress documentation into llms.txt filesscripts/generate-llms-txt.test.js - Unit tests for the main CLI scriptlib/vitepress-parser.js - Module for parsing VitePress config.js and extracting sidebar structure (updated with logging integration)lib/vitepress-parser.test.js - Unit tests for VitePress configuration parsinglib/logger.js - Comprehensive logging infrastructure with error handling, custom error classes, and performance timinglib/version-validator.js - Version parameter validation and processing with support for latest/all keywordslib/markdown-processor.js - Module for processing markdown files, includes, and transformationslib/markdown-processor.test.js - Unit tests for markdown processing functionalitylib/template-generator.js - Module for generating section templates with contextual metadatalib/template-generator.test.js - Unit tests for template generationlib/file-utils.js - Utility functions for file operations and path resolutionlib/file-utils.test.js - Unit tests for file utility functionsscripts/generate-llms-txt.js - Main CLI script with comprehensive option handling and workflow orchestrationdocs/README-vitepress-llms-concatenator.md - Complete documentation with usage examples and architecture detailspackage.json - Updated with new scripts and dependencies (commander package, ES modules support, CLI scripts)
Notes
- Unit tests should typically be placed alongside the code files they are testing
- Use
npm test or yarn test to run the full test suite - Use
npm test -- --testPathPattern=filename to run specific test files - The main CLI script will be executable via
yarn generate-llms-txt [version]
Tasks