generate_api_json.sh 413 B

1234567891011
  1. #!/bin/bash
  2. # Relies on the user having cloned the playwright repository in the directory directly adjacent to this repo
  3. ./clean_generated_files.sh
  4. mkdir bin; /bin/true
  5. pushd ../playwright
  6. git pull
  7. node utils/doclint/generateApiJson.js > ../playwright-perl/api.json
  8. popd
  9. cp playwright_server bin/playwright_server
  10. API="$(<api.json)"
  11. sed -i -e '/%REPLACEME%/r api.json' -e 's/%REPLACEME%//g' bin/playwright_server