Add flutter_build package for codegen and version sync with tool#26978
Add flutter_build package for codegen and version sync with tool#26978jonahwilliams merged 12 commits intoflutter:masterfrom
Conversation
|
Apparently the update-packages went wrong |
|
cc @gspencergoog , do you recognize the issue that docs is having here? |
|
No, I don't know what that is: it's not failing doing dartdoc though, that completed properly. It's failing doing the javadoc on the engine code. |
|
Does it fail locally when you run ./dev/bots/docs.sh? |
| await buildStep.writeAsBytes(outputId, await outputFile.readAsBytes()); | ||
| await buildStep.writeAsBytes(packagesOutputId, await packagesFile.readAsBytes()); | ||
| } catch (err, stackTrace) { | ||
| log.shout('frontend server failed to start: $err, $stackTrace'); |
There was a problem hiding this comment.
Is logging enough when this happens? What does shout do?
There was a problem hiding this comment.
Shout leaves an error log in .dart_tool/build/generated/<>/<>/<> that can be read out later. I believe this also causes the build to complete with an error, will double-check
|
Tests? |
Will work on tests |
|
Re:offline discussion, to make sure we have reasonable coverage I will add an integration test that triggers code generation and then runs the resulting code |
Includes a single build which can produce an .app.dill and a modified .packages file using the frontend server. The configuration options mirror those available in the flutter_tool and can be configured with defines similar to blaze.
When a user takes a dev_dependency on flutter_build, they can run the following command to invoke this builder. (This is just a building block of codegen, not the final workflow)
Note: This package should not be synced internally.