Updated configuration

This commit is contained in:
thomashii 2021-03-07 21:49:03 +08:00
parent ff98b759ad
commit b42af8377f
2 changed files with 15 additions and 12 deletions

View file

@ -1,20 +1,24 @@
name: angel_configuration name: angel_configuration
description: Automatic YAML application configuration loader for Angel, with .env support. description: Automatic YAML application configuration loader for Angel, with .env support.
version: 2.2.0 version: 3.0.0
author: Tobe O <thosakwe@gmail.com> author: Tobe O <thosakwe@gmail.com>
homepage: https://github.com/angel-dart/angel_configuration homepage: https://github.com/angel-dart/angel_configuration
publish_to: none
environment: environment:
sdk: ">=2.10.0 <2.12.0" sdk: ">=2.10.0 <3.0.0"
dependencies: dependencies:
angel_framework: #^2.0.0 angel_framework:
path: ../framework git:
dotenv: ^1.0.0 url: https://github.com/dukefirehawk/angel.git
file: ^5.0.0 ref: sdk-2.12.x
path: packages/framework
dotenv: ^2.0.0
# file: ^5.0.0
merge_map: ^1.0.0 merge_map: ^1.0.0
yaml: ^2.0.0 yaml: ^3.1.0
dev_dependencies: dev_dependencies:
io: ^0.3.2 io: ^1.0.0
logging: ^0.11.0 # logging: ^0.11.0
pedantic: ^1.0.0 pedantic: ^1.0.0
pretty_logging: ^1.0.0 # pretty_logging: ^1.0.0
test: ^1.15.7 test: ^1.15.7

View file

@ -5,11 +5,10 @@ import 'package:angel_configuration/angel_configuration.dart';
import 'package:file/local.dart'; import 'package:file/local.dart';
import 'package:io/ansi.dart'; import 'package:io/ansi.dart';
import 'package:logging/logging.dart'; import 'package:logging/logging.dart';
import 'package:pretty_logging/pretty_logging.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
Future<void> main() async { Future<void> main() async {
Logger.root.onRecord.listen(prettyLog); //Logger.root.onRecord.listen(prettyLog);
// Note: Set ANGEL_ENV to 'development' // Note: Set ANGEL_ENV to 'development'
var app = Angel(logger: Logger('angel_configuration')); var app = Angel(logger: Logger('angel_configuration'));