feat(redis_client): create package:redis_client (#1132)

This commit is contained in:
Felix Angelov
2023-08-18 15:52:20 -05:00
committed by GitHub
parent cc59fd9130
commit 7772fe4efd
9 changed files with 63 additions and 0 deletions
+4
View File
@@ -48,6 +48,10 @@ jobs:
- ./.github/workflows/main.yaml
- ./.github/actions/dart_package/action.yaml
- packages/discord_gcp_alerts/**
redis_client:
- ./.github/workflows/main.yaml
- ./.github/actions/dart_package/action.yaml
- packages/redis_client/**
shorebird_cli:
- ./.github/workflows/main.yaml
- ./.github/actions/dart_package/action.yaml
+1
View File
@@ -26,6 +26,7 @@ This repository is a monorepo containing the following packages:
| [cutler](packages/cutler/README.md) | A tool for managing Flutter forks |
| [discord_gcp_alerts](packages/discord_gcp_alerts/README.md) | Dart server which forwards GCP alerts to Discord |
| [jwt](packages/jwt/README.md) | Dart library for verifying Json Web Tokens |
| [redis_client](packages/redis_client/README.md) | Dart library for interacting with Redis |
| [scoped](packages/scoped/README.md) | A simple dependency injection library built on Zones |
For more information, please refer to the documentation for each package.
+10
View File
@@ -0,0 +1,10 @@
# See https://www.dartlang.org/guides/libraries/private-files
# Files and directories created by pub
.dart_tool/
.packages
build/
pubspec.lock
# Test related files
coverage/
+18
View File
@@ -0,0 +1,18 @@
# Redis Client
[![License: MIT][license_badge]][license_link]
A Dart library for interacting with [Redis](https://redis.io).
[license_badge]: https://img.shields.io/badge/license-MIT-blue.svg
[license_link]: https://opensource.org/licenses/MIT
## License
Shorebird packages are licensed for use under either Apache License, Version 2.0
(LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0) MIT license
(LICENSE-MIT or http://opensource.org/licenses/MIT) at your option.
See our license philosophy for more information on why we license files this
way:
https://github.com/shorebirdtech/handbook/blob/main/engineering.md#licensing-philosophy
@@ -0,0 +1 @@
include: package:very_good_analysis/analysis_options.5.0.0.yaml
@@ -0,0 +1 @@
export 'src/redis_client.dart' show RedisClient;
@@ -0,0 +1,7 @@
/// {@template redis_client}
/// A client for interacting with a Redis server.
/// {@endtemplate}
class RedisClient {
/// {@macro redis_client}
const RedisClient();
}
+11
View File
@@ -0,0 +1,11 @@
name: redis_client
description: A Dart library for interacting with Redis.
version: 1.0.0+1
publish_to: none
environment:
sdk: ">=3.0.0 <4.0.0"
dev_dependencies:
test: ^1.19.2
very_good_analysis: ^5.0.0
@@ -0,0 +1,10 @@
import 'package:redis_client/redis_client.dart';
import 'package:test/test.dart';
void main() {
group(RedisClient, () {
test('can be instantiated', () {
expect(const RedisClient(), isNotNull);
});
});
}