-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change Details -------------- Use symplify/monorepo-split-github-action to split monorepo to individual repositories Create a way to ignore some files from being deployed Move docs to single point instead of per-package. Add type-coverage checks
- Loading branch information
Showing
24 changed files
with
132 additions
and
68 deletions.
There are no files selected for viewing
This file contains 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 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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,33 @@ | ||
# Box WordPress Editor Tools | ||
|
||
A collection of tools for modifying the WordPress Editor. | ||
|
||
## Quick Start! | ||
|
||
The tools here don't load automatically, so you need to get them going. | ||
The quickest way would be to add to `functions.php`: | ||
```php | ||
( new \Boxuk\BoxWpEditorTools\BlockLoader() )->init(); // loads all block.json from /wp-content/themes/{theme}/build/**/*/block.json | ||
( new \Boxuk\BoxWpEditorTools\Comments() )->init(); // disables comments | ||
( new \Boxuk\BoxWpEditorTools\EditorCleanup() )->init(); // Cleans the block-editor to prevent loading plugins | ||
( new \Boxuk\BoxWpEditorTools\PostTypes() )->init(); // registers post-types defined in /wp-content/themes/{theme}/post-types.json | ||
( new \Boxuk\BoxWpEditorTools\TemplatePersistence() )->init(); // saves template changes to disk, not to the database. | ||
( new \Boxuk\BoxWpEditorTools\Security\Security() )->init(); // Enables security hardening. | ||
``` | ||
There's more options than that, so checkout the links below: | ||
|
||
## Features | ||
|
||
- [Asset Loader](./docs/AssetLoader.md) - help load assets generated by [wp-scripts](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-scripts/). | ||
- [Block Loader](./docs/BlockLoader.md) - auto-loads blocks to the editor. | ||
- [Comment Disablement](./docs/Comments.md) - disables comments. | ||
- [Editor Cleanup](./docs/EditorCleanup.md) - removes some unnecessary bits from the block editor. | ||
- [Post Type Registrations](./docs/PostTypes.md) - speeds up post-type registration with a single JSON file. | ||
- [Template Persistence](./docs/TemplatePersistence.md) - speeds up template modifications by saving to disk instead of the database. | ||
- [Security](./docs/Security.md) - Adds security hardening. | ||
|
||
## Contributing | ||
|
||
The dependancies include [WordPress Stubs](https://github.com/php-stubs/wordpress-stubs), so your IDE should automatically include type information for all WP core functions. If they're not, it's likely a mis-configuration of your IDE. There's helper guides in the WordPress Stubs repo. | ||
|
||
Working on the repo requires packaging this into a functioning WordPress installation. A ready-to-go solution is yet to be developed so a PR is welcome, preferrably where Docker is the only dependancy. |
This file contains 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,16 @@ | ||
# Box WordPress Iconography Support | ||
|
||
Add the ability to add icons inline to your content in the WordPress block editor. | ||
|
||
## Quick Start! | ||
~Add this plugin to your WordPress site and off you go! If you're using composer, then | ||
it's as simple as `composer require boxuk/wp-iconography`.~ | ||
|
||
We need to setup packaging this as a plugin to be distrubutable, so watch this space - for now you'll need to include this repo and build the assets yourself using `npm run build`. | ||
|
||
## Contributing | ||
Working on the repo requires packaging this into a functioning WordPress installation. A ready-to-go solution is yet to be developed so a PR is welcome, preferrably where Docker is the only dependancy. | ||
|
||
This package doesn't necessarily require composer dependancies to be installed, so `npm install` and `npm run start` should get you started. | ||
|
||
The composer dependancies include [WordPress Stubs](https://github.com/php-stubs/wordpress-stubs), so your IDE should automatically include type information for all WP core functions if you need to edit the PHP file. If they're not, it's likely a mis-configuration of your IDE. There's helper guides in the WordPress Stubs repo. |
This file contains 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,5 @@ | ||
# WP Packages | ||
|
||
Contents: | ||
- [Editor Tools](./editor-tools/index.md) | ||
- [Iconography](./iconography/index.md) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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,2 @@ | ||
node_modules | ||
tests |
This file contains 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 |
---|---|---|
@@ -1,33 +1,7 @@ | ||
# Box WordPress Editor Tools | ||
Please do not submit any Pull Requests here. They will be closed. | ||
--- | ||
|
||
A collection of tools for modifying the WordPress Editor. | ||
Please submit your PR here instead: https://github.com/boxuk/wp-packages | ||
|
||
## Quick Start! | ||
|
||
The tools here don't load automatically, so you need to get them going. | ||
The quickest way would be to add to `functions.php`: | ||
```php | ||
( new \Boxuk\BoxWpEditorTools\BlockLoader() )->init(); // loads all block.json from /wp-content/themes/{theme}/build/**/*/block.json | ||
( new \Boxuk\BoxWpEditorTools\Comments() )->init(); // disables comments | ||
( new \Boxuk\BoxWpEditorTools\EditorCleanup() )->init(); // Cleans the block-editor to prevent loading plugins | ||
( new \Boxuk\BoxWpEditorTools\PostTypes() )->init(); // registers post-types defined in /wp-content/themes/{theme}/post-types.json | ||
( new \Boxuk\BoxWpEditorTools\TemplatePersistence() )->init(); // saves template changes to disk, not to the database. | ||
( new \Boxuk\BoxWpEditorTools\Security\Security() )->init(); // Enables security hardening. | ||
``` | ||
There's more options than that, so checkout the links below: | ||
|
||
## Features | ||
|
||
- [Asset Loader](./docs/AssetLoader.md) - help load assets generated by [wp-scripts](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-scripts/). | ||
- [Block Loader](./docs/BlockLoader.md) - auto-loads blocks to the editor. | ||
- [Comment Disablement](./docs/Comments.md) - disables comments. | ||
- [Editor Cleanup](./docs/EditorCleanup.md) - removes some unnecessary bits from the block editor. | ||
- [Post Type Registrations](./docs/PostTypes.md) - speeds up post-type registration with a single JSON file. | ||
- [Template Persistence](./docs/TemplatePersistence.md) - speeds up template modifications by saving to disk instead of the database. | ||
- [Security](./docs/Security.md) - Adds security hardening. | ||
|
||
## Contributing | ||
|
||
The dependancies include [WordPress Stubs](https://github.com/php-stubs/wordpress-stubs), so your IDE should automatically include type information for all WP core functions. If they're not, it's likely a mis-configuration of your IDE. There's helper guides in the WordPress Stubs repo. | ||
|
||
Working on the repo requires packaging this into a functioning WordPress installation. A ready-to-go solution is yet to be developed so a PR is welcome, preferrably where Docker is the only dependancy. | ||
This repository is what we call a "subtree split": a read-only subset of that main repository. | ||
We're looking forward to your PR there! |
This file contains 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,2 @@ | ||
node_modules | ||
tests |
This file contains 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 |
---|---|---|
@@ -1,16 +1,7 @@ | ||
# Box WordPress Iconography Support | ||
Please do not submit any Pull Requests here. They will be closed. | ||
--- | ||
|
||
Add the ability to add icons inline to your content in the WordPress block editor. | ||
Please submit your PR here instead: https://github.com/boxuk/wp-packages | ||
|
||
## Quick Start! | ||
~Add this plugin to your WordPress site and off you go! If you're using composer, then | ||
it's as simple as `composer require boxuk/wp-iconography`.~ | ||
|
||
We need to setup packaging this as a plugin to be distrubutable, so watch this space - for now you'll need to include this repo and build the assets yourself using `npm run build`. | ||
|
||
## Contributing | ||
Working on the repo requires packaging this into a functioning WordPress installation. A ready-to-go solution is yet to be developed so a PR is welcome, preferrably where Docker is the only dependancy. | ||
|
||
This package doesn't necessarily require composer dependancies to be installed, so `npm install` and `npm run start` should get you started. | ||
|
||
The composer dependancies include [WordPress Stubs](https://github.com/php-stubs/wordpress-stubs), so your IDE should automatically include type information for all WP core functions if you need to edit the PHP file. If they're not, it's likely a mis-configuration of your IDE. There's helper guides in the WordPress Stubs repo. | ||
This repository is what we call a "subtree split": a read-only subset of that main repository. | ||
We're looking forward to your PR there! |
This file contains 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 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 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 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 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,2 @@ | ||
# Tests | ||
Do not put tests here. This should be used for configuring the test environment. Your tests should live with your package. |
This file contains 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 |
---|---|---|
|
@@ -23,6 +23,7 @@ | |
}, | ||
"test": {}, | ||
"test:unit": {}, | ||
"test:snapshots": {} | ||
"test:snapshots": {}, | ||
"type-coverage": {} | ||
} | ||
} |