From 62b23a26df1662c340b4ae1993dba667253f9866 Mon Sep 17 00:00:00 2001 From: "mr.mojtaba" Date: Sun, 18 May 2025 11:50:15 +0330 Subject: [PATCH] feat : project structure --- packages/livestock/example/livestock_example.dart | 6 ------ packages/livestock/lib/livestock.dart | 2 -- packages/livestock/lib/src/livestock_base.dart | 6 ------ packages/livestock/pubspec.yaml | 6 ++++-- packages/livestock/test/livestock_test.dart | 10 ---------- 5 files changed, 4 insertions(+), 26 deletions(-) delete mode 100644 packages/livestock/example/livestock_example.dart delete mode 100644 packages/livestock/lib/src/livestock_base.dart diff --git a/packages/livestock/example/livestock_example.dart b/packages/livestock/example/livestock_example.dart deleted file mode 100644 index 45f8441..0000000 --- a/packages/livestock/example/livestock_example.dart +++ /dev/null @@ -1,6 +0,0 @@ -import 'package:livestock/livestock.dart'; - -void main() { - var awesome = Awesome(); - print('awesome: ${awesome.isAwesome}'); -} diff --git a/packages/livestock/lib/livestock.dart b/packages/livestock/lib/livestock.dart index 850bfa8..6289ca5 100644 --- a/packages/livestock/lib/livestock.dart +++ b/packages/livestock/lib/livestock.dart @@ -3,6 +3,4 @@ /// More dartdocs go here. library; -export 'src/livestock_base.dart'; -// TODO: Export any libraries intended for clients of this package. diff --git a/packages/livestock/lib/src/livestock_base.dart b/packages/livestock/lib/src/livestock_base.dart deleted file mode 100644 index e8a6f15..0000000 --- a/packages/livestock/lib/src/livestock_base.dart +++ /dev/null @@ -1,6 +0,0 @@ -// TODO: Put public facing types in this file. - -/// Checks if you are awesome. Spoiler: you are. -class Awesome { - bool get isAwesome => true; -} diff --git a/packages/livestock/pubspec.yaml b/packages/livestock/pubspec.yaml index f591e97..09d7557 100644 --- a/packages/livestock/pubspec.yaml +++ b/packages/livestock/pubspec.yaml @@ -1,6 +1,7 @@ name: livestock description: A starting point for Dart libraries or applications. version: 1.0.0 +publish_to: 'none' # repository: https://github.com/my_org/my_repo environment: @@ -8,8 +9,9 @@ environment: dependencies: -rasadyar_core: - path: ../core + + rasadyar_core: + path: ../core ##code generation freezed_annotation: ^3.0.0 json_annotation: ^4.9.0 diff --git a/packages/livestock/test/livestock_test.dart b/packages/livestock/test/livestock_test.dart index 3104e61..dbd1d90 100644 --- a/packages/livestock/test/livestock_test.dart +++ b/packages/livestock/test/livestock_test.dart @@ -2,15 +2,5 @@ import 'package:livestock/livestock.dart'; import 'package:test/test.dart'; void main() { - group('A group of tests', () { - final awesome = Awesome(); - setUp(() { - // Additional setup goes here. - }); - - test('First Test', () { - expect(awesome.isAwesome, isTrue); - }); - }); }