From 778f63518f5b32ffd1ba5a6b507ab3a4e79b477f Mon Sep 17 00:00:00 2001 From: Dillon Nys <24740863+dnys1@users.noreply.github.com> Date: Sun, 21 Jan 2024 22:00:11 -0800 Subject: [PATCH] chore: Rename Celest project package (#8) Renames Celest project package to `celest_backend` by convention. --- packages/celest/example/celest/lib/client.dart | 3 +++ packages/celest/example/celest/lib/exceptions.dart | 2 ++ packages/celest/example/celest/lib/models.dart | 2 ++ packages/celest/example/celest/pubspec.yaml | 2 +- packages/celest/example/lib/main.dart | 2 +- packages/celest/example/pubspec.yaml | 2 +- 6 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 packages/celest/example/celest/lib/exceptions.dart create mode 100644 packages/celest/example/celest/lib/models.dart diff --git a/packages/celest/example/celest/lib/client.dart b/packages/celest/example/celest/lib/client.dart index aced9430..66de9ef1 100644 --- a/packages/celest/example/celest/lib/client.dart +++ b/packages/celest/example/celest/lib/client.dart @@ -11,6 +11,9 @@ import 'package:http/http.dart' as http; import 'src/client/functions.dart'; +export 'exceptions.dart'; +export 'models.dart'; + final Celest celest = Celest(); class Celest { diff --git a/packages/celest/example/celest/lib/exceptions.dart b/packages/celest/example/celest/lib/exceptions.dart new file mode 100644 index 00000000..1c7d9dde --- /dev/null +++ b/packages/celest/example/celest/lib/exceptions.dart @@ -0,0 +1,2 @@ +// By convention, any custom exception types thrown by an API must be defined +// in this file or exported from this file. diff --git a/packages/celest/example/celest/lib/models.dart b/packages/celest/example/celest/lib/models.dart new file mode 100644 index 00000000..9d381311 --- /dev/null +++ b/packages/celest/example/celest/lib/models.dart @@ -0,0 +1,2 @@ +// By convention, any custom types used within an API request/response must be +// defined in this file or exported from this file. diff --git a/packages/celest/example/celest/pubspec.yaml b/packages/celest/example/celest/pubspec.yaml index 91372241..ac16384c 100644 --- a/packages/celest/example/celest/pubspec.yaml +++ b/packages/celest/example/celest/pubspec.yaml @@ -1,4 +1,4 @@ -name: example_app_celest +name: celest_backend description: The Celest backend for example_app. publish_to: none diff --git a/packages/celest/example/lib/main.dart b/packages/celest/example/lib/main.dart index 2dea729a..30c728bc 100644 --- a/packages/celest/example/lib/main.dart +++ b/packages/celest/example/lib/main.dart @@ -1,4 +1,4 @@ -import 'package:example_app_celest/client.dart'; +import 'package:celest_backend/client.dart'; import 'package:flutter/material.dart'; void main() { diff --git a/packages/celest/example/pubspec.yaml b/packages/celest/example/pubspec.yaml index 2431438f..2daac32c 100644 --- a/packages/celest/example/pubspec.yaml +++ b/packages/celest/example/pubspec.yaml @@ -7,7 +7,7 @@ environment: sdk: '>=3.2.5 <4.0.0' dependencies: - example_app_celest: + celest_backend: path: celest/ flutter: sdk: flutter