Skip to main content

smf_contribution_engine 0.3.0 copy "smf_contribution_engine: ^0.3.0" to clipboard
smf_contribution_engine: ^0.3.0 copied to clipboard

Engine for structured code transformations in Dart/Flutter (insert/replace widgets, modify arguments, lists and classes).

smf_contribution_engine #

Patches existing Dart files: adds imports and statements, inserts list elements, replaces widgets and edits their arguments. Each change is a Contribution that finds its target in the parsed file. PatchEngine applies contributions to a project and renders the Mustache placeholders in the text they insert with the values it is given, where a suffix picks a case, as {{app_name_sc}} does for app_name in snake_case. It never renders the code that is already in the files.

The modules of the SMF CLI do not use it: they put their code into the sockets of roles, which the generation pipeline fills when it renders an app.

0
likes
160
points
510
downloads

Documentation

API reference

Publisher

verified publishersaymyframe.com

Weekly Downloads

Engine for structured code transformations in Dart/Flutter (insert/replace widgets, modify arguments, lists and classes).

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#codemod #refactoring #ast #analysis #codegen

License

Apache-2.0 (license)

Dependencies

analyzer, dart_style, mason_logger, mustachex, path

More

Packages that depend on smf_contribution_engine