-
Notifications
You must be signed in to change notification settings - Fork 800
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
305 additions
and
0 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,15 @@ | ||
# Files not needed to be distributed in the package. | ||
.gitattributes export-ignore | ||
.github/ export-ignore | ||
package.json export-ignore | ||
|
||
# Files to include in the mirror repo, but excluded via gitignore | ||
# Remember to end all directories with `/**` to properly tag every file. | ||
# /src/js/example.min.js production-include | ||
|
||
# Files to exclude from the mirror repo, but included in the monorepo. | ||
# Remember to end all directories with `/**` to properly tag every file. | ||
.gitignore production-exclude | ||
changelog/** production-exclude | ||
phpunit.xml.dist production-exclude | ||
tests/** production-exclude |
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 @@ | ||
vendor/ | ||
node_modules/ |
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,7 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
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 @@ | ||
# wpcomsh | ||
|
||
A helper for connecting WordPress.com sites to external host infrastructure. | ||
|
||
## How to install wpcomsh | ||
|
||
### Installation From Git Repo | ||
|
||
## Contribute | ||
|
||
## Get Help | ||
|
||
## Using this package in your WordPress plugin | ||
|
||
If you plan on using this package in your WordPress plugin, we would recommend that you use [Jetpack Autoloader](https://packagist.org/packages/automattic/jetpack-autoloader) as your autoloader. This will allow for maximum interoperability with other plugins that use this package as well. | ||
|
||
## Security | ||
|
||
Need to report a security vulnerability? Go to [https://automattic.com/security/](https://automattic.com/security/) or directly to our security bug bounty site [https://hackerone.com/automattic](https://hackerone.com/automattic). | ||
|
||
## License | ||
|
||
wpcomsh is licensed under [GNU General Public License v2 (or later)](./LICENSE.txt) | ||
|
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,68 @@ | ||
=== Jetpack wpcomsh === | ||
Contributors: automattic, | ||
Tags: jetpack, stuff | ||
Requires at least: 6.3 | ||
Requires PHP: 7.0 | ||
Tested up to: 6.4 | ||
Stable tag: 3.14.40 | ||
License: GPLv2 or later | ||
License URI: http://www.gnu.org/licenses/gpl-2.0.html | ||
|
||
A helper for connecting WordPress.com sites to external host infrastructure. | ||
|
||
== Description == | ||
|
||
Longer description of the plugin. | ||
|
||
== Installation == | ||
|
||
Installation instructions go here. | ||
|
||
== Frequently Asked Questions == | ||
|
||
= A question that someone might have = | ||
|
||
An answer to that question. | ||
|
||
== Screenshots == | ||
|
||
1. This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from | ||
the /assets directory or the directory that contains the stable readme.txt (tags or trunk). Screenshots in the /assets | ||
directory take precedence. For example, `/assets/screenshot-1.png` would win over `/tags/4.3/screenshot-1.png` | ||
(or jpg, jpeg, gif). | ||
2. This is the second screen shot | ||
|
||
== Changelog == | ||
|
||
<!-- When you do a release, use the monorepo script tools/plugin-changelog-to-readme.sh to copy from CHANGELOG.md to here. --> | ||
|
||
== Arbitrary section == | ||
|
||
You may provide arbitrary sections, in the same format as the ones above. This may be of use for extremely complicated | ||
plugins where more information needs to be conveyed that doesn't fit into the categories of "description" or | ||
"installation." Arbitrary sections will be shown below the built-in sections outlined above. | ||
|
||
== A brief Markdown Example == | ||
|
||
Ordered list: | ||
|
||
1. Some feature | ||
1. Another feature | ||
1. Something else about the plugin | ||
|
||
Unordered list: | ||
|
||
* something | ||
* something else | ||
* third thing | ||
|
||
Here's a link to [WordPress](https://wordpress.org/ "Your favorite software") and one to [Markdown's Syntax Documentation][markdown syntax]. | ||
Titles are optional, naturally. | ||
|
||
[markdown syntax]: http://daringfireball.net/projects/markdown/syntax | ||
"Markdown is what the parser uses to process much of the readme file" | ||
|
||
Markdown uses email style notation for blockquotes and I've been told: | ||
> Asterisks for *emphasis*. Double it up for **strong**. | ||
|
||
`<?php code(); // goes in backticks ?>` |
Empty file.
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,4 @@ | ||
Significance: patch | ||
Type: added | ||
|
||
Initial version. |
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,51 @@ | ||
{ | ||
"name": "automattic/jetpack-wpcomsh", | ||
"description": "A helper for connecting WordPress.com sites to external host infrastructure.", | ||
"type": "wordpress-plugin", | ||
"license": "GPL-2.0-or-later", | ||
"require": {}, | ||
"require-dev": { | ||
"yoast/phpunit-polyfills": "1.1.0", | ||
"automattic/jetpack-changelogger": "@dev", | ||
"automattic/wordbless": "dev-master" | ||
}, | ||
"autoload": { | ||
"classmap": [ | ||
"src/" | ||
] | ||
}, | ||
"scripts": { | ||
"phpunit": [ | ||
"./vendor/phpunit/phpunit/phpunit --colors=always" | ||
], | ||
"test-php": [ | ||
"@composer phpunit" | ||
], | ||
"build-production": "echo 'Add your build step to composer.json, please!'", | ||
"build-development": "echo 'Add your build step to composer.json, please!'", | ||
"post-install-cmd": "WorDBless\\Composer\\InstallDropin::copy", | ||
"post-update-cmd": "WorDBless\\Composer\\InstallDropin::copy" | ||
}, | ||
"repositories": [ | ||
{ | ||
"type": "path", | ||
"url": "../../packages/*", | ||
"options": { | ||
"monorepo": true | ||
} | ||
} | ||
], | ||
"minimum-stability": "dev", | ||
"prefer-stable": true, | ||
"config": { | ||
"allow-plugins": { | ||
"roots/wordpress-core-installer": true | ||
} | ||
}, | ||
"extra": { | ||
"release-branch-prefix": "wpcomsh", | ||
"changelogger": { | ||
"versioning": "semver" | ||
} | ||
} | ||
} |
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,25 @@ | ||
{ | ||
"private": true, | ||
"name": "@automattic/jetpack-wpcomsh", | ||
"version": "0.1.0-alpha", | ||
"description": "A helper for connecting WordPress.com sites to external host infrastructure.", | ||
"homepage": "https://jetpack.com", | ||
"bugs": { | ||
"url": "https://github.com/Automattic/jetpack/labels/[Plugin] Wpcomsh" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/Automattic/jetpack.git", | ||
"directory": "projects/plugins/wpcomsh" | ||
}, | ||
"license": "GPL-2.0-or-later", | ||
"author": "Automattic", | ||
"scripts": { | ||
"build": "echo 'Not implemented.'", | ||
"build-js": "echo 'Not implemented.'", | ||
"build-production": "echo 'Not implemented.'", | ||
"build-production-js": "echo 'Not implemented.'", | ||
"clean": "true" | ||
}, | ||
"devDependencies": {} | ||
} |
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,14 @@ | ||
<phpunit bootstrap="tests/php/bootstrap.php" backupGlobals="false" colors="true" convertDeprecationsToExceptions="true"> | ||
<testsuites> | ||
<testsuite name="main"> | ||
<directory prefix="test" suffix=".php">tests/php</directory> | ||
</testsuite> | ||
</testsuites> | ||
<filter> | ||
<whitelist processUncoveredFilesFromWhitelist="false"> | ||
<!-- Better to only include "src" than to add "." and then exclude "tests", "vendor", and so on, as PHPUnit still scans the excluded directories. --> | ||
<!-- Add additional lines for any files or directories outside of src/ that need coverage. --> | ||
<directory suffix=".php">src</directory> | ||
</whitelist> | ||
</filter> | ||
</phpunit> |
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,56 @@ | ||
== Description == | ||
|
||
Longer description of the plugin. | ||
|
||
== Installation == | ||
|
||
Installation instructions go here. | ||
|
||
== Frequently Asked Questions == | ||
|
||
= A question that someone might have = | ||
|
||
An answer to that question. | ||
|
||
== Screenshots == | ||
|
||
1. This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from | ||
the /assets directory or the directory that contains the stable readme.txt (tags or trunk). Screenshots in the /assets | ||
directory take precedence. For example, `/assets/screenshot-1.png` would win over `/tags/4.3/screenshot-1.png` | ||
(or jpg, jpeg, gif). | ||
2. This is the second screen shot | ||
|
||
== Changelog == | ||
|
||
<!-- When you do a release, use the monorepo script tools/plugin-changelog-to-readme.sh to copy from CHANGELOG.md to here. --> | ||
|
||
== Arbitrary section == | ||
|
||
You may provide arbitrary sections, in the same format as the ones above. This may be of use for extremely complicated | ||
plugins where more information needs to be conveyed that doesn't fit into the categories of "description" or | ||
"installation." Arbitrary sections will be shown below the built-in sections outlined above. | ||
|
||
== A brief Markdown Example == | ||
|
||
Ordered list: | ||
|
||
1. Some feature | ||
1. Another feature | ||
1. Something else about the plugin | ||
|
||
Unordered list: | ||
|
||
* something | ||
* something else | ||
* third thing | ||
|
||
Here's a link to [WordPress](https://wordpress.org/ "Your favorite software") and one to [Markdown's Syntax Documentation][markdown syntax]. | ||
Titles are optional, naturally. | ||
|
||
[markdown syntax]: http://daringfireball.net/projects/markdown/syntax | ||
"Markdown is what the parser uses to process much of the readme file" | ||
|
||
Markdown uses email style notation for blockquotes and I've been told: | ||
> Asterisks for *emphasis*. Double it up for **strong**. | ||
|
||
`<?php code(); // goes in backticks ?>` |
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,8 @@ | ||
<?php | ||
/** | ||
* Put your classes in this `src` folder! | ||
* | ||
* @package automattic/PACKAGE-NAME | ||
*/ | ||
|
||
// Start your code here! |
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,4 @@ | ||
<?xml version="1.0"?> | ||
<ruleset> | ||
<rule ref="Jetpack-Tests" /> | ||
</ruleset> |
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,11 @@ | ||
<?php | ||
/** | ||
* Bootstrap. | ||
* | ||
* @package automattic/ | ||
*/ | ||
|
||
/** | ||
* Include the composer autoloader. | ||
*/ | ||
require_once __DIR__ . '/../../vendor/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
/** | ||
* | ||
* Plugin Name: Jetpack wpcomsh | ||
* Plugin URI: TBD | ||
* Description: A helper for connecting WordPress.com sites to external host infrastructure. | ||
* Version: 3.14.40 | ||
* Author: Automattic | ||
* Author URI: https://jetpack.com/ | ||
* License: GPLv2 or later | ||
* Text Domain: jetpack | ||
* | ||
* @package automattic/jetpack-wpcomsh | ||
*/ | ||
|
||
// Code some good stuff! |