Skip to content

Commit

Permalink
Update and simplify plugin structure
Browse files Browse the repository at this point in the history
  • Loading branch information
pfefferle committed Nov 29, 2024
1 parent 711a7f5 commit a78401f
Show file tree
Hide file tree
Showing 11 changed files with 173 additions and 575 deletions.
8 changes: 0 additions & 8 deletions .codeclimate.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .distignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ push.sh
phpunit.xml
phpunit.xml.dist
phpcs.xml
README.md
readme.md
.travis.yml
.distignore
.gitignore
Expand Down
6 changes: 1 addition & 5 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,4 @@ charset = utf-8

[*.php]
indent_style = tab
indent_size = 4

[*.{js,json}]
indent_style = space
indent_size = 2
indent_size = 4
1 change: 1 addition & 0 deletions .github/workflows/update-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ jobs:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SLUG: indieweb
README_NAME: readme.md
81 changes: 0 additions & 81 deletions Gruntfile.js

This file was deleted.

133 changes: 66 additions & 67 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,69 +1,68 @@
{
"name": "indiewordpress/wordpress-indieweb",
"description": "IndieWeb for WordPress!",
"require": {
"php": ">=5.6.0",
"composer/installers": "^1.0 | ^2.1"
},
"config": {
"allow-plugins": {
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"extra": {
"installer-name": "indieweb"
},
"type": "wordpress-plugin",
"license": "MIT",
"authors": [
{
"name": "Matthias Pfefferle",
"homepage": "http://notiz.blog"
},
{
"name": "David Shanske",
"homepage": "https://david.shanske.com"
}
],
"support": {
"issues": "https://github.com/indieweb/wordpress-indieweb/issues",
"source": "https://github.com/indieweb/wordpress-indieweb"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "*",
"squizlabs/php_codesniffer": "*",
"phpcompatibility/php-compatibility": "*",
"wp-coding-standards/wpcs": "*",
"phpcompatibility/phpcompatibility-wp": "*",
"php-parallel-lint/php-parallel-lint": "^1.3",
"wp-cli/i18n-command": "^2.2",
"sebastian/phpcpd": "^3.0 || ^5.0 || ^6.0",
"yoast/phpunit-polyfills": "^3.0"
},
"prefer-stable" : true,
"scripts": {
"test": [
"composer install",
"bin/install-wp-tests.sh wordpress wordpress wordpress",
"vendor/bin/phpunit"
],
"install-codestandards": [
"Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run"
],
"lint": "./vendor/bin/phpcs -n -q",
"setup-local-tests": "bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1 latest",
"make-pot": "./vendor/bin/wp i18n make-pot . languages/wordpress-indieweb.pot",
"lint:php": "@php ./vendor/bin/parallel-lint --exclude .git --exclude vendor --exclude node_modules .",
"phpcs": "./vendor/bin/phpcs",
"phpcpd": "./vendor/bin/phpcpd --fuzzy --exclude .git --exclude vendor --exclude node_modules .",
"phpunit": "./vendor/bin/phpunit",
"phpcbf": "./vendor/bin/phpcbf --standard=phpcs.xml",
"post-update-cmd": [
"@phpcbf",
"@lint",
"@make-pot"
]

}
"name": "indiewordpress/wordpress-indieweb",
"description": "IndieWeb for WordPress!",
"require": {
"php": ">=5.6.0",
"composer/installers": "^1.0 | ^2.1"
},
"config": {
"allow-plugins": {
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"extra": {
"installer-name": "indieweb"
},
"type": "wordpress-plugin",
"license": "MIT",
"authors": [
{
"name": "Matthias Pfefferle",
"homepage": "http://notiz.blog"
},
{
"name": "David Shanske",
"homepage": "https://david.shanske.com"
}
],
"support": {
"issues": "https://github.com/indieweb/wordpress-indieweb/issues",
"source": "https://github.com/indieweb/wordpress-indieweb"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "*",
"squizlabs/php_codesniffer": "*",
"phpcompatibility/php-compatibility": "*",
"wp-coding-standards/wpcs": "*",
"phpcompatibility/phpcompatibility-wp": "*",
"php-parallel-lint/php-parallel-lint": "^1.3",
"wp-cli/i18n-command": "^2.2",
"sebastian/phpcpd": "^3.0 || ^5.0 || ^6.0",
"yoast/phpunit-polyfills": "^3.0"
},
"prefer-stable" : true,
"scripts": {
"test": [
"composer install",
"bin/install-wp-tests.sh wordpress wordpress wordpress",
"vendor/bin/phpunit"
],
"install-codestandards": [
"Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run"
],
"lint": "./vendor/bin/phpcs -n -q",
"setup-local-tests": "bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1 latest",
"make-pot": "./vendor/bin/wp i18n make-pot . languages/wordpress-indieweb.pot",
"lint:php": "@php ./vendor/bin/parallel-lint --exclude .git --exclude vendor --exclude node_modules .",
"phpcs": "./vendor/bin/phpcs",
"phpcpd": "./vendor/bin/phpcpd --fuzzy --exclude .git --exclude vendor --exclude node_modules .",
"phpunit": "./vendor/bin/phpunit",
"phpcbf": "./vendor/bin/phpcbf --standard=phpcs.xml",
"post-update-cmd": [
"@phpcbf",
"@lint",
"@make-pot"
]
}
}
11 changes: 8 additions & 3 deletions languages/wordpress-indieweb.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,40 @@
# This file is distributed under the MIT.
msgid ""
msgstr ""
"Project-Id-Version: IndieWeb 4.0.4\n"
"Project-Id-Version: IndieWeb 4.0.5\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wordpress-indieweb\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2024-03-09T15:17:03+00:00\n"
"POT-Creation-Date: 2024-11-29T07:39:36+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.9.0\n"
"X-Generator: WP-CLI 2.11.0\n"
"X-Domain: indieweb\n"

#. Plugin Name of the plugin
#: indieweb.php
msgid "IndieWeb"
msgstr ""

#. Plugin URI of the plugin
#: indieweb.php
msgid "https://github.com/indieweb/wordpress-indieweb"
msgstr ""

#. Description of the plugin
#: indieweb.php
msgid "Interested in connecting your WordPress site to the IndieWeb?"
msgstr ""

#. Author of the plugin
#: indieweb.php
msgid "IndieWebCamp WordPress Outreach Club"
msgstr ""

#. Author URI of the plugin
#: indieweb.php
msgid "https://indieweb.org/WordPress_Outreach_Club"
msgstr ""

Expand Down
57 changes: 26 additions & 31 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,28 @@
{
"name": "wordpress-indieweb",
"description": "IndieWeb for WordPress!",
"repository": {
"type": "git",
"url": "https://github.com/indieweb/wordpress-indieweb.git"
},
"author": {
"name": "Matthias Pfefferle",
"web": "https://notiz.blog"
},
"devDependencies": {
"genericons-neue": "^4.0.5",
"grunt": "^1.6.1",
"grunt-checktextdomain": "^1.0.1",
"grunt-contrib-copy": "^1.0.0",
"grunt-contrib-sass": "^2.0.0",
"grunt-wp-readme-to-markdown": "~2.1.0",
"simple-icons": "^13.0.0"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/indieweb/wordpress-indieweb/issues"
},
"homepage": "https://github.com/indieweb/wordpress-indieweb",
"keywords": [
"indieweb",
"wordpress"
],
"scripts": {
"build-icons": "node static/js/simpleicons.js"
}
"name": "wordpress-indieweb",
"description": "IndieWeb for WordPress!",
"repository": {
"type": "git",
"url": "https://github.com/indieweb/wordpress-indieweb.git"
},
"author": {
"name": "Matthias Pfefferle",
"web": "https://notiz.blog"
},
"devDependencies": {
"genericons-neue": "^4.0.5",
"simple-icons": "^13.0.0"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/indieweb/wordpress-indieweb/issues"
},
"homepage": "https://github.com/indieweb/wordpress-indieweb",
"keywords": [
"indieweb",
"wordpress"
],
"scripts": {
"build-icons": "node static/js/simpleicons.js"
}
}
2 changes: 1 addition & 1 deletion phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
</rule>
<rule ref="WordPress.WP.DeprecatedFunctions" />
<rule ref="WordPress-Extra" />
<rule ref="WordPress.WP.I18n"/>
<rule ref="WordPress.WP.I18n"/>
<config name="text_domain" value="indieweb,default"/>
</ruleset>
Loading

0 comments on commit a78401f

Please sign in to comment.