Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"automattic/jetpack-post-list",
"automattic/jetpack-redirect",
"automattic/jetpack-roles",
"automattic/jetpack-search",
"automattic/jetpack-status",
"automattic/jetpack-sync",
"automattic/jetpack-terms-of-service",
Expand Down
9 changes: 9 additions & 0 deletions projects/packages/search/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Files not needed to be distributed.
.gitattributes export-ignore
.github/ export-ignore
.gitignore export-ignore
phpunit.xml.dist export-ignore
tests/ export-ignore

# Files not needed in the production build.
/changelog/** production-exclude
1 change: 1 addition & 0 deletions projects/packages/search/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
wordpress
6 changes: 6 additions & 0 deletions projects/packages/search/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# 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).
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: major
Type: added

Add a new Search package with Helper and Options classes.
51 changes: 51 additions & 0 deletions projects/packages/search/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"name": "automattic/jetpack-search",
"description": "Tools to assist with enabling cloud search for Jetpack sites.",
"type": "library",
"license": "GPL-2.0-or-later",
"require": {},
"require-dev": {
"automattic/jetpack-changelogger": "^3.0",
"yoast/phpunit-polyfills": "1.0.1"
},
"autoload": {
"classmap": [
"src/"
]
},
"scripts": {
"phpunit": [
"./vendor/phpunit/phpunit/phpunit --colors=always"
],
"test-coverage": [
"@composer install",
"phpdbg -d memory_limit=2048M -d max_execution_time=900 -qrr ./vendor/bin/phpunit --coverage-clover \"$COVERAGE_DIR/clover.xml\""
],
"test-php": [
"@composer install",
"@composer phpunit"
],
"post-update-cmd": "php -r \"copy('vendor/automattic/wordbless/src/dbless-wpdb.php', 'wordpress/wp-content/db.php');\""
},
"repositories": [
{
"type": "path",
"url": "../*",
"options": {
"monorepo": true
}
}
],
"minimum-stability": "dev",
"prefer-stable": true,
"extra": {
"autotagger": true,
"mirror-repo": "Automattic/jetpack-search",
"changelogger": {
"link-template": "https://github.com/Automattic/jetpack-search/compare/v${old}...v${new}"
},
"branch-alias": {
"dev-master": "0.1.x-dev"
}
}
}
16 changes: 16 additions & 0 deletions projects/packages/search/phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<phpunit bootstrap="tests/php/bootstrap.php" backupGlobals="false" colors="true">
<testsuites>
<testsuite name="main">
<directory prefix="test" suffix=".php">tests/php</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">.</directory>
<exclude>
<directory suffix=".php">tests</directory>
<directory suffix=".php">vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
Empty file.
11 changes: 11 additions & 0 deletions projects/packages/search/tests/php/bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
/**
* Initialize the testing environment.
*
* @package automattic/jetpack-backup
*/

/**
* Load the composer autoloader.
*/
require_once __DIR__ . '/../../vendor/autoload.php';
4 changes: 4 additions & 0 deletions projects/plugins/search/changelog/try-search-package-creation
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Updated name to automattic/jetpack-search-plugin
6 changes: 3 additions & 3 deletions projects/plugins/search/composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "automattic/jetpack-search",
"name": "automattic/jetpack-search-plugin",
"description": "A cloud-powered replacement for WordPress' search.",
"type": "wordpress-plugin",
"license": "GPL-2.0-or-later",
Expand Down Expand Up @@ -40,11 +40,11 @@
"minimum-stability": "dev",
"prefer-stable": true,
"extra": {
"mirror-repo": "Automattic/jetpack-search",
"mirror-repo": "Automattic/jetpack-search-plugin",
"release-branch-prefix": "search",
"wp-plugin-slug": "jetpack-search",
"changelogger": {
"link-template": "https://github.com/Automattic/jetpack-search/compare/v${old}...v${new}"
"link-template": "https://github.com/Automattic/jetpack-search-plugin/compare/v${old}...v${new}"
},
"autotagger": true
}
Expand Down
18 changes: 10 additions & 8 deletions projects/plugins/search/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.