Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into develop
  • Loading branch information
jeffpaul committed Sep 5, 2024
2 parents 2643c68 + 3fc89d7 commit 286473e
Show file tree
Hide file tree
Showing 10 changed files with 702 additions and 730 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build-and-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Composer dependencies
run: composer install --no-dev

- name: Install Dependencies
run: npm install
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/build-release-zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,24 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Cache node_modules
id: cache-node-modules
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
path: node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}

- name: Setup node version and npm cache
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'

- name: Install Composer dependencies
run: composer install --no-dev

- name: Install Node dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm install
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/push-asset-readme-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup node version
- name: Install Composer dependencies
run: composer install --no-dev
- name: Install node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ bower_components
languages
release
vendor
10up-lib
composer.lock
phpunit.xml
.idea
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

> Adds an avatar upload field to user profiles. Generates requested sizes on demand just like Gravatar!
[![Support Level](https://img.shields.io/badge/support-stable-blue.svg)](#support-level) ![PHPCompatibility](https://github.com/10up/simple-local-avatars/actions/workflows/php-compatibility.yml/badge.svg) [![Release Version](https://img.shields.io/github/release/10up/simple-local-avatars.svg)](https://github.com/10up/simple-local-avatars/releases/latest) ![WordPress tested up to version](https://img.shields.io/wordpress/plugin/tested/simple-local-avatars?label=WordPress) [![GPLv2 License](https://img.shields.io/github/license/10up/simple-local-avatars.svg)](https://github.com/10up/simple-local-avatars/blob/develop/LICENSE.md)
[![Support Level](https://img.shields.io/badge/support-stable-blue.svg)](#support-level) ![WordPress tested up to version](https://img.shields.io/wordpress/plugin/tested/simple-local-avatars?label=WordPress) [![GPLv2 License](https://img.shields.io/github/license/10up/simple-local-avatars.svg)](https://github.com/10up/simple-local-avatars/blob/develop/LICENSE.md) [![WordPress Playground Demo](https://img.shields.io/wordpress/plugin/v/simple-local-avatars?logo=wordpress&logoColor=FFFFFF&label=Playground%20Demo&labelColor=3858E9&color=3858E9)](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/10up/simple-local-avatars/trunk/.wordpress-org/blueprints/blueprint.json)

[![E2E Tests](https://github.com/10up/simple-local-avatars/actions/workflows/cypress.yml/badge.svg)](https://github.com/10up/simple-local-avatars/actions/workflows/cypress.yml) [![Linting](https://github.com/10up/simple-local-avatars/actions/workflows/lint.yml/badge.svg)](https://github.com/10up/simple-local-avatars/actions/workflows/lint.yml) ![PHPCompatibility](https://github.com/10up/simple-local-avatars/actions/workflows/php-compatibility.yml/badge.svg) [![PHPUnit](https://github.com/10up/simple-local-avatars/actions/workflows/test.yml/badge.svg)](https://github.com/10up/simple-local-avatars/actions/workflows/test.yml) [![Dependency Review](https://github.com/10up/simple-local-avatars/actions/workflows/dependency-review.yml/badge.svg)](https://github.com/10up/simple-local-avatars/actions/workflows/dependency-review.yml)

## Features

Expand Down
103 changes: 61 additions & 42 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,63 @@
{
"name": "10up/simple-local-avatars",
"description": "Adds an avatar upload field to user profiles. Generates requested sizes on demand just like Gravatar!",
"type": "wordpress-plugin",
"keywords": [
"wordpress",
"10up"
],
"homepage": "https://github.com/10up/simple-local-avatars",
"license": ["GPL-2.0-or-later"],
"authors": [
{
"name": "10up",
"homepage": "https://10up.com/"
}
],
"support": {
"issues": "https://github.com/10up/simple-local-avatars/issues",
"source": "https://github.com/10up/simple-local-avatars"
},
"require": {
"php": ">=7.4"
},
"require-dev": {
"10up/phpcs-composer": "dev-master",
"10up/wp_mock": "0.4.2",
"yoast/phpunit-polyfills": "^1.0"
},
"scripts": {
"lint": [
"phpcs . --runtime-set testVersion 7.4-"
],
"lint-fix": [
"phpcbf ."
],
"phpcs:compat": "vendor/bin/phpcs simple-local-avatars.php includes --standard=PHPCompatibilityWP --extensions=php --runtime-set testVersion 7.4-"
},
"minimum-stability": "dev",
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
"name": "10up/simple-local-avatars",
"description": "Adds an avatar upload field to user profiles. Generates requested sizes on demand just like Gravatar!",
"type": "wordpress-plugin",
"keywords": [
"wordpress",
"10up"
],
"homepage": "https://github.com/10up/simple-local-avatars",
"license": ["GPL-2.0-or-later"],
"authors": [
{
"name": "10up",
"homepage": "https://10up.com/"
}
],
"support": {
"issues": "https://github.com/10up/simple-local-avatars/issues",
"source": "https://github.com/10up/simple-local-avatars"
},
"require": {
"php": ">=7.4",
"10up/wp-compat-validation-tool": "dev-trunk"
},
"require-dev": {
"10up/phpcs-composer": "dev-master",
"10up/wp_mock": "0.4.2",
"yoast/phpunit-polyfills": "^1.0"
},
"scripts": {
"lint": [
"phpcs . --runtime-set testVersion 7.4-"
],
"lint-fix": [
"phpcbf ."
],
"phpcs:compat": "vendor/bin/phpcs simple-local-avatars.php includes --standard=PHPCompatibilityWP --extensions=php --runtime-set testVersion 7.4-",
"post-install-cmd": [
"./10up-lib/wp-compat-validation-tool/replace-namespace.sh SimpleLocalAvatarsValidator"
],
"post-update-cmd": [
"./10up-lib/wp-compat-validation-tool/replace-namespace.sh SimpleLocalAvatarsValidator"
]
},
"minimum-stability": "dev",
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"composer/installers": true
}
},
"repositories": [
{
"type": "git",
"url": "https://github.com/10up/wp-compat-validation-tool.git"
}
],
"extra": {
"installer-paths": {
"./{$name}/": ["10up/wp-compat-validation-tool"]
}
}
}
Loading

0 comments on commit 286473e

Please sign in to comment.