diff --git a/finder.php b/finder.php index 85ad6ff..f823c86 100644 --- a/finder.php +++ b/finder.php @@ -2,16 +2,16 @@ return \StubsGenerator\Finder::create() ->in( array( - 'source/dokan', + 'source/dokan-lite', ) ) - ->notPath('customizer') - ->notPath('debug') ->append( \StubsGenerator\Finder::create() - ->in(['source/dokan']) + ->in(['source/dokan-lite']) ->files() ->depth('< 1') ->path('dokan.php') ) + // ->notPath('customizer') + // ->notPath('debug') ->sortByName(true) ; diff --git a/generate.sh b/generate.sh index 2d5e665..a59fc94 100755 --- a/generate.sh +++ b/generate.sh @@ -12,7 +12,7 @@ set -e test -f "$FILE" || touch "$FILE" test -f "$FILE_CONSTANTS" || touch "$FILE_CONSTANTS" -test -d "source/dokan" +test -d "source/dokan-lite" # Exclude globals, constants. "$(dirname "$0")/vendor/bin/generate-stubs" \ diff --git a/phpstan.neon b/phpstan.neon index ab03540..4920234 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,8 +1,8 @@ parameters: paths: - - freemius-stubs.php + - dokan-stubs.php scanFiles: - - freemius-constants-stubs.php + - dokan-constants-stubs.php bootstrapFiles: - bootstrap.php level: 5 diff --git a/release-latest-versions.sh b/release-latest-versions.sh index afb531e..c721b43 100755 --- a/release-latest-versions.sh +++ b/release-latest-versions.sh @@ -12,7 +12,7 @@ WC_JSON="$(wget -q -O- "https://api.wordpress.org/plugins/info/1.0/dokan-lite.js #for V in 3.5 3.6 3.7 3.8 3.9 \ # 4.0 4.1 4.2 4.3 4.4 4.5 4.6 4.8 4.9 \ # 5.0 5.1 5.2 5.3 5.4 5.5 5.6 5.7 5.8 5.9; do -for V in 3.5 3.6 3.7 3.8 3.9 3.10 3.11; do +for V in 3.11; do # Find latest version #printf -v JQ_FILTER '."package"."versions"[]."version" | select(test("^%s\\\\.%s\\\\.\\\\d+$"))' "${V%.*}" "${V#*.}" printf -v JQ_FILTER '."versions" | keys[] | select(test("^%s\\\\.%s\\\\.\\\\d+$"))' "${V%.*}" "${V#*.}"