Skip to content

Commit

Permalink
chore!: remove vendor from repo and cleanup zip. (#73)
Browse files Browse the repository at this point in the history
* chore!: remove `vendor` from repo and cleanup zip.

* chore: update readme
  • Loading branch information
justlevine committed Jun 16, 2024
1 parent ac31058 commit 997adb8
Show file tree
Hide file tree
Showing 23 changed files with 258 additions and 1,609 deletions.
6 changes: 1 addition & 5 deletions .distignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
/docker
/docker-output
/docs
/img
/phpstan
/plugin-build
/tests

.coveralls.yml
Expand All @@ -20,18 +18,16 @@
.DS_Store
.env
.env.dist
.gitattributes
.gitignore
.phpcs.xml
.phpcs.xml.dist
.travis.yml
CHANGELOG.md
codeception.dist.yml
codeception.yml
composer.json
composer.lock
docker-compose.yml
phpstan.neon.dist
phpunit.xml.dist
phpstan.neon
README.md
schema.graphql
18 changes: 0 additions & 18 deletions .gitattributes

This file was deleted.

10 changes: 5 additions & 5 deletions .github/workflows/upload-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ jobs:
tools: composer

- name: Install dependencies
run: |
composer install --no-dev --optimize-autoloader
uses: ramsey/composer-install@v3
with:
composer-options: "--no-progress --no-dev --optimize-autoloader"

- name: Create Artifact
- name: Build and zip
run: |
mkdir plugin-build
composer archive -vvv --format=zip --file="plugin-build/wp-graphql-facetwp"
composer run-script zip
- name: Upload artifact
uses: actions/upload-artifact@v4
Expand Down
7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ plugin-build
auth.json

# Composer deps
!vendor
vendor
!vendor-prefixed
vendor/*
!vendor/autoload.php
!vendor/composer
vendor/composer/*/
!vendor-prefixed/.gitkeep

# NPM deps
node_modules
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

## [Unreleased]

- chore!: Remove `vendor` and `vendor-prefixed/*` from the GitHub repository.
- chore: Update Strauss to v0.19.1 and Composer dependencies.
- ci: Cleanup zip and release workflow.

## v0.5.0

Expand Down
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,19 @@ This plugin has been tested and is functional with SearchWP.
* PHP 7.4-8.1.x
* WordPress 5.4.1+
* WPGraphQL 1.6.0+ (1.9.0+ recommended)
* FacetWP 4.0
* FacetWP 4.0+

## Quick Install

1. Install & activate [WPGraphQL](https://www.wpgraphql.com/).
2. Install & activate [FacetWP](https://facetwp.com/).
3. Download the [latest release](https://github.com/hsimah-services/wp-graphql-facetwp/releases) `.zip` file, upload it to your WordPress install, and activate the plugin.
3. Download the `wp-graphql-facetwp.zip` file from the [latest release](https://github.com/hsimah-services/wp-graphql-facetwp/releases/latest) upload it to your WordPress install, and activate the plugin.

> [!IMPORTANT]
>
> Make sure you are downloading the [`wp-graphql-facetwp.zip`](https://github.com/hsimah-services/wp-graphql-facetwp/releases/latest/download/wp-graphql-facetwp.zip) file from the releases page, not the `Source code (zip)` file nor a clone of the repository.
>
> If you wish to use the source code, you will need to run `composer install` inside the plugin folder to install the required dependencies.
### With Composer

Expand Down
33 changes: 9 additions & 24 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"readme": "README.md",
"funding": [
{
"type":"github",
"type": "github",
"url": "https://github.com/sponsors/AxeWP"
}
],
Expand Down Expand Up @@ -91,7 +91,7 @@
"phpstan/phpstan": "^1.8",
"phpstan/extension-installer": "^1.1",
"szepeviktor/phpstan-wordpress": "^1.1",
"wp-graphql/wp-graphql-testcase": "~3.0.1",
"wp-graphql/wp-graphql-testcase": "~3.3.0",
"axepress/wp-graphql-stubs": "^1.13",
"axepress/wp-graphql-cs": "^2.0.0-beta",
"wp-cli/wp-cli-bundle": "^2.8.1",
Expand Down Expand Up @@ -140,26 +140,11 @@
"vendor/bin/phpstan analyze --ansi --memory-limit=1G"
]
},
"archive": {
"name": "wp-graphql-facetwp",
"exclude": [
"/.*",
"!.wordpress-org",
"bin",
"docker",
"docs",
"phpstan",
"plugin-build",
"tests",
"!vendor",
"/codeception.dist.yml",
"/codeception.yml",
"/composer.json",
"/composer.lock",
"/docker-compose.yml",
"/phpstan.neon.dist",
"/phpunit.xml.dist",
"/README.md"
]
}
"zip": [
"composer install --no-dev --optimize-autoloader",
"mkdir -p plugin-build/wp-graphql-facetwp",
"rsync -rc --exclude-from=.distignore --exclude=plugin-build . plugin-build/wp-graphql-facetwp/ --delete --delete-excluded -v",
"cd plugin-build ; zip -r wp-graphql-facetwp.zip wp-graphql-facetwp",
"rm -rf plugin-build/wp-graphql-facetwp/"
]
}
Loading

0 comments on commit 997adb8

Please sign in to comment.