Skip to content

Commit 58d6232

Browse files
authored
feat: upgrade bundles to v0.1.0 (#493)
1 parent 799d81a commit 58d6232

File tree

8 files changed

+135
-98
lines changed

8 files changed

+135
-98
lines changed

lib/src/commands/create/create.dart

+10-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
import 'dart:async';
2+
13
import 'package:args/args.dart';
24
import 'package:args/command_runner.dart';
35
import 'package:mason/mason.dart';
46
import 'package:meta/meta.dart';
57
import 'package:path/path.dart' as path;
68
import 'package:universal_io/io.dart';
79
import 'package:usage/usage_io.dart';
8-
import 'package:very_good_analysis/very_good_analysis.dart';
910
import 'package:very_good_cli/src/command_runner.dart';
1011
import 'package:very_good_cli/src/commands/create/templates/templates.dart';
1112

@@ -162,12 +163,14 @@ class CreateCommand extends Command<int> {
162163
'description': description,
163164
'executable_name': executableName,
164165
'org_name': orgName,
165-
'android': android.toBool(),
166-
'ios': ios.toBool(),
167-
'web': web.toBool(),
168-
'linux': linux.toBool(),
169-
'macos': macos.toBool(),
170-
'windows': windows.toBool(),
166+
'platforms': <String>[
167+
if (android.toBool()) 'android',
168+
if (ios.toBool()) 'ios',
169+
if (web.toBool()) 'web',
170+
if (linux.toBool()) 'linux',
171+
if (macos.toBool()) 'macos',
172+
if (windows.toBool()) 'windows',
173+
],
171174
};
172175
await generator.hooks.preGen(vars: vars, onVarsChanged: (v) => vars = v);
173176
final target = DirectoryGeneratorTarget(outputDirectory);

lib/src/commands/create/templates/very_good_core/very_good_core_bundle.dart

+15-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/commands/create/templates/very_good_dart_cli/very_good_dart_cli_bundle.dart

+14-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/commands/create/templates/very_good_dart_package/very_good_dart_package_bundle.dart

+5-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/commands/create/templates/very_good_flutter_package/very_good_flutter_package_bundle.dart

+6-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)