-
-
Save tommcfarlin/94d1c4d9f22431f12102051cff4300ab to your computer and use it in GitHub Desktop.
[WordPress] WordPress Widgets: Refactoring, Part 3
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
{ | |
"name": "wordpress-widget-boilerplate/wordpress-widget-boilerplate", | |
"description": "An organized, maintainable boilerplate for building widgets using WordPress best practices.", | |
"type": "wordpress-plugin", | |
"license": "GPL-3.0-or-later", | |
"homepage": "https://github.com/tommcfarlin/WordPress-Widget-Boilerplate", | |
"authors": [ | |
{ | |
"name": "Tom McFarlin", | |
"email": "tom@pressware.co", | |
"homepage": "https://pressware.co" | |
} | |
], | |
"support": { | |
"issues": "https://github.com/tommcfarlin/WordPress-Widget-Boilerplate/issues" | |
}, | |
"config": { | |
"preferred-install": "dist", | |
"platform": { | |
"php": "7.1" | |
} | |
}, | |
"repositories": [ | |
{ | |
"type": "composer", | |
"url": "https://wpackagist.org" | |
} | |
], | |
"require": { | |
"php": "7.1", | |
"composer/installers": "^1.4" | |
}, | |
"require-dev": { | |
"friendsofphp/php-cs-fixer": "^2.13.1", | |
"jakub-onderka/php-parallel-lint": "^1.0.0", | |
"phpmd/phpmd": "^v2.6.0", | |
"nikic/php-parser": "^4.0", | |
"ocramius/proxy-manager": "^2.0.0", | |
"phpro/grumphp": "^0.13.1" | |
}, | |
"scripts": { | |
"test": [ | |
"./vendor/bin/grumphp run" | |
] | |
}, | |
"minimum-stability": "stable" | |
} |
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
<?php | |
// Include the autoloader. | |
// TODO: Note this has not yet been defined. | |
require_once __DIR__ . '/inc/autoload.php'; |
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
$ composer install --no-dev --no-ansi --no-interaction --optimize-autoloader --no-progress --prefer-dist |
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
$ git checkout -b release |
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
"autoload": { | |
"psr-4": { | |
"WordPressWidgetBoilerplate\\": "src/", | |
"WordPressWidgetBoilerplate\\Subscriber\\": "src/Subscriber/", | |
"WordPressWidgetBoilerplate\\Utilities\\": "src/Utilities/", | |
"WordPressWidgetBoilerplate\\Views\\": "src/Views/" | |
} | |
}, |
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
*.DS_Store | |
*.log | |
wp-config.php | |
wp-content/advanced-cache.php | |
wp-content/backup-db/ | |
wp-content/backups/ | |
wp-content/blogs.dir/ | |
wp-content/cache/ | |
wp-content/upgrade/ | |
wp-content/uploads/ | |
wp-content/mu-plugins/ | |
wp-content/wp-cache-config.php | |
wp-content/plugins/hello.php | |
/.htaccess | |
/license.txt | |
/readme.html | |
/sitemap.xml | |
/sitemap.xml.gz | |
/vendor/**/.git | |
/vendor/bin | |
composer.lock |
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
$ git push --set-upstream origin release |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment