google / google/json_serializable.dart

Question about how to automate generation of .g.dart files.

Open
#1,347 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
1.6k
Forks
461
Avg merge
45m
Merged PRs (30d)
1

Description

Hi. I would ask how to make integration of json_serializable more convenient in terms of repository that contains ready to run code base. I think that storing of generated files in repo is not optimal way and better to generate all necessary files on local machine. But new-comers in my project will be confused about how to generate missing files.

So my question is:
Is that possible to automate process of generating missing .g.dart files? Maybe extension for VS Code or something?

My current thoughts is that I can make .sh script and run `dart run build_runner build` but it takes around 20 secs of time each run even if no files missing.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.