feat: split project into app, common, cli

This commit is contained in:
Tien Do Nam
2023-09-27 21:51:49 +02:00
parent 7ae0e6bc0c
commit c77d89bcc7
410 changed files with 534 additions and 105 deletions
+7
View File
@@ -0,0 +1,7 @@
# https://dart.dev/guides/libraries/private-files
# Created by `dart pub`
.dart_tool/
# Avoid committing pubspec.lock for library packages; see
# https://dart.dev/guides/libraries/private-files#pubspeclock.
pubspec.lock
+3
View File
@@ -0,0 +1,3 @@
# common
Common code used by the app and by the cli.
+10
View File
@@ -0,0 +1,10 @@
include: package:lints/recommended.yaml
linter:
rules:
prefer_single_quotes: true
sort_pub_dependencies: true
always_use_package_imports: true
directives_ordering: true
unawaited_futures: true
discarded_futures: true
+1
View File
@@ -0,0 +1 @@
export 'src/common_base.dart';
+6
View File
@@ -0,0 +1,6 @@
// TODO: Put public facing types in this file.
/// Checks if you are awesome. Spoiler: you are.
class Awesome {
bool get isAwesome => true;
}
+15
View File
@@ -0,0 +1,15 @@
name: common
description: A starting point for Dart libraries or applications.
version: 1.0.0
publish_to: "none"
environment:
sdk: ^3.1.1
# Add regular dependencies here.
dependencies:
# path: ^1.8.0
dev_dependencies:
lints: ^2.0.0
test: ^1.21.0