generate-schema-file.sh 314 B

12345678910111213
  1. #!/bin/bash
  2. SCRIPT_PATH="$(dirname "${BASH_SOURCE[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