Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Convert remainder of library to TypeScript, Vite build, include type checking in CI #158

Merged
merged 18 commits into from
Jan 17, 2023

Commits on Jan 13, 2023

  1. Rename src/*.js to .ts

    (I've learned my lesson from enketo#157, hopefully this will make it easier to review!)
    eyelidlessness committed Jan 13, 2023
    Configuration menu
    Copy the full SHA
    d8523aa View commit details
    Browse the repository at this point in the history
  2. Include app/src in TypeScript and ESLint configs

    Adds separate test-specific config for Vitest's globals
    eyelidlessness committed Jan 13, 2023
    Configuration menu
    Copy the full SHA
    1f4bec0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bbad22b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6142aa6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d220372 View commit details
    Browse the repository at this point in the history
  6. Improve naming in language.ts

    While adding types, I found some of these names fairly hard to understand. There's some bikeshedding here in terms of name length, of course, but I do think this helps make more of the code self-documenting
    eyelidlessness committed Jan 13, 2023
    Configuration menu
    Copy the full SHA
    25fd47f View commit details
    Browse the repository at this point in the history
  7. Add/fix types in markdown.ts, fix linter warnings

    Again there may be some subjective choices (i.e. `ignoreMatch` and the minor regex changes to avoid passing unnecessary capture groups to replacer functions), but I think it makes the intent more clear
    eyelidlessness committed Jan 13, 2023
    Configuration menu
    Copy the full SHA
    e4fba71 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    75ca2fc View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    1fe2297 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    686aed7 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    691e564 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    0df3047 View commit details
    Browse the repository at this point in the history
  13. Remove build-docs

    Per discussion, the README is sufficient and more useful documentation
    eyelidlessness committed Jan 13, 2023
    Configuration menu
    Copy the full SHA
    874b4b8 View commit details
    Browse the repository at this point in the history
  14. Fix build, a few errors found in core and express

    - Fixes Vite build
    - Fixes `tsc`
        - Adds types for config/build.shared.js
        - Uses shared build config where possible
        - Adds typedef emit
    - Fixes reference to `config.json` which works locally but failed in CI
    eyelidlessness committed Jan 13, 2023
    Configuration menu
    Copy the full SHA
    5af98f3 View commit details
    Browse the repository at this point in the history
  15. Update README

    eyelidlessness committed Jan 13, 2023
    Configuration menu
    Copy the full SHA
    6ad645b View commit details
    Browse the repository at this point in the history
  16. Mark internal exports as package-private

    This also removes backwards compatibility considerations for those
    eyelidlessness committed Jan 13, 2023
    Configuration menu
    Copy the full SHA
    b5decbb View commit details
    Browse the repository at this point in the history
  17. Fix dev server script

    eyelidlessness committed Jan 13, 2023
    Configuration menu
    Copy the full SHA
    ea36a5d View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    d565cb0 View commit details
    Browse the repository at this point in the history