-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # CHANGELOG.md # README.md # composer.json # src/CloudFrontPurger.php
- Loading branch information
Showing
16 changed files
with
304 additions
and
43 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
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,6 +1,6 @@ | ||
# Release Notes for Blitz CloudFront Purger | ||
|
||
## 4.0.0-beta.1 - 2024-02-19 | ||
## 5.0.0-beta.1 - 2024-03-19 | ||
|
||
### Added | ||
|
||
|
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
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
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,28 @@ | ||
<?php | ||
/** | ||
* @copyright Copyright (c) PutYourLightsOn | ||
*/ | ||
|
||
namespace putyourlightson\blitzcloudfront; | ||
|
||
use craft\base\Plugin as BasePlugin; | ||
use craft\events\RegisterComponentTypesEvent; | ||
use putyourlightson\blitz\helpers\CachePurgerHelper; | ||
use yii\base\Event; | ||
|
||
class Plugin extends BasePlugin | ||
{ | ||
/** | ||
* @inheritdoc | ||
*/ | ||
public function init(): void | ||
{ | ||
parent::init(); | ||
|
||
Event::on(CachePurgerHelper::class, CachePurgerHelper::EVENT_REGISTER_PURGER_TYPES, | ||
function(RegisterComponentTypesEvent $event) { | ||
$event->types[] = CloudFrontPurger::class; | ||
} | ||
); | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Testing | ||
|
||
## Static Analysis | ||
|
||
To run static analysis on the module, | ||
install [PHPStan for Craft CMS](https://github.com/craftcms/phpstan) and run the following command from the root of your project. | ||
|
||
```shell | ||
./vendor/bin/phpstan analyse -c vendor/putyourlightson/craft-blitz-cloudfront/phpstan.neon --memory-limit 1G | ||
``` | ||
|
||
## Easy Coding Standard | ||
|
||
To run the Easy Coding Standard on the plugin, install [ECS for Craft CMS](https://github.com/craftcms/ecs) and run the following command from the root of your project. | ||
|
||
```shell | ||
./vendor/bin/ecs check -c vendor/putyourlightson/craft-blitz-cloudfront/ecs.php | ||
``` | ||
|
||
## Pest Tests | ||
|
||
To run Pest tests, install [Craft Pest](https://craft-pest.com/) and run the following command from the root of your project. | ||
|
||
```shell | ||
php craft pest/test --test-directory=vendor/putyourlightson/craft-blitz-cloudfront/tests/pest | ||
``` | ||
|
||
Or to run a specific test. | ||
|
||
```shell | ||
php craft pest/test --test-directory=vendor/putyourlightson/craft-blitz-cloudfront/tests/pest --filter=CacheRequestTest | ||
``` |
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,13 @@ | ||
# Test Specification | ||
|
||
This document outlines the test specification for the Blitz CloudFront module. | ||
|
||
--- | ||
|
||
## Feature Tests | ||
|
||
### [CondenseUrls](pest/Feature/CondenseUrlsTest.php) | ||
|
||
_Tests condensing URLs._ | ||
|
||
![Pass](https://raw.githubusercontent.com/putyourlightson/craft-generate-test-spec/main/icons/pass.svg) URLs are condensed into a single URL with a wildcard character after the longest common prefix. |
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 @@ | ||
/test-results.xml |
Oops, something went wrong.