...

Text file src/github.com/playwright-community/playwright-go/scripts/generate-api.sh

Documentation: github.com/playwright-community/playwright-go/scripts

     1#!/bin/bash
     2
     3set -e
     4set +x
     5PWD=$(pwd -P)
     6
     7$PWD/scripts/apply-patch.sh
     8
     9go run scripts/install-browsers/main.go
    10
    11echo "Generating Interfaces"
    12node scripts/generate-interfaces.js > generated-interfaces.go
    13go fmt generated-interfaces.go > /dev/null
    14echo "Generated Interfaces"
    15
    16PLAYWRIGHT_DIR="playwright"
    17
    18node $PLAYWRIGHT_DIR/utils/doclint/generateGoApi.js
    19mv $PLAYWRIGHT_DIR/utils/doclint/generate_types/go/generated-{enums,structs}.go .
    20go fmt generated-{enums,structs}.go > /dev/null
    21
    22echo "Updating README"
    23go run scripts/update-readme-versions/main.go
    24
    25git submodule update
    26

View as plain text