-
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.
feat: add a way to zip wordpress files to enhance workflow
- Loading branch information
1 parent
df6fea2
commit 7fd3ad5
Showing
9 changed files
with
1,489 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/.github export-ignore |
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,18 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": ["config:base"], | ||
"platform": "github", | ||
"timezone": "Africa/Nairobi", | ||
"packageRules": [ | ||
{ | ||
"updateTypes": ["minor", "patch"], | ||
"automerge": false | ||
} | ||
], | ||
"vulnerabilityAlerts": { | ||
"enabled": true, | ||
"schedule": ["after 9am on Sunday"], | ||
"commitMessagePrefix": "[SECURITY]" | ||
} | ||
} | ||
|
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 |
---|---|---|
@@ -1,8 +1,38 @@ | ||
# Ignore everything in the root except the "wp-content" directory. | ||
!.gitignore | ||
!wp-content/ | ||
# Ignore everything in the root directory. | ||
vendor/ | ||
wp-admin/ | ||
wp-includes/ | ||
index.php | ||
license.txt | ||
readme.html | ||
wp-activate.php | ||
wp-blog-header.php | ||
wp-comments-post.php | ||
wp-config-sample.php | ||
wp-config.php | ||
wp-cron.php | ||
wp-links-opml.php | ||
wp-load.php | ||
wp-login.php | ||
wp-mail.php | ||
wp-settings.php | ||
wp-signup.php | ||
wp-trackback.php | ||
xmlrpc.php | ||
|
||
# Ignore everything in the "wp-content" directory, except the "plugins" and "themes" directories. | ||
# track these files, if they exist | ||
wp-content/* | ||
!wp-content/plugins/ | ||
!wp-content/themes/ | ||
!wp-content/uploads/ | ||
# replace this with the theme you are using | ||
!wp-content/themes/twentytwentyfour/ | ||
wp-content/themes/twentytwentythree/ | ||
wp-content/themes/twentytwentytwo/ | ||
!.gitignore | ||
!.editorconfig | ||
!.phpcs.xml.dist | ||
!README.md | ||
!CHANGELOG.md | ||
!composer.json | ||
!.wordpress-version-checker.json |
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 +1,7 @@ | ||
* `local-xdebuginfo.php` is used by LocalWP you can remove it if you opt for other development environments. | ||
[](https://github.com/josephgodwinkimani/simple-wp-skeleton/actions/workflows/wpcs.yml) [](https://github.com/josephgodwinkimani/simple-wp-skeleton/actions/workflows/wp-deploy.yml) [](https://github.com/josephgodwinkimani/simple-wp-skeleton/actions/workflows/wordpress-build-zip.yml) [](https://github.com/josephgodwinkimani/simple-wp-skeleton/actions/workflows/wordpress-version-checker.yml) | ||
|
||
* The file `local-xdebuginfo.php` is utilized by LocalWP; should you choose to utilize alternative development environments, you have the option to remove it. | ||
|
||
* You have the option to compress the `wp-content/` directory instead of directly committing the files and folders to Git by executing the command `php zip.php`. | ||
|
||
* You have the option to utilize the command `composer lint` to assess WordPress code violations within your themes and/or plugins. Please review the `phpcs.xml.dist` file to specify exclusions for themes or plugins that should not undergo scrutiny. |
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,24 @@ | ||
{ | ||
"require": { | ||
"comodojo/zip": "^2.1" | ||
}, | ||
"require-dev": { | ||
"squizlabs/php_codesniffer": "3.9.0", | ||
"roave/security-advisories": "dev-latest", | ||
"wp-coding-standards/wpcs": "^3.0" | ||
}, | ||
"scripts": { | ||
"lint": "phpcs", | ||
"install-codestandards": [ | ||
"Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run" | ||
], | ||
"post-install-cmd": [ | ||
"@install-codestandards" | ||
] | ||
}, | ||
"config": { | ||
"allow-plugins": { | ||
"dealerdirect/phpcodesniffer-composer-installer": true | ||
} | ||
} | ||
} |
Oops, something went wrong.