feat(gitlab): graphql schema and build config
This commit is contained in:
parent
ba34337b07
commit
efc2359f27
18
build.yaml
18
build.yaml
|
@ -1,5 +1,11 @@
|
||||||
targets:
|
targets:
|
||||||
$default:
|
$default:
|
||||||
|
builders:
|
||||||
|
json_serializable:
|
||||||
|
options:
|
||||||
|
github:
|
||||||
|
sources:
|
||||||
|
- lib/gql_github/*
|
||||||
builders:
|
builders:
|
||||||
ferry_generator|graphql_builder:
|
ferry_generator|graphql_builder:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
@ -19,3 +25,15 @@ targets:
|
||||||
custom_serializers:
|
custom_serializers:
|
||||||
- import: package:git_touch/utils/date_time_serializer.dart
|
- import: package:git_touch/utils/date_time_serializer.dart
|
||||||
name: DateTimeSerializer
|
name: DateTimeSerializer
|
||||||
|
gitlab:
|
||||||
|
sources:
|
||||||
|
- lib/gql_gitlab/*
|
||||||
|
builders:
|
||||||
|
ferry_generator|graphql_builder:
|
||||||
|
enabled: true
|
||||||
|
options:
|
||||||
|
schema: git_touch|lib/gql_gitlab/schema.graphql
|
||||||
|
ferry_generator|serializer_builder:
|
||||||
|
enabled: true
|
||||||
|
options:
|
||||||
|
schema: git_touch|lib/gql_gitlab/schema.graphql
|
||||||
|
|
|
@ -62,6 +62,9 @@ class MyApp extends StatelessWidget {
|
||||||
theme: CupertinoThemeData(
|
theme: CupertinoThemeData(
|
||||||
brightness: theme.brightness,
|
brightness: theme.brightness,
|
||||||
primaryColor: antTheme.colorPrimary,
|
primaryColor: antTheme.colorPrimary,
|
||||||
|
scaffoldBackgroundColor: theme.brightness == Brightness.dark
|
||||||
|
? const Color(0x00ff2629)
|
||||||
|
: const Color(0xfffafbfc),
|
||||||
textTheme: CupertinoTextThemeData(
|
textTheme: CupertinoTextThemeData(
|
||||||
textStyle: TextStyle(
|
textStyle: TextStyle(
|
||||||
fontSize: antTheme.fontSizeMain,
|
fontSize: antTheme.fontSizeMain,
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
query Project($fullPath: String!) {
|
||||||
|
project(fullPath: $fullPath) {
|
||||||
|
name
|
||||||
|
}
|
||||||
|
}
|
File diff suppressed because it is too large
Load Diff
|
@ -2,3 +2,5 @@
|
||||||
|
|
||||||
# https://docs.github.com/en/graphql/overview/public-schema
|
# https://docs.github.com/en/graphql/overview/public-schema
|
||||||
curl -o lib/gql_github/schema.graphql https://docs.github.com/public/schema.docs.graphql
|
curl -o lib/gql_github/schema.graphql https://docs.github.com/public/schema.docs.graphql
|
||||||
|
|
||||||
|
npx --yes get-graphql-schema https://gitlab.com/api/graphql > lib/gql_gitlab/schema.graphql
|
||||||
|
|
Loading…
Reference in New Issue