forked from kamilkisiela/graphql-inspector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.yml
168 lines (150 loc) · 5.48 KB
/
demo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
# The configurations that used for the recording, feel free to edit them
config:
# Specify a command to be executed
# like `/bin/bash -l`, `ls`, or any other commands
# the default is bash for Linux
# or powershell.exe for Windows
command: bash -l
# Specify the current working directory path
# the default is the current working directory path
cwd: /Users/kamilkisiela/Repo/kamilkisiela/graphql-inspector
# Export additional ENV variables
env:
recording: true
# Explicitly set the number of columns
# or use `auto` to take the current
# number of columns of your shell
cols: 80
# Explicitly set the number of rows
# or use `auto` to take the current
# number of rows of your shell
rows: 15
# Amount of times to repeat GIF
# If value is -1, play once
# If value is 0, loop indefinitely
# If value is a positive number, loop n times
repeat: 0
# Quality
# 1 - 100
quality: 100
# Delay between frames in ms
# If the value is `auto` use the actual recording delays
frameDelay: auto
# Maximum delay between frames in ms
# Ignored if the `frameDelay` isn't set to `auto`
# Set to `auto` to prevent limiting the max idle time
maxIdleTime: 2000
# The surrounding frame box
# The `type` can be null, window, floating, or solid`
# To hide the title use the value null
# Don't forget to add a backgroundColor style with a null as type
frameBox:
type: solid
title: null
style: []
# Add a watermark image to the rendered gif
# You need to specify an absolute path for
# the image on your machine or a URL, and you can also
# add your own CSS styles
watermark:
imagePath: null
style:
position: absolute
right: 15px
bottom: 15px
width: 100px
opacity: 0.9
# Cursor style can be one of
# `block`, `underline`, or `bar`
cursorStyle: block
# Font family
# You can use any font that is installed on your machine
# in CSS-like syntax
fontFamily: "Monaco, Lucida Console, Ubuntu Mono, Monospace"
# The size of the font
fontSize: 16
# The height of lines
lineHeight: 1
# The spacing between letters
letterSpacing: 0
# Theme
theme:
background: "transparent"
foreground: "#afafaf"
cursor: "#c7c7c7"
black: "#232628"
red: "#fc4384"
green: "#b3e33b"
yellow: "#ffa727"
blue: "#75dff2"
magenta: "#ae89fe"
cyan: "#708387"
white: "#d5d5d0"
brightBlack: "#626566"
brightRed: "#ff7fac"
brightGreen: "#c8ed71"
brightYellow: "#ebdf86"
brightBlue: "#75dff2"
brightMagenta: "#ae89fe"
brightCyan: "#b1c6ca"
brightWhite: "#f9f9f4"
# Records, feel free to edit them
records:
- delay: 622
content: "\e[?1034h$ "
- delay: 100
content: graphql-inspector diff schema.graphql new.graphql
- delay: 761
content: "\r\n"
- delay: 159
content: "\r\nDetected the following changes (4) between schemas:\r\n\r\n\e[31m✖\e[39m Field \e[1mmodifiedAt\e[22m was removed from object type \e[1mPost\e[22m\r\n\e[32m✔\e[39m Field \e[1mPost.id\e[22m changed type from \e[1mID\e[22m to \e[1mID!\e[22m\r\n\e[32m✔\e[39m Field \e[1mPost.title\e[22m changed type from \e[1mString\e[22m to \e[1mString!\e[22m\r\n\e[32m✔\e[39m Field \e[1mPost.createdAt\e[22m changed type from \e[1mString\e[22m to \e[1mString!\e[22m\r\n\e[91m\e[39m\r\n\e[91mDetected 1 breaking change\e[39m\r\n\e[91m\e[39m\r\n$ "
- delay: 3000
content: clear
- delay: 100
content: "\r\n\e[H\e[2J$ "
- delay: 100
content: graphql-inspector diff schema.graphql schema.graphql
- delay: 526
content: "\r\n"
- delay: 153
content: "\e[32m✔\e[39m \e[92mNo changes detected\e[39m\r\n$ "
- delay: 3000
content: clear
- delay: 100
content: "\r\n\e[H\e[2J$ "
- delay: 100
content: graphql-inspector validate ./documents/*.graphql schema.graphql
- delay: 242
content: "\r\n"
- delay: 162
content: "\r\nDetected 1 invalid document:\r\n\r\n\e[31m✖\e[39m \e[91m./documents/post.graphql:\e[39m\r\n\e[91m\e[39m\r\n\e[91m\e[39m - Cannot query field \e[1mcreatedAtSomePoint\e[22m on type \e[1mPost\e[22m. Did you mean \e[1mcreatedAt\e[22m? \r\n\r\n\r\n$ "
- delay: 3000
content: clear
- delay: 100
content: "\r\n\e[H\e[2J$ "
- delay: 100
content: graphql-inspector validate ./no-documents/*.graphql schema.graphql
- delay: 140
content: "\r\n"
- delay: 155
content: "\e[32m✔\e[39m \e[92mAll documents are valid\e[39m\r\n$ "
- delay: 3000
content: clear
- delay: 100
content: "\r\n\e[H\e[2J$ "
- delay: 100
content: graphql-inspector similar similar.graphql
- delay: 381
content: "\r\n"
- delay: 165
content: "\r\n\r\n\e[32m✔\e[39m \e[92mPost\e[39m\r\nBest match (60%): \e[1mBlogPost\e[22m\r\n\r\n\r\n\e[32m✔\e[39m \e[92mBlogPost\e[39m\r\nBest match (60%): \e[1mPost\e[22m\r\n\r\n\r\n$ "
- delay: 3000
content: clear
- delay: 100
content: graphql-inspector coverage ./no-documents/*.graphql schema.graphql
- delay: 381
content: "\r\n"
- delay: 353
content: "\e[1m\e[92m\e[39m\e[22m\r\n\e[1m\e[92mSchema coverage\e[39m\e[22m\r\n\e[1m\e[92m\e[39m\e[22m\r\ntype \e[1mQuery\e[22m \e[3m{\e[23m\r\n post \e[3m\e[90mx 1\e[39m\e[23m\r\n\e[3m}\e[23m\r\n\e[3m\e[23m\r\ntype \e[1mPost\e[22m \e[3m{\e[23m\r\n id \e[3m\e[90mx 1\e[39m\e[23m\r\n title \e[3m\e[90mx 1\e[39m\e[23m\r\n\e[91m createdAt\e[39m \e[3m\e[90mx 0\e[39m\e[23m\r\n\e[91m modifiedAt\e[39m \e[3m\e[90mx 0\e[39m\e[23m\r\n\e[3m}\e[23m\r\n\e[3m\e[23m\r\n"
- delay: 2500
content: "logout\r\n"