-
Notifications
You must be signed in to change notification settings - Fork 0
01: Repo bootstrap #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
a9ee8bb
Add repo skeleton: composer manifest, license, dotfiles, README stub
nikolaystrikhar a659e02
Address PR review: pin WP stubs to the 6.4 floor, tighten manifest
nikolaystrikhar 9637571
Use the shared StellarWP dev mailbox as the package author
nikolaystrikhar 1ddb881
Publish as stellarwp/plugin-absorber
nikolaystrikhar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| root = true | ||
|
|
||
| [*] | ||
| charset = utf-8 | ||
| end_of_line = lf | ||
| insert_final_newline = true | ||
| trim_trailing_whitespace = true | ||
| indent_style = tab | ||
|
|
||
| [*.{yml,yaml,json,md}] | ||
| indent_style = space | ||
| indent_size = 4 | ||
|
|
||
| [*.md] | ||
| trim_trailing_whitespace = false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| * text=auto eol=lf | ||
|
|
||
| /.github export-ignore | ||
| /docs export-ignore | ||
| /tests export-ignore | ||
| /.editorconfig export-ignore | ||
| /.env.testing export-ignore | ||
| /.env.testing.slic export-ignore | ||
| /.gitattributes export-ignore | ||
| /.gitignore export-ignore | ||
| /codeception.dist.yml export-ignore | ||
| /codeception.slic.yml export-ignore | ||
| /cspell.json export-ignore | ||
| /engineering-plan.md export-ignore | ||
| /phpstan.neon.dist export-ignore |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| /vendor/ | ||
| /composer.lock | ||
| /tests/_output/* | ||
| !/tests/_output/.gitkeep | ||
| /phpstan-cache/ | ||
| /codeception.yml | ||
| /.env.testing.local | ||
| .DS_Store | ||
| .idea/ | ||
| .vscode/ |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| # Plugin Absorber | ||
|
|
||
| Safely load bundled WordPress plugins inside a host plugin — togglable or always-on — without | ||
| re-declaration fatal errors. | ||
|
|
||
| ## Install | ||
|
|
||
| ```bash | ||
| composer require stellarwp/plugin-absorber | ||
| ``` | ||
|
|
||
| **Use [Strauss](https://github.com/stellarwp/global-docs/blob/main/docs/strauss-setup.md).** | ||
| Two or more plugins shipping different versions of this library will collide otherwise. | ||
|
|
||
| > **Do not let `extra.strauss.constant_prefix` rewrite a sub-plugin's `plugin_loaded_constant`.** | ||
| > Those are real, shared runtime constants — the whole safety mechanism depends on the bundled | ||
| > copy and the standalone defining the *same* name. Add them to `exclude_from_copy`. | ||
|
|
||
| Requires PHP 7.4+ and WordPress 6.4+. | ||
|
|
||
| ## Usage | ||
|
|
||
| _Added as each piece lands._ | ||
|
|
||
| ## License | ||
|
|
||
| This program is free software; you can redistribute it and/or modify it under the terms of the | ||
| GNU General Public License as published by the Free Software Foundation; either version 2 of the | ||
| License, or (at your option) any later version. See [`LICENSE`](LICENSE). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| { | ||
| "name": "stellarwp/plugin-absorber", | ||
| "description": "Safely load bundled WordPress plugins inside a host plugin, togglable or always-on, without fatal errors.", | ||
| "type": "library", | ||
| "license": "GPL-2.0-or-later", | ||
| "minimum-stability": "stable", | ||
| "authors": [ | ||
| { | ||
| "name": "StellarWP", | ||
| "email": "dev@stellarwp.com" | ||
| } | ||
| ], | ||
| "require": { | ||
| "php": ">=7.4", | ||
| "stellarwp/container-contract": "^1.0" | ||
| }, | ||
| "require-dev": { | ||
| "codeception/module-asserts": "^1.0", | ||
| "codeception/util-universalframework": "^1.0", | ||
| "lucatume/di52": "^3.0", | ||
| "lucatume/wp-browser": "^3.6.5", | ||
| "php-stubs/wordpress-stubs": "~6.4.0", | ||
| "phpstan/phpstan": "^1.10", | ||
| "phpunit/phpunit": "^9.5", | ||
| "szepeviktor/phpstan-wordpress": "^1.3" | ||
| }, | ||
| "autoload": { | ||
| "psr-4": { | ||
| "Nexcess\\PluginAbsorber\\": "src/" | ||
| } | ||
| }, | ||
| "autoload-dev": { | ||
| "psr-4": { | ||
| "Nexcess\\PluginAbsorber\\Tests\\": "tests/", | ||
| "Nexcess\\PluginAbsorber\\Tests\\Support\\": "tests/_support", | ||
| "Nexcess\\PluginAbsorber\\Tests\\Unit\\": "tests/unit" | ||
| } | ||
| }, | ||
| "scripts": { | ||
| "test:analysis": [ | ||
| "phpstan analyse -c phpstan.neon.dist --memory-limit=512M" | ||
| ], | ||
| "test:unit": [ | ||
| "slic run unit" | ||
| ] | ||
| }, | ||
| "config": { | ||
| "optimize-autoloader": true, | ||
| "preferred-install": "dist", | ||
| "platform": { | ||
| "php": "7.4" | ||
| }, | ||
| "allow-plugins": {} | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| { | ||
| "version": "0.2", | ||
| "language": "en", | ||
| "words": [ | ||
| "absorber", | ||
| "codeception", | ||
| "fatals", | ||
| "kadence", | ||
| "learndash", | ||
| "multisite", | ||
| "nexcess", | ||
| "packagist", | ||
| "phpstan", | ||
| "referer", | ||
| "slic", | ||
| "stellarwp", | ||
| "strauss", | ||
| "unhookable", | ||
| "uopz", | ||
| "wpunit" | ||
| ], | ||
| "ignorePaths": [ | ||
| "vendor/**", | ||
| "tests/_output/**", | ||
| "composer.lock" | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.