Skip to content

Commit 6d9eebd

Browse files
authored
chore(bricks): upgrade mason_logger in prod server brick (#66)
1 parent e776a42 commit 6d9eebd

File tree

3 files changed

+13
-20
lines changed

3 files changed

+13
-20
lines changed

bricks/dart_frog_prod_server/hooks/post_gen.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ import 'package:mason/mason.dart';
44
import 'package:path/path.dart' as path;
55

66
Future<void> run(HookContext context) async {
7-
final done = context.logger.progress('Installing dependencies');
7+
final progress = context.logger.progress('Installing dependencies');
88
final buildDirectoryPath = path.join(Directory.current.path, 'build');
99
final result = await Process.run(
1010
'dart',
1111
['pub', 'get'],
1212
workingDirectory: buildDirectoryPath,
1313
runInShell: true,
1414
);
15-
done();
15+
progress.complete();
1616

1717
if (result.exitCode != 0) {
1818
context.logger.err('${result.stderr}');

bricks/dart_frog_prod_server/hooks/pre_gen.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Future<void> run(HookContext context) async {
2727
.map((entry) => (entry.value as PathDependency).path)
2828
.toList();
2929

30-
final bundlingDone = context.logger.progress('Bundling sources');
30+
final bundlingProgress = context.logger.progress('Bundling sources');
3131
if (await buildDirectory.exists()) {
3232
await buildDirectory.delete(recursive: true);
3333
}
@@ -39,9 +39,9 @@ Future<void> run(HookContext context) async {
3939
final tempDirectory = await Directory.systemTemp.createTemp();
4040
try {
4141
await copyPath('.', '${tempDirectory.path}${path.separator}');
42-
bundlingDone();
42+
bundlingProgress.complete();
4343
} catch (error) {
44-
bundlingDone();
44+
bundlingProgress.fail();
4545
context.logger.err('$error');
4646
exit(1);
4747
}

bricks/dart_frog_prod_server/hooks/pubspec.lock

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,6 @@ packages:
1515
url: "https://pub.dartlang.org"
1616
source: hosted
1717
version: "2.9.0"
18-
charcode:
19-
dependency: transitive
20-
description:
21-
name: charcode
22-
url: "https://pub.dartlang.org"
23-
source: hosted
24-
version: "1.3.1"
2518
checked_yaml:
2619
dependency: transitive
2720
description:
@@ -63,7 +56,7 @@ packages:
6356
name: http_parser
6457
url: "https://pub.dartlang.org"
6558
source: hosted
66-
version: "4.0.0"
59+
version: "4.0.1"
6760
io:
6861
dependency: "direct main"
6962
description:
@@ -84,21 +77,21 @@ packages:
8477
name: mason
8578
url: "https://pub.dartlang.org"
8679
source: hosted
87-
version: "0.1.0-dev.21"
80+
version: "0.1.0-dev.24"
8881
mason_logger:
8982
dependency: transitive
9083
description:
9184
name: mason_logger
9285
url: "https://pub.dartlang.org"
9386
source: hosted
94-
version: "0.1.0-dev.8"
87+
version: "0.1.0-dev.10"
9588
meta:
9689
dependency: transitive
9790
description:
9891
name: meta
9992
url: "https://pub.dartlang.org"
10093
source: hosted
101-
version: "1.7.0"
94+
version: "1.8.0"
10295
mustache_template:
10396
dependency: transitive
10497
description:
@@ -112,7 +105,7 @@ packages:
112105
name: path
113106
url: "https://pub.dartlang.org"
114107
source: hosted
115-
version: "1.8.1"
108+
version: "1.8.2"
116109
pub_semver:
117110
dependency: transitive
118111
description:
@@ -147,7 +140,7 @@ packages:
147140
name: string_scanner
148141
url: "https://pub.dartlang.org"
149142
source: hosted
150-
version: "1.1.0"
143+
version: "1.1.1"
151144
term_glyph:
152145
dependency: transitive
153146
description:
@@ -161,7 +154,7 @@ packages:
161154
name: typed_data
162155
url: "https://pub.dartlang.org"
163156
source: hosted
164-
version: "1.3.0"
157+
version: "1.3.1"
165158
universal_io:
166159
dependency: transitive
167160
description:
@@ -175,6 +168,6 @@ packages:
175168
name: yaml
176169
url: "https://pub.dartlang.org"
177170
source: hosted
178-
version: "3.1.0"
171+
version: "3.1.1"
179172
sdks:
180173
dart: ">=2.17.0 <3.0.0"

0 commit comments

Comments
 (0)