Tags: flarebyte/pico-accountancy
Tags
chore: Node 22/ES2024 upgrade, deps, zod v4, v0.4.0 (#34) * Adds AGENTS.md * docs: add responsibility headers to src files * docs: add CODE_ANALYSIS.md with features and anatomy overview * Split broth model * Migrating to latest ts * Update package.json * Adds gitignore and update yarn.lock * chore: bump version to 0.4.0 and set Node >=22 * chore: set version 0.4.0 in baldrick-broth-model.yaml and clear model in broth.yaml * lint fix with biome * chore(lint): fix Biome issues and update schema; adopt template literals and type-only imports * test: add smoke tests for prod deps (commander, fs-jetpack, moment, zod); remove dummy test * chore(deps): upgrade commander from 10.0.0 to 14.0.1 * chore(deps): upgrade moment from 2.29.4 to 2.30.1 * Auto migration with npx zod-v3-to-v4 * Fix linting * chore(zod): adapt error formatter to v4 codes (invalid_value, invalid_key/element) with backward compatibility * Adds image to README.md * docs(agents): add branching policy to avoid creating branches without explicit approval
Create a backward compatible solution with 2022 version and before (#28) * Uses the string.js dasherize for backward compatability * Adds a final line return for each CSV file * adds skeleton of code for todo * Adds todo command * Add pest test for corrupted qif * Adds sample with missing field * Pick up missing fields and exit with 1 * upgrade outdated * Run pest and zest in CI * pest tests for check and todo help * Remove dependency on scc for pest CI * Check error format for missing field and test reporter to CI * Should use newer version of pest with better mocha support * Adds description in Usage * Tweaks run check pest test
Modernize software stack to use baldrick-broth (#27) * Adds broth make file * After broth normalisation * Normalise package.json * Install dependencies * wip refactor * Adds zod accountancy model * Backward compatible accountancy model * Adds accountancy IO * Across the board refcatoring * Uses picoAccountancy * small refactoring tweaks * Move back and forth code to keep things simple * Adds fixture in pest-spec * Adds pest spec for cli help * pest snapshot for for cli help * Split convert in multiple action files * Adds separate commands bank credit debit expenses total * Adds pest test for CLI * Save current snapshot for bank * Save current snapshot for bank * A better toCSV * Adds back a collapse white spaces * setup right column name * Tests for credit debit and expenses * Generate json schema from zod * Delete data folder * Upgrades dependencies * Refactoring after some linting * Refactor concat to spread operator * Replace nulls by undefined * Update CONTRIBUTING.md * Tweaks baldrick-broth * Adds USAGE.md * Improve README * Fix markdown for README and USAGE
Migration to typescript (#2) * Update readme * moving to typescript * Adds back schema * Upgrades dependencies * Add Row type * three types of row * Adds explicit Row types * Migrates to typescript * after fix but failing tests * Change expectations * Fixes sum upgrade issues * Split functions in smaller ones * fixes README and cli * Adds test for todo in makeCreditId * Upgrades cli version