forked from artflutter/reactive_forms_widgets
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c52acba
commit 579d0a5
Showing
5 changed files
with
184 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
analyzer: | ||
exclude: | ||
- packages/reactive_forms_widget_package/** |
29 changes: 29 additions & 0 deletions
29
packages/reactive_forms_widget_package/hooks/post_gen.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import 'dart:io'; | ||
|
||
import 'package:mason/mason.dart'; | ||
|
||
void run(HookContext context) async { | ||
final package = 'reactive_{{originalPackageName.snakeCase()}}'; | ||
final packageExample = '$package/example'; | ||
|
||
context.logger.info('############### CREATE $package ###############'); | ||
await Process.run('flutter', ['create', package, '--template=package',]).then((value) { | ||
print(value.stdout); | ||
print(value.stderr); | ||
print(value.exitCode); | ||
}); | ||
|
||
context.logger.info('############### CREATE $package/example ###############'); | ||
await Process.run('flutter', ['create', '.'], workingDirectory: packageExample).then((value) { | ||
print(value.stdout); | ||
print(value.stderr); | ||
print(value.exitCode); | ||
}); | ||
|
||
context.logger.info('############### RUN flutter pub get ###############'); | ||
await Process.run('flutter', ['pub', 'get'], workingDirectory: package).then((value) { | ||
print(value.stdout); | ||
print(value.stderr); | ||
print(value.exitCode); | ||
}); | ||
} |
145 changes: 145 additions & 0 deletions
145
packages/reactive_forms_widget_package/hooks/pubspec.lock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
# Generated by pub | ||
# See https://dart.dev/tools/pub/glossary#lockfile | ||
packages: | ||
archive: | ||
dependency: transitive | ||
description: | ||
name: archive | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "3.3.1" | ||
async: | ||
dependency: transitive | ||
description: | ||
name: async | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "2.9.0" | ||
checked_yaml: | ||
dependency: transitive | ||
description: | ||
name: checked_yaml | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "2.0.1" | ||
collection: | ||
dependency: transitive | ||
description: | ||
name: collection | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "1.16.0" | ||
crypto: | ||
dependency: transitive | ||
description: | ||
name: crypto | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "3.0.2" | ||
http: | ||
dependency: transitive | ||
description: | ||
name: http | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "0.13.4" | ||
http_parser: | ||
dependency: transitive | ||
description: | ||
name: http_parser | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "4.0.1" | ||
json_annotation: | ||
dependency: transitive | ||
description: | ||
name: json_annotation | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "4.6.0" | ||
mason: | ||
dependency: "direct main" | ||
description: | ||
name: mason | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "0.1.0-dev.31" | ||
mason_logger: | ||
dependency: transitive | ||
description: | ||
name: mason_logger | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "0.1.1" | ||
meta: | ||
dependency: transitive | ||
description: | ||
name: meta | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "1.8.0" | ||
mustache_template: | ||
dependency: transitive | ||
description: | ||
name: mustache_template | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "2.0.0" | ||
path: | ||
dependency: transitive | ||
description: | ||
name: path | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "1.8.2" | ||
pub_semver: | ||
dependency: transitive | ||
description: | ||
name: pub_semver | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "2.1.1" | ||
recase: | ||
dependency: transitive | ||
description: | ||
name: recase | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "4.0.0" | ||
source_span: | ||
dependency: transitive | ||
description: | ||
name: source_span | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "1.9.1" | ||
string_scanner: | ||
dependency: transitive | ||
description: | ||
name: string_scanner | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "1.1.1" | ||
term_glyph: | ||
dependency: transitive | ||
description: | ||
name: term_glyph | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "1.2.1" | ||
typed_data: | ||
dependency: transitive | ||
description: | ||
name: typed_data | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "1.3.1" | ||
yaml: | ||
dependency: transitive | ||
description: | ||
name: yaml | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "3.1.1" | ||
sdks: | ||
dart: ">=2.16.0 <3.0.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
name: reactive_forms_widget_package_hooks | ||
|
||
environment: | ||
sdk: ">=2.12.0 <3.0.0" | ||
|
||
dependencies: | ||
mason: any |