Quarto is an open-source scientific and technical publishing system built on Pandoc. This repository contains the source code for various parts of the Quarto ecosystem, with the main CLI implementation housed in a separate repository (quarto-cli).
- VS Code Extension: The primary VS Code extension for working with Quarto documents
- Writer: An experimental web-based editor for Quarto documents (not used in production yet)
- LSP: Language server for Quarto documents
- Core Packages: Shared libraries used across multiple components
Each component has specific development guidelines. Refer to the corresponding CONTRIBUTING.md files:
- VS Code extension: apps/vscode/CONTRIBUTING.md - Contains detailed instructions for building, debugging, and releasing the extension
The repository is organized as a monorepo using Yarn workspaces and Turborepo for build orchestration:
apps/: Contains standalone applicationsvscode/: VS Code extension for Quartowriter/: Experimental web-based Quarto editor (not in production, ignore this for now)lsp/: Language Server Protocol implementationpanmirror/: WYSIWYG editor component
packages/: Contains shared librariescore/: Core functionality shared across packageseditor-*/: Editor-related packagesquarto-core/: Quarto-specific core functionality- Other utility packages
Quarto uses turborepo to manage the monorepo build process:
turbo.json: Defines the pipeline configuration for common tasks- Common commands:
yarn build: Builds all packages and applicationsyarn dev-writer: Runs the writer app in development modeyarn dev-vscode: Runs the VS Code extension in development modeyarn lint: Runs linters across all workspacesyarn build-vscode: Builds only the VS Code extension and its dependencies
The turborepo pipeline helps optimize build times by caching build artifacts and respecting the dependency graph between packages.
Testing procedures vary by component:
- VS Code extension: Run
yarn test-vscode [--label 'label' --grep 'pattern']to compile test files and run them with the vscode-test CLI- Read the test configuration file for valid labels
- Other components have specific test commands defined in their respective package.json files