xyz_gen 0.37.0 copy "xyz_gen: ^0.37.0" to clipboard
xyz_gen: ^0.37.0 copied to clipboard

A package designed to generate boilerplate code, reducing the amount of repetitive code you need to write.

πŸ‡½πŸ‡ΎπŸ‡Ώ Gen #

pub package

This package is designed to help you speed up development by generating boilerplate code for your projects.

It comes with a set of generators that can be used as-is, or modified to suit your needs. Some generators use templates to create files, while others use code to modify existing files. These templates can be modified to suit your needs and can be found in the templates folder.

To make your own generators, use the tools in this package. Fork the repository here and add your generators.

πŸ”œ Documentation and video tutorials are coming soon.

Included Generators #

βš™οΈ generate_directives.dart #

A quick way to create missing import/export or part of directives to your files.

βš™οΈ generate_exports.dart #

Looks through a folder for all Dart files and creates an exports file that includes them all, simplifying your project.

βš™οΈ enerate_license_headers.dart #

Adds license headers to your files, helping to protect your work.

βš™οΈ generate_makeups.dart #

Generates Makeups for widgets, giving them extra styles or features with ease.

βš™οΈ generate_models.dart #

Creates model classes from class annotations, handling types better than `json_serializable``.

βš™οΈ generate_preps.dart #

Inserts helpful information like line numbers and file names to keep things organized.

βš™οΈ generate_type_utils.dart #

Generates some utils for annotated Enums.

βš™οΈ generate_screen.dart (πŸ› οΈ not ready for public use) #

Creates Screens for your app, including the boilerplate code needed to get them up and running.

βš™οΈ generate_screen_access.dart (πŸ› οΈ not ready for public use) #

Connects your Screens to the navigator.

βš™οΈ generate_configurations.dart (πŸ› οΈ not ready for public use) #

Generates code to connect your Screens to your app.

Getting Started #

Installation #

  1. Add this to your package's pubspec.yaml file, where any is the latest version:
dependencies:
  xyz_gen: any
  1. Navigate to your project directory by running cd your/project/path then clone the generator scripts via git clone https://github.com/robmllze/___generators.git.
  2. Modify the generators as needed. You may also wish to change the generator templates to suit your needs.
  3. Run any of the generator scripts via dart ___generators/<GENERATOR>.dart where <GENERATOR> can be any of the included generators, like dart generate_models.dart.
  4. Consider setting up keyboard shortcuts or single-click actions to quickly run the generators and enhance your workflow efficiency. For instance, in VS Code, you can configure a task to execute the generators. Learn more: https://code.visualstudio.com/docs/editor/tasks.

Contributing #

Contributions to XYZ Gen are welcome. Here are a few ways you can help:

  • Report bugs and make feature requests.
  • Add new generators.
  • Improve the existing generators.
  • Helo with documentation and tutorials.

If you would like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.

License #

This package is released under the MIT License.

Contact #

Author: Robert Mollentze

Email: robmllze@gmail.com

8
likes
0
points
415
downloads

Publisher

unverified uploader

Weekly Downloads

A package designed to generate boilerplate code, reducing the amount of repetitive code you need to write.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

analyzer, args, collection, path, xyz_gen_annotations, xyz_utils

More

Packages that depend on xyz_gen