Compare commits
No commits in common. "2ff82e17306229ce512bc330491a16e3dbfd49b9" and "c05f981aea657dc49432cc26312fce4546bad27f" have entirely different histories.
2ff82e1730
...
c05f981aea
@ -16,11 +16,3 @@ builders:
|
|||||||
- lib/ui/licenses.moxxy.dart
|
- lib/ui/licenses.moxxy.dart
|
||||||
build_to: source
|
build_to: source
|
||||||
auto_apply: root_package
|
auto_apply: root_package
|
||||||
versionBuilder:
|
|
||||||
import: "package:moxxyv2_builders/version.dart"
|
|
||||||
builder_factories: [ "versionBuilder" ]
|
|
||||||
build_extensions:
|
|
||||||
pubspec.yaml:
|
|
||||||
- lib/shared/version.moxxy.dart
|
|
||||||
build_to: source
|
|
||||||
auto_apply: root_package
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import "dart:io";
|
import "dart:io";
|
||||||
|
|
||||||
import "package:build/build.dart";
|
import "package:build/build.dart";
|
||||||
import "package:dart_pubspec_licenses/dart_pubspec_licenses.dart";
|
import "package:dart_pubspec_licenses/dart_pubspec_licenses.dart";
|
||||||
import "package:yaml/yaml.dart";
|
import "package:yaml/yaml.dart";
|
||||||
|
@ -1,29 +0,0 @@
|
|||||||
import "dart:io";
|
|
||||||
import "package:build/build.dart";
|
|
||||||
import "package:yaml/yaml.dart";
|
|
||||||
|
|
||||||
class VersionBuilder implements Builder {
|
|
||||||
@override
|
|
||||||
Future build(BuildStep step) async {
|
|
||||||
final pubspecFile = loadYaml(
|
|
||||||
await File('pubspec.yaml').readAsString(),
|
|
||||||
);
|
|
||||||
|
|
||||||
String fileContent = '''
|
|
||||||
//// AUTO-GENERATED by build_runner ////
|
|
||||||
/// DO NOT EDIT BY HAND
|
|
||||||
part of "version.dart";
|
|
||||||
|
|
||||||
const pubspecVersionString = '${pubspecFile["version"]}';
|
|
||||||
''';
|
|
||||||
|
|
||||||
await step.writeAsString(step.allowedOutputs.first, fileContent);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
final buildExtensions = const {
|
|
||||||
"pubspec.yaml": [ "lib/shared/version.moxxy.dart" ]
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
Builder versionBuilder(BuilderOptions _) => VersionBuilder();
|
|
@ -1,8 +1,8 @@
|
|||||||
name: moxxyv2_builders
|
name: moxxyv2_builders
|
||||||
description: A colection of builders for Moxxyv2
|
description: A colection of builders for Moxxyv2
|
||||||
version: 0.2.0
|
version: 0.1.0
|
||||||
homepage: https://codeberg.org/moxxy/moxxyv2_builders
|
homepage: https://codeberg.org/moxxy/moxxyv2_builders
|
||||||
publish_to: https://git.polynom.me/api/packages/Moxxy/pub
|
publish_to: https://pub.polynom.me
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.17.0-266.1.beta <3.0.0"
|
sdk: ">=2.17.0-266.1.beta <3.0.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user