ORM template for SDK 2.12.x
This commit is contained in:
parent
233f10b384
commit
10192bd29a
3 changed files with 75 additions and 27 deletions
|
@ -22,15 +22,15 @@ void prettyLog(LogRecord record) {
|
||||||
|
|
||||||
/// Chooses a color based on the logger [level].
|
/// Chooses a color based on the logger [level].
|
||||||
AnsiCode chooseLogColor(Level level) {
|
AnsiCode chooseLogColor(Level level) {
|
||||||
if (level == Level.SHOUT)
|
if (level == Level.SHOUT) {
|
||||||
return backgroundRed;
|
return backgroundRed;
|
||||||
else if (level == Level.SEVERE)
|
} else if (level == Level.SEVERE) {
|
||||||
return red;
|
return red;
|
||||||
else if (level == Level.WARNING)
|
} else if (level == Level.WARNING) {
|
||||||
return yellow;
|
return yellow;
|
||||||
else if (level == Level.INFO)
|
} else if (level == Level.INFO) {
|
||||||
return cyan;
|
return cyan;
|
||||||
else if (level == Level.CONFIG ||
|
} else if (level == Level.CONFIG ||
|
||||||
level == Level.FINE ||
|
level == Level.FINE ||
|
||||||
level == Level.FINER ||
|
level == Level.FINER ||
|
||||||
level == Level.FINEST) return lightGray;
|
level == Level.FINEST) return lightGray;
|
||||||
|
|
90
pubspec.yaml
90
pubspec.yaml
|
@ -2,7 +2,7 @@ name: angel
|
||||||
description: An app that's going to be amazing pretty soon.
|
description: An app that's going to be amazing pretty soon.
|
||||||
publish_to: none # Ensure we don't accidentally publish our private code! ;)
|
publish_to: none # Ensure we don't accidentally publish our private code! ;)
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=2.10.0 <2.12.0'
|
sdk: '>=2.10.0 <3.0.0'
|
||||||
homepage: https://github.com/angel-dart/angel
|
homepage: https://github.com/angel-dart/angel
|
||||||
dependencies:
|
dependencies:
|
||||||
angel_auth: ^2.0.0 # Supports stateless authentication via JWT
|
angel_auth: ^2.0.0 # Supports stateless authentication via JWT
|
||||||
|
@ -28,37 +28,85 @@ dev_dependencies:
|
||||||
test: ^1.0.0 # For unit testing.
|
test: ^1.0.0 # For unit testing.
|
||||||
dependency_overrides:
|
dependency_overrides:
|
||||||
angel_auth:
|
angel_auth:
|
||||||
path: ../angel/packages/auth
|
git:
|
||||||
|
url: https://github.com/dukefirehawk/angel.git
|
||||||
|
ref: sdk-2.12.x
|
||||||
|
path: packages/auth
|
||||||
angel_configuration:
|
angel_configuration:
|
||||||
path: ../angel/packages/configuration
|
git:
|
||||||
|
url: https://github.com/dukefirehawk/angel.git
|
||||||
|
ref: sdk-2.12.x
|
||||||
|
path: packages/configuration
|
||||||
angel_framework:
|
angel_framework:
|
||||||
path: ../angel/packages/framework
|
git:
|
||||||
|
url: https://github.com/dukefirehawk/angel.git
|
||||||
|
ref: sdk-2.12.x
|
||||||
|
path: packages/framework
|
||||||
angel_jael:
|
angel_jael:
|
||||||
path: ../angel/packages/jael/angel_jael
|
git:
|
||||||
angel_migration:
|
url: https://github.com/dukefirehawk/angel.git
|
||||||
path: ../angel/packages/orm/angel_migration
|
ref: sdk-2.12.x
|
||||||
angel_orm:
|
path: packages/jael/angel_jael
|
||||||
path: ../angel/packages/orm/angel_orm
|
|
||||||
angel_orm_postgres:
|
|
||||||
path: ../angel/packages/orm/angel_orm_postgres
|
|
||||||
angel_serialize:
|
|
||||||
path: ../angel/packages/serialize/angel_serialize
|
|
||||||
angel_production:
|
angel_production:
|
||||||
path: ../angel/packages/production
|
git:
|
||||||
|
url: https://github.com/dukefirehawk/angel.git
|
||||||
|
ref: sdk-2.12.x
|
||||||
|
path: packages/production
|
||||||
angel_static:
|
angel_static:
|
||||||
path: ../angel/packages/static
|
git:
|
||||||
|
url: https://github.com/dukefirehawk/angel.git
|
||||||
|
ref: sdk-2.12.x
|
||||||
|
path: packages/static
|
||||||
angel_validate:
|
angel_validate:
|
||||||
path: ../angel/packages/validate
|
git:
|
||||||
|
url: https://github.com/dukefirehawk/angel.git
|
||||||
|
ref: sdk-2.12.x
|
||||||
|
path: packages/validate
|
||||||
angel_hot:
|
angel_hot:
|
||||||
path: ../angel/packages/hot
|
git:
|
||||||
|
url: https://github.com/dukefirehawk/angel.git
|
||||||
|
ref: sdk-2.12.x
|
||||||
|
path: packages/hot
|
||||||
angel_test:
|
angel_test:
|
||||||
path: ../angel/packages/test
|
git:
|
||||||
|
url: https://github.com/dukefirehawk/angel.git
|
||||||
|
ref: sdk-2.12.x
|
||||||
|
path: packages/test
|
||||||
|
angel_migration:
|
||||||
|
git:
|
||||||
|
url: https://github.com/dukefirehawk/angel.git
|
||||||
|
ref: sdk-2.12.x
|
||||||
|
path: packages/orm/angel_migration
|
||||||
|
angel_orm:
|
||||||
|
git:
|
||||||
|
url: https://github.com/dukefirehawk/angel.git
|
||||||
|
ref: sdk-2.12.x
|
||||||
|
path: packages/orm/angel_orm
|
||||||
|
angel_orm_postgres:
|
||||||
|
git:
|
||||||
|
url: https://github.com/dukefirehawk/angel.git
|
||||||
|
ref: sdk-2.12.x
|
||||||
|
path: packages/orm/angel_orm_postgres
|
||||||
|
angel_serialize:
|
||||||
|
git:
|
||||||
|
url: https://github.com/dukefirehawk/angel.git
|
||||||
|
ref: sdk-2.12.x
|
||||||
|
path: packages/serialize/angel_serialize
|
||||||
angel_migration_runner:
|
angel_migration_runner:
|
||||||
path: ../angel/packages/orm/angel_migration_runner
|
git:
|
||||||
|
url: https://github.com/dukefirehawk/angel.git
|
||||||
|
ref: sdk-2.12.x
|
||||||
|
path: packages/orm/angel_migration_runner
|
||||||
angel_orm_generator:
|
angel_orm_generator:
|
||||||
path: ../angel/packages/orm/angel_orm_generator
|
git:
|
||||||
|
url: https://github.com/dukefirehawk/angel.git
|
||||||
|
ref: sdk-2.12.x
|
||||||
|
path: packages/orm/angel_orm_generator
|
||||||
angel_serialize_generator:
|
angel_serialize_generator:
|
||||||
path: ../angel/packages/serialize/angel_serialize_generator
|
git:
|
||||||
|
url: https://github.com/dukefirehawk/angel.git
|
||||||
|
ref: sdk-2.12.x
|
||||||
|
path: packages/serialize/angel_serialize_generator
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ import 'package:test/test.dart';
|
||||||
// here:
|
// here:
|
||||||
// https://github.com/dart-lang/test
|
// https://github.com/dart-lang/test
|
||||||
|
|
||||||
main() async {
|
void main() async {
|
||||||
TestClient client;
|
TestClient client;
|
||||||
|
|
||||||
setUp(() async {
|
setUp(() async {
|
||||||
|
|
Loading…
Reference in a new issue