tinyplex / tinybase

The reactive data store for local‑first apps.
https://tinybase.org
MIT License
3.71k stars 77 forks source link

Develop a Vite plugin for getStoreApi #135

Open gunta opened 7 months ago

gunta commented 7 months ago

Is your feature request related to a problem? Please describe. Running the tinybase command line each time may get a bit tedious.

Describe the solution you'd like Watch the schema files automatically with a Vite plugin.

jamesgpearce commented 6 months ago

This is possible, but generally I am hoping people move to using the schema-based typing (https://tinybase.org/guides/schemas-and-persistence/schema-based-typing/) rather than the code generation approach (in the long run).

Leaving the issue open though.

gunta commented 6 months ago

I see! Perhaps it would be nice to add to the documentation the pro/cons of each approach