scripts/generate.sh in stigg-api-client-0.1.1 vs scripts/generate.sh in stigg-api-client-0.3.0
- old
+ new
@@ -1,14 +1,17 @@
# stitch the operation files together
cat ../api-client-schema/src/operations/fragments.graphql > operations.graphql
cat ../api-client-schema/src/operations/queries.graphql >> operations.graphql
cat ../api-client-schema/src/operations/mutations.graphql >> operations.graphql
+cat ../api-client-schema/src/operations/subscriptions.graphql >> operations.graphql
-cp ../api-client-schema/src/schema.json schema.json
+cp ../api-client-schema/src/generated/schema.json schema.json
cat <<-EOF > schema.json
$(echo { \"data\": ) $(cat schema.json) $(echo })
EOF
node scripts/generate-operations.mjs
rubocop -a lib/stigg/generated/operations.rb
+
+printf "api-client-ruby generated!\n"