Skip to content

Commit 3300247

Browse files
authored
Merge pull request #5 from wp-cli/update-scaffold
Update package with latest scaffolded components
2 parents d7102d5 + 3e62cb3 commit 3300247

File tree

15 files changed

+702
-114
lines changed

15 files changed

+702
-114
lines changed

.github/ISSUE_TEMPLATE

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!--
2+
3+
Thanks for creating a new issue!
4+
5+
Found a bug or want to suggest an enhancement? Before completing your issue, please review our best practices: https://make.wordpress.org/cli/handbook/bug-reports/
6+
7+
Need help with something? GitHub issues aren't for general support questions, but there are other venues you can try: https://wp-cli.org/#support
8+
9+
You can safely delete this comment.
10+
11+
-->

.github/PULL_REQUEST_TEMPLATE

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!--
2+
3+
Thanks for submitting a pull request!
4+
5+
Here's an overview to our process:
6+
7+
1. One of the project committers will soon provide a code review.
8+
2. You are expected to address the code review comments in a timely manner.
9+
3. Please make sure to include functional tests for your changes.
10+
4. The reviewing committer will merge your pull request as soon as it passes code review (and provided it fits within the scope of the project).
11+
12+
You can safely delete this comment.
13+
14+
-->

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ node_modules/
44
vendor/
55
*.zip
66
*.tar.gz
7-
composer.lock

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ matrix:
2929
env: WP_VERSION=latest
3030
- php: 5.6
3131
env: WP_VERSION=latest
32+
- php: 5.6
33+
env: WP_VERSION=3.7.11
3234
- php: 5.6
3335
env: WP_VERSION=trunk
3436
- php: 5.3
@@ -46,4 +48,4 @@ before_script:
4648
- composer validate
4749

4850
script:
49-
- behat --format progress --strict
51+
- bash bin/test.sh

CONTRIBUTING.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Contributing
2+
============
3+
4+
We appreciate you taking the initiative to contribute to this project.
5+
6+
Contributing isn’t limited to just code. We encourage you to contribute in the way that best fits your abilities, by writing tutorials, giving a demo at your local meetup, helping other users with their support questions, or revising our documentation.
7+
8+
For a more thorough introduction, [check out WP-CLI's guide to contributing](https://make.wordpress.org/cli/handbook/contributing/). This package follows those policy and guidelines.

README.md

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Manage object and transient caches.
55

66
[![Build Status](https://travis-ci.org/wp-cli/cache-command.svg?branch=master)](https://travis-ci.org/wp-cli/cache-command)
77

8-
Quick links: [Using](#using) | [Installing](#installing) | [Contributing](#contributing)
8+
Quick links: [Using](#using) | [Installing](#installing) | [Contributing](#contributing) | [Support](#support)
99

1010
## Using
1111

@@ -77,30 +77,25 @@ We appreciate you taking the initiative to contribute to this project.
7777

7878
Contributing isn’t limited to just code. We encourage you to contribute in the way that best fits your abilities, by writing tutorials, giving a demo at your local meetup, helping other users with their support questions, or revising our documentation.
7979

80+
For a more thorough introduction, [check out WP-CLI's guide to contributing](https://make.wordpress.org/cli/handbook/contributing/). This package follows those policy and guidelines.
81+
8082
### Reporting a bug
8183

8284
Think you’ve found a bug? We’d love for you to help us get it fixed.
8385

8486
Before you create a new issue, you should [search existing issues](https://github.com/wp-cli/cache-command/issues?q=label%3Abug%20) to see if there’s an existing resolution to it, or if it’s already been fixed in a newer version.
8587

86-
Once you’ve done a bit of searching and discovered there isn’t an open or fixed issue for your bug, please [create a new issue](https://github.com/wp-cli/cache-command/issues/new) with the following:
87-
88-
1. What you were doing (e.g. "When I run `wp post list`").
89-
2. What you saw (e.g. "I see a fatal about a class being undefined.").
90-
3. What you expected to see (e.g. "I expected to see the list of posts.")
91-
92-
Include as much detail as you can, and clear steps to reproduce if possible.
88+
Once you’ve done a bit of searching and discovered there isn’t an open or fixed issue for your bug, please [create a new issue](https://github.com/wp-cli/cache-command/issues/new). Include as much detail as you can, and clear steps to reproduce if possible. For more guidance, [review our bug report documentation](https://make.wordpress.org/cli/handbook/bug-reports/).
9389

9490
### Creating a pull request
9591

9692
Want to contribute a new feature? Please first [open a new issue](https://github.com/wp-cli/cache-command/issues/new) to discuss whether the feature is a good fit for the project.
9793

98-
Once you've decided to commit the time to seeing your pull request through, please follow our guidelines for creating a pull request to make sure it's a pleasant experience:
94+
Once you've decided to commit the time to seeing your pull request through, [please follow our guidelines for creating a pull request](https://make.wordpress.org/cli/handbook/pull-requests/) to make sure it's a pleasant experience. See "[Setting up](https://make.wordpress.org/cli/handbook/pull-requests/#setting-up)" for details specific to working on this package locally.
95+
96+
## Support
9997

100-
1. Create a feature branch for each contribution.
101-
2. Submit your pull request early for feedback.
102-
3. Include functional tests with your changes. [Read the WP-CLI documentation](https://wp-cli.org/docs/pull-requests/#functional-tests) for an introduction.
103-
4. Follow the [WordPress Coding Standards](http://make.wordpress.org/core/handbook/coding-standards/).
98+
Github issues aren't for general support questions, but there are other venues you can try: http://wp-cli.org/#support
10499

105100

106101
*This README.md is generated dynamically from the project's codebase using `wp scaffold package-readme` ([doc](https://github.com/wp-cli/scaffold-package-command#wp-scaffold-package-readme)). To suggest changes, please submit a pull request against the corresponding part of the codebase.*

bin/test.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
set -ex
4+
5+
# Run the unit tests, if they exist
6+
if [ -f "phpunit.xml" ] || [ -f "phpunit.xml.dist" ]
7+
then
8+
phpunit
9+
fi
10+
11+
# Run the functional tests
12+
BEHAT_TAGS=$(php utils/behat-tags.php)
13+
behat --format progress $BEHAT_TAGS --strict

0 commit comments

Comments
 (0)