single_file_build_runner

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

single file build runner

Single File Build Runner #
Quick Guide #
Prerequisites #

The repository must use git.
The repository must have a pubspec.yaml file which has the build_runner as a dependency.
All Files generated by the build_runner must either be staged or commited. This script will otherwise delete them!

Usage #
Run dart run single_file_build_runner <path/from/content/root/filename.dart <generatorName> <generatorName> in the root of the repository. Generator names currently only support injectable, copy_with, freezed and json_serializable.
Alternatively run dart run single_file_build_runner <path/from/content/root/filename.dart <generatorName> <generatorName>
Example #
Running flutter packages pub run single_file_build_runner lib/<path>/file.dart injectable freezed in a project with around 1500 regular and 250 generated files on a Mac from 2019 took around xx seconds. Running the build_runner normally takes around 12 Minutes!

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.