Skip to content

Commit

Permalink
ci(grinder): grinder を追加
Browse files Browse the repository at this point in the history
1. `dart pub global activate grinder`
2. `dart pub add grinder`
3. `dart run grinder:init`
  • Loading branch information
tatsutakein committed Jun 14, 2024
1 parent 386508e commit 408d5a5
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.3.1"
grinder:
dependency: "direct dev"
description:
name: grinder
sha256: e1996e485d2b56bb164a8585679758d488fbf567273f51c432c8733fee1f6188
url: "https://pub.dev"
source: hosted
version: "0.9.5"
http:
dependency: transitive
description:
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ environment:
sdk: ^3.3.1

dev_dependencies:
grinder: ^0.9.5
melos: ^6.0.0
17 changes: 17 additions & 0 deletions tool/grind.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// ignore_for_file: unreachable_from_main

import 'package:grinder/grinder.dart';

Future<void> main(List<String> args) async => grind(args);

@Task()
Future<dynamic> test() async => TestRunner().testAsync();

@DefaultTask()
@Depends(test)
Future<void> build() async {
Pub.build();
}

@Task()
void clean() => defaultClean();

0 comments on commit 408d5a5

Please sign in to comment.