generate-schema-file.sh 295 B

12345678910111213
  1. #!/bin/sh
  2. SCRIPT_PATH="$(dirname "$0")"
  3. cd $SCRIPT_PATH/..
  4. if [ -d schema ]
  5. then
  6. echo "Generating schema file from schema directory..."
  7. find schema -type f -exec cat {} \; > schema.graphql
  8. echo "Done"
  9. else
  10. echo "Schema directory is empty, skipping schema file generation..."
  11. fi