A scripture editing application built with Tauri, React, and TypeScript in Vite.
This project is organized into three main directories:
src-core/: Core library with domain models, data structures, and utility functionssrc/: Client UI code with React componentssrc-tauri/: Tauri-specific code for the desktop application
For more details on the structure and how to use it, see SRC-CORE-STRUCTURE.md.
This project uses Jest for testing. The configuration is defined in jest.config.ts at the root of the project.
pnpm test- Run all testspnpm test:watch- Run tests in watch modepnpm test:coverage- Run tests with coverage report
Tests are located in __tests__ directories within both src and src-core. Test files should follow the naming convention *.test.ts or *.test.tsx.
Example:
// src/__tests__/example.test.ts
describe('Example test', () => {
it('should work', () => {
expect(1 + 1).toBe(2);
});
});This project uses Biome for code formatting and linting. The configuration is defined in biome.json at the root of the project.
pnpm format- Format all files using Biomepnpm lint- Lint all files using Biomepnpm check- Run Biome check with auto-fixespnpm biome- Comprehensive check that formats, lints, and organizes imports in one command
To format all files in the project:
pnpm formatTo run the comprehensive check (recommended):
pnpm biome