Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
inxilpro committed Nov 22, 2023
1 parent f308ce3 commit bb9b8d3
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 32 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/template-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
template-cleanup:
name: Template Cleanup
runs-on: ubuntu-latest
if: github.event.repository.name != 'laravel-package-template'
if: github.event.repository.name != 'verbs-github-webhooks'
permissions:
contents: write
steps:
Expand All @@ -22,11 +22,11 @@ jobs:
STUDLY="$(echo "$NAME" | awk '{split($0,a,"[_ -]"); for(i=1;i<=length(a);++i) printf "%s",(length(a[i]) > 0 ? toupper(substr(a[i],1,1)) tolower(substr(a[i],2)) : "")}')"
# Replace placeholder names
find . -type f -not -name "template-cleanup.yml" -exec sed -i "s/laravel-package-template/$KEBAB/g" {} +
find . -type f -not -name "template-cleanup.yml" -exec sed -i "s/LaravelPackageTemplate/$STUDLY/g" {} +
find . -type f -not -name "template-cleanup.yml" -exec sed -i "s/verbs-github-webhooks/$KEBAB/g" {} +
find . -type f -not -name "template-cleanup.yml" -exec sed -i "s/VerbsGitHubWebhooks/$STUDLY/g" {} +
# Rename files
mv .idea/laravel-package-template.iml .idea/$KEBAB.iml
mv .idea/verbs-github-webhooks.iml .idea/$KEBAB.iml
mv config/config.php config/$KEBAB.php
# Cleanup
Expand Down
2 changes: 1 addition & 1 deletion .idea/modules.xml

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

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

4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ format. This project adheres to [Semantic Versioning](https://semver.org/spec/v2
- `Fixed` for any bug fixes.
- `Security` in case of vulnerabilities.

[Unreleased]: https://github.com/glhd/laravel-package-template/compare/0.0.1...HEAD
[0.0.1]: https://github.com/glhd/laravel-package-template/compare/0.0.1...0.0.1
[Unreleased]: https://github.com/glhd/verbs-github-webhooks/compare/0.0.1...HEAD
[0.0.1]: https://github.com/glhd/verbs-github-webhooks/compare/0.0.1...0.0.1
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
<div style="float: right;">
<a href="https://github.com/glhd/laravel-package-template/actions" target="_blank">
<a href="https://github.com/glhd/verbs-github-webhooks/actions" target="_blank">
<img
src="https://github.com/glhd/laravel-package-template/workflows/PHPUnit/badge.svg"
src="https://github.com/glhd/verbs-github-webhooks/workflows/PHPUnit/badge.svg"
alt="Build Status"
/>
</a>
<a href="https://codeclimate.com/github/glhd/laravel-package-template/test_coverage" target="_blank">
<a href="https://codeclimate.com/github/glhd/verbs-github-webhooks/test_coverage" target="_blank">
<img
src="https://api.codeclimate.com/v1/badges/f597a6e8d9f968a55f03/test_coverage"
alt="Coverage Status"
/>
</a>
<a href="https://packagist.org/packages/glhd/laravel-package-template" target="_blank">
<a href="https://packagist.org/packages/glhd/verbs-github-webhooks" target="_blank">
<img
src="https://poser.pugx.org/glhd/laravel-package-template/v/stable"
src="https://poser.pugx.org/glhd/verbs-github-webhooks/v/stable"
alt="Latest Stable Release"
/>
</a>
<a href="./LICENSE" target="_blank">
<img
src="https://poser.pugx.org/glhd/laravel-package-template/license"
src="https://poser.pugx.org/glhd/verbs-github-webhooks/license"
alt="MIT Licensed"
/>
</a>
Expand All @@ -31,9 +31,9 @@
</a>
</div>

# laravel-package-template
# verbs-github-webhooks

Please replace `glhd/laravel-package-template` with the package name in this file,
Please replace `glhd/verbs-github-webhooks` with the package name in this file,
the change log, and the `composer.json` file before continuing.

## Installation
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "glhd/laravel-package-template",
"name": "glhd/verbs-github-webhooks",
"description": "",
"keywords": [
"laravel"
Expand All @@ -24,15 +24,15 @@
},
"autoload": {
"psr-4": {
"Glhd\\LaravelPackageTemplate\\": "src/"
"Glhd\\VerbsGitHubWebhooks\\": "src/"
}
},
"autoload-dev": {
"classmap": [
"tests/TestCase.php"
],
"psr-4": {
"Glhd\\LaravelPackageTemplate\\Tests\\": "tests/"
"Glhd\\VerbsGitHubWebhooks\\Tests\\": "tests/"
}
},
"scripts": {
Expand All @@ -42,7 +42,7 @@
"extra": {
"laravel": {
"providers": [
"Glhd\\LaravelPackageTemplate\\Support\\PackageServiceProvider"
"Glhd\\VerbsGitHubWebhooks\\Support\\PackageServiceProvider"
]
}
},
Expand Down
File renamed without changes.
18 changes: 9 additions & 9 deletions src/Support/PackageServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Glhd\LaravelPackageTemplate\Support;
namespace Glhd\VerbsGitHubWebhooks\Support;

use Illuminate\Contracts\Foundation\Application;
use Illuminate\Support\Facades\Blade;
Expand All @@ -18,24 +18,24 @@ public function boot()

public function register()
{
$this->mergeConfigFrom($this->packageConfigFile(), 'laravel-package-template');
$this->mergeConfigFrom($this->packageConfigFile(), 'verbs-github-webhooks');
}

protected function bootViews() : self
{
$this->loadViewsFrom($this->packageViewsDirectory(), 'laravel-package-template');
$this->loadViewsFrom($this->packageViewsDirectory(), 'verbs-github-webhooks');

$this->publishes([
$this->packageViewsDirectory() => $this->app->resourcePath('views/vendor/laravel-package-template'),
], 'laravel-package-template-views');
$this->packageViewsDirectory() => $this->app->resourcePath('views/vendor/verbs-github-webhooks'),
], 'verbs-github-webhooks-views');

return $this;
}

protected function bootBladeComponents() : self
{
if (version_compare($this->app->version(), '8.0.0', '>=')) {
Blade::componentNamespace('Glhd\\LaravelPackageTemplate\\Components', 'laravel-package-template');
Blade::componentNamespace('Glhd\\VerbsGitHubWebhooks\\Components', 'verbs-github-webhooks');
}

return $this;
Expand All @@ -44,15 +44,15 @@ protected function bootBladeComponents() : self
protected function bootConfig() : self
{
$this->publishes([
$this->packageConfigFile() => $this->app->configPath('laravel-package-template.php'),
], 'laravel-package-template-config');
$this->packageConfigFile() => $this->app->configPath('verbs-github-webhooks.php'),
], 'verbs-github-webhooks-config');

return $this;
}

protected function packageConfigFile(): string
{
return dirname(__DIR__, 2).DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'laravel-package-template.php';
return dirname(__DIR__, 2).DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'verbs-github-webhooks.php';
}

protected function packageTranslationsDirectory(): string
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Glhd\LaravelPackageTemplate\Tests;
namespace Glhd\VerbsGitHubWebhooks\Tests;

use Glhd\LaravelPackageTemplate\Support\PackageServiceProvider;
use Glhd\VerbsGitHubWebhooks\Support\PackageServiceProvider;
use Illuminate\Container\Container;
use Orchestra\Testbench\TestCase as Orchestra;

Expand Down

0 comments on commit bb9b8d3

Please sign in to comment.