Updated angel3-graphql
This commit is contained in:
parent
9d9a94965e
commit
16565c26cd
14 changed files with 40 additions and 92 deletions
|
@ -1,9 +1,9 @@
|
|||
import 'dart:io';
|
||||
import 'package:pretty_logging/pretty_logging.dart';
|
||||
import 'package:angel3_pretty_logging/angel3_pretty_logging.dart';
|
||||
import 'package:angel/angel.dart';
|
||||
import 'package:angel_container/mirrors.dart';
|
||||
import 'package:angel_framework/angel_framework.dart';
|
||||
import 'package:angel_hot/angel_hot.dart';
|
||||
import 'package:angel3_container/mirrors.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:angel3_hot/angel3_hot.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
|
||||
void main() async {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import 'package:angel/angel.dart';
|
||||
import 'package:angel_container/mirrors.dart';
|
||||
import 'package:angel_production/angel_production.dart';
|
||||
import 'package:angel3_container/mirrors.dart';
|
||||
import 'package:angel3_production/angel3_production.dart';
|
||||
|
||||
// NOTE: By default, the Runner class does not use the `MirrorsReflector`, or any
|
||||
// reflector, by default.
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
library angel;
|
||||
|
||||
import 'dart:async';
|
||||
import 'package:angel_framework/angel_framework.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:file/local.dart';
|
||||
import 'src/config/config.dart' as configuration;
|
||||
import 'src/routes/routes.dart' as routes;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
/// Configuration for this Angel instance.
|
||||
library angel.src.config;
|
||||
|
||||
import 'package:angel_configuration/angel_configuration.dart';
|
||||
import 'package:angel_framework/angel_framework.dart';
|
||||
import 'package:angel_jael/angel_jael.dart';
|
||||
import 'package:angel3_configuration/angel3_configuration.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:angel3_jael/angel3_jael.dart';
|
||||
import 'package:file/file.dart';
|
||||
import 'plugins/plugins.dart' as plugins;
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
library angel.src.config.plugins;
|
||||
|
||||
import 'dart:async';
|
||||
import 'package:angel_framework/angel_framework.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
|
||||
Future configureServer(Angel app) async {
|
||||
// Include any plugins you have made here.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:angel_serialize/angel_serialize.dart';
|
||||
import 'package:graphql_schema/graphql_schema.dart';
|
||||
import 'package:angel3_serialize/angel3_serialize.dart';
|
||||
import 'package:graphql_schema2/graphql_schema2.dart';
|
||||
part 'todo.g.dart';
|
||||
|
||||
@graphQLClass
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
library angel.src.routes.controllers;
|
||||
|
||||
import 'dart:async';
|
||||
import 'package:angel_framework/angel_framework.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
|
||||
Future configureServer(Angel app) async {
|
||||
/// Controllers will not function unless wired to the application!
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import 'package:angel_framework/angel_framework.dart';
|
||||
import 'package:angel_graphql/angel_graphql.dart';
|
||||
import 'package:graphql_server/graphql_server.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:angel3_graphql/angel3_graphql.dart';
|
||||
import 'package:graphql_server2/graphql_server2.dart';
|
||||
import 'schema.dart';
|
||||
|
||||
/// Configures the [app] to server GraphQL.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:angel_framework/angel_framework.dart';
|
||||
import 'package:graphql_schema/graphql_schema.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:graphql_schema2/graphql_schema2.dart';
|
||||
import 'todo.dart';
|
||||
|
||||
/// Creates a GraphQL schema that manages an in-memory store of
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import 'package:angel/src/models/todo.dart';
|
||||
import 'package:angel_framework/angel_framework.dart';
|
||||
import 'package:angel_graphql/angel_graphql.dart';
|
||||
import 'package:graphql_schema/graphql_schema.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:angel3_graphql/angel3_graphql.dart';
|
||||
import 'package:graphql_schema2/graphql_schema2.dart';
|
||||
|
||||
/// Find or create an in-memory Todo store.
|
||||
MapService? _getTodoService(Angel app) {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/// This app's route configuration.
|
||||
library angel.src.routes;
|
||||
|
||||
import 'package:angel_framework/angel_framework.dart';
|
||||
import 'package:angel_static/angel_static.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:angel3_static/angel3_static.dart';
|
||||
import 'package:file/file.dart';
|
||||
import 'controllers/controllers.dart' as controllers;
|
||||
import 'graphql/graphql.dart' as graphql;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
library angel.services;
|
||||
|
||||
import 'dart:async';
|
||||
import 'package:angel_framework/angel_framework.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
|
||||
/// Configure our application to use *services*.
|
||||
/// Services must be wired to the app via `app.use`.
|
||||
|
|
78
pubspec.yaml
78
pubspec.yaml
|
@ -5,72 +5,20 @@ environment:
|
|||
sdk: '>=2.12.0 <3.0.0'
|
||||
homepage: https://github.com/dukefirehawk/boilerplates
|
||||
dependencies:
|
||||
angel_auth:
|
||||
git:
|
||||
url: https://github.com/dukefirehawk/angel.git
|
||||
ref: sdk-2.12.x_nnbd
|
||||
path: packages/auth
|
||||
angel_configuration:
|
||||
git:
|
||||
url: https://github.com/dukefirehawk/angel.git
|
||||
ref: sdk-2.12.x_nnbd
|
||||
path: packages/configuration
|
||||
angel_framework:
|
||||
git:
|
||||
url: https://github.com/dukefirehawk/angel.git
|
||||
ref: sdk-2.12.x_nnbd
|
||||
path: packages/framework
|
||||
angel_graphql:
|
||||
git:
|
||||
url: https://github.com/dukefirehawk/graphql_dart.git
|
||||
ref: sdk-2.12.x_nnbd
|
||||
path: angel_graphql
|
||||
angel_jael:
|
||||
git:
|
||||
url: https://github.com/dukefirehawk/angel.git
|
||||
ref: sdk-2.12.x_nnbd
|
||||
path: packages/jael/angel_jael
|
||||
angel_production:
|
||||
git:
|
||||
url: https://github.com/dukefirehawk/angel.git
|
||||
ref: sdk-2.12.x_nnbd
|
||||
path: packages/production
|
||||
angel_static:
|
||||
git:
|
||||
url: https://github.com/dukefirehawk/angel.git
|
||||
ref: sdk-2.12.x_nnbd
|
||||
path: packages/static
|
||||
angel_validate:
|
||||
git:
|
||||
url: https://github.com/dukefirehawk/angel.git
|
||||
ref: sdk-2.12.x_nnbd
|
||||
path: packages/validate
|
||||
angel3_auth: ^4.0.0
|
||||
angel3_configuration: ^4.0.0
|
||||
angel3_framework: ^4.0.0
|
||||
angel3_graphql: ^2.0.0
|
||||
angel3_jael: ^4.0.0
|
||||
angel3_production: ^3.0.0
|
||||
angel3_static: ^4.0.0
|
||||
angel3_validate: ^4.0.0
|
||||
dev_dependencies:
|
||||
angel_hot:
|
||||
git:
|
||||
url: https://github.com/dukefirehawk/angel.git
|
||||
ref: sdk-2.12.x_nnbd
|
||||
path: packages/hot
|
||||
angel_serialize_generator:
|
||||
git:
|
||||
url: https://github.com/dukefirehawk/angel.git
|
||||
ref: sdk-2.12.x_nnbd
|
||||
path: packages/serialize/angel_serialize_generator
|
||||
angel_test:
|
||||
git:
|
||||
url: https://github.com/dukefirehawk/angel.git
|
||||
ref: sdk-2.12.x_nnbd
|
||||
path: packages/test
|
||||
pretty_logging:
|
||||
git:
|
||||
url: https://github.com/dukefirehawk/angel.git
|
||||
ref: sdk-2.12.x_nnbd
|
||||
path: packages/pretty_logging
|
||||
graphql_generator:
|
||||
git:
|
||||
url: https://github.com/dukefirehawk/graphql_dart.git
|
||||
ref: sdk-2.12.x_nnbd
|
||||
path: graphql_generator
|
||||
angel3_hot: ^4.0.0
|
||||
angel3_serialize_generator: ^4.0.0
|
||||
angel3_test: ^4.0.0
|
||||
angel3_pretty_logging: ^3.0.0
|
||||
graphql_generator2: ^2.0.0
|
||||
build_runner: ^2.0.4
|
||||
io: ^1.0.0
|
||||
pedantic: ^1.11.0
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import 'package:angel/angel.dart';
|
||||
import 'package:angel_framework/angel_framework.dart';
|
||||
import 'package:angel_test/angel_test.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:angel3_test/angel3_test.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
// Angel also includes facilities to make testing easier.
|
||||
|
|
Loading…
Reference in a new issue