Updated dependencies

This commit is contained in:
thomashii 2021-02-19 22:34:24 +08:00
parent 54afecd3bc
commit 233f10b384
7 changed files with 49 additions and 10 deletions

3
.gitignore vendored
View file

@ -88,3 +88,6 @@ logs/
*.pem *.pem
.DS_Store .DS_Store
server_log.txt server_log.txt
.metals/
.vscode/

View file

@ -6,7 +6,7 @@ import 'package:angel_framework/angel_framework.dart';
import 'package:angel_hot/angel_hot.dart'; import 'package:angel_hot/angel_hot.dart';
import 'package:logging/logging.dart'; import 'package:logging/logging.dart';
main() async { void main() async {
// Watch the config/ and web/ directories for changes, and hot-reload the server. // Watch the config/ and web/ directories for changes, and hot-reload the server.
hierarchicalLoggingEnabled = true; hierarchicalLoggingEnabled = true;

View file

@ -5,7 +5,7 @@ import 'package:angel_migration_runner/angel_migration_runner.dart';
import 'package:angel_migration_runner/postgres.dart'; import 'package:angel_migration_runner/postgres.dart';
import 'package:file/local.dart'; import 'package:file/local.dart';
main(List<String> args) async { void main(List<String> args) async {
var fs = LocalFileSystem(); var fs = LocalFileSystem();
var configuration = await loadStandaloneConfiguration(fs); var configuration = await loadStandaloneConfiguration(fs);
var connection = await connectToPostgres(configuration); var connection = await connectToPostgres(configuration);

View file

@ -25,6 +25,6 @@ import 'package:angel_production/angel_production.dart';
// so in the meantime, visit the Angel chat for further questions: // so in the meantime, visit the Angel chat for further questions:
// //
// https://gitter.im/angel_dart/discussion // https://gitter.im/angel_dart/discussion
main(List<String> args) => void main(List<String> args) =>
Runner('{{angel}}', configureServer, reflector: MirrorsReflector()) Runner('{{angel}}', configureServer, reflector: MirrorsReflector())
.run(args); .run(args);

View file

@ -1,9 +1,9 @@
# Default server configuration. # Default server configuration.
jwt_secret: INSECURE_DEFAULT_SECRET jwt_secret: INSECURE_DEFAULT_SECRET
host: 127.0.0.1 host: 127.0.0.1
mongo_db: mongodb://localhost:27017/angel # mongo_db: mongodb://localhost:27017/angel
port: 3000 port: 3000
postgres: postgres:
# database_name: angel database_name: angel
username: postgres username: angel
password: postgres password: angel2020

View file

@ -8,7 +8,7 @@ part of 'greeting.dart';
class GreetingMigration extends Migration { class GreetingMigration extends Migration {
@override @override
up(Schema schema) { void up(Schema schema) {
schema.create('greetings', (table) { schema.create('greetings', (table) {
table.serial('id')..primaryKey(); table.serial('id')..primaryKey();
table.varChar('message'); table.varChar('message');
@ -18,7 +18,7 @@ class GreetingMigration extends Migration {
} }
@override @override
down(Schema schema) { void down(Schema schema) {
schema.drop('greetings'); schema.drop('greetings');
} }
} }

View file

@ -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.0.0-dev <3.0.0' sdk: '>=2.10.0 <2.12.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
@ -26,3 +26,39 @@ dev_dependencies:
io: ^0.3.2 # For pretty printing. io: ^0.3.2 # For pretty printing.
pedantic: ^1.0.0 # Enforces Dart style conventions. pedantic: ^1.0.0 # Enforces Dart style conventions.
test: ^1.0.0 # For unit testing. test: ^1.0.0 # For unit testing.
dependency_overrides:
angel_auth:
path: ../angel/packages/auth
angel_configuration:
path: ../angel/packages/configuration
angel_framework:
path: ../angel/packages/framework
angel_jael:
path: ../angel/packages/jael/angel_jael
angel_migration:
path: ../angel/packages/orm/angel_migration
angel_orm:
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:
path: ../angel/packages/production
angel_static:
path: ../angel/packages/static
angel_validate:
path: ../angel/packages/validate
angel_hot:
path: ../angel/packages/hot
angel_test:
path: ../angel/packages/test
angel_migration_runner:
path: ../angel/packages/orm/angel_migration_runner
angel_orm_generator:
path: ../angel/packages/orm/angel_orm_generator
angel_serialize_generator:
path: ../angel/packages/serialize/angel_serialize_generator