CLI Client For The Same Functionality #20
Replies: 3 comments 6 replies
-
I will try to do this when I am free. @iamarnas what do you think |
Beta Was this translation helpful? Give feedback.
-
@raveesh-me HI, |
Beta Was this translation helpful? Give feedback.
-
Is there a way of runing this directly from a flutter project as a script ? I personaly use Intelij, other developers use VS. So i'm in this position, where I would rather have the script generation, decoupled from the plugin itself. I.e. if it was a npm plugin, i would call be able to call something like I was thinking of forking and seeing if it would be a simple call, but it looks like terminal and window, are VS specific elements and coupled into the file generation side of things. |
Beta Was this translation helpful? Give feedback.
-
Ideal Use Case
As an engineering manager,
I want to maintain a single JSON file in my codebase called
all_models.json
and have build_runner watch it for changes, generate all the model files usingjson to dart model
and then generate the.g.dart
files for json_serializable.This will improv the cleanliness of my project like crazy..
Most Immediate Use Case
While the above use case will be crazy good, for now I could get a script to do the
all_models.json
tojson to model
conversion and maybe write a watcher myself to run that script on changes to json file, and the build_runner watcher will then do its thing.The only missing piece of the puzzle, is a cli interface and a binary for this amazing vscode plugin, but then again if there was a way to use this plugin as a cli interface via a vscode api that I dont know about, that would be a third layer of cool without even bothering you to lift a finger!
Beta Was this translation helpful? Give feedback.
All reactions