Skip to content

Commit da48536

Browse files
committed
Initial Setup for the Package
- Setup for the badges and workflows - Updated dependencies - Added vendor and package details
1 parent 68b7879 commit da48536

33 files changed

+4479
-545
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github: :vendor_name
1+
github: coolsam

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Ask a question
4-
url: https://github.com/:vendor_name/:package_name/discussions/new?category=q-a
4+
url: https://github.com/coolsam/nested-comments/discussions/new?category=q-a
55
about: Ask the community for help
66
- name: Request a feature
7-
url: https://github.com/:vendor_name/:package_name/discussions/new?category=ideas
7+
url: https://github.com/coolsam/nested-comments/discussions/new?category=ideas
88
about: Share ideas for new features
99
- name: Report a security issue
10-
url: https://github.com/:vendor_name/:package_name/security/policy
10+
url: https://github.com/coolsam/nested-comments/security/policy
1111
about: Learn how to notify us for sensitive bugs

.github/SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Security Policy
22

3-
If you discover any security related issues, please email author@domain.com instead of using the issue tracker.
3+
If you discover any security related issues, please email maosa.sam@gmail.com instead of using the issue tracker.

.github/workflows/run-tests.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,20 @@ jobs:
1313
fail-fast: true
1414
matrix:
1515
os: [ubuntu-latest, windows-latest]
16-
php: [8.2, 8.1]
17-
laravel: [10.*]
16+
php: [8.4, 8.3, 8.2]
17+
laravel: [12.*, 11.*]
1818
stability: [prefer-lowest, prefer-stable]
1919
include:
20-
- laravel: 10.*
21-
testbench: 8.*
22-
carbon: 2.*
20+
- laravel: 12.*
21+
testbench: ^10.0
22+
carbon: ^3.8.6
23+
pest-plugin-laravel: ^3.1
24+
larastan: ^3.1
25+
- laravel: 11.*
26+
testbench: ^9.0
27+
carbon: ^3.8.4
28+
pest-plugin-laravel: ^3.1
29+
larastan: ^3.1
2330

2431
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2532

@@ -31,8 +38,8 @@ jobs:
3138
uses: shivammathur/setup-php@v2
3239
with:
3340
php-version: ${{ matrix.php }}
34-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
35-
coverage: none
41+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo, pcov
42+
coverage: pcov
3643

3744
- name: Setup problem matchers
3845
run: |
@@ -41,11 +48,11 @@ jobs:
4148
4249
- name: Install dependencies
4350
run: |
44-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.carbon }}" --no-interaction --no-update
51+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.carbon }}" "pestphp/pest-plugin-laravel:${{ matrix.pest-plugin-laravel }}" "nunomaduro/larastan:${{ matrix.larastan }}" --no-interaction --no-update
4552
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
4653
4754
- name: List Installed Dependencies
4855
run: composer show -D
4956

5057
- name: Execute tests
51-
run: vendor/bin/pest --ci
58+
run: vendor/bin/pest --ci --coverage --min=0

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
All notable changes to `:package_name` will be documented in this file.
3+
All notable changes to `nested-comments` will be documented in this file.
44

55
## 1.0.0 - 202X-XX-XX
66

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) :vendor_name <author@domain.com>
3+
Copyright (c) coolsam <maosa.sam@gmail.com>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,11 @@
1-
# :package_description
1+
# Add Nested comments/replies to filament forms, infolists and resources
22

3-
[![Latest Version on Packagist](https://img.shields.io/packagist/v/:vendor_slug/:package_slug.svg?style=flat-square)](https://packagist.org/packages/:vendor_slug/:package_slug)
4-
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/:vendor_slug/:package_slug/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/:vendor_slug/:package_slug/actions?query=workflow%3Arun-tests+branch%3Amain)
5-
[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/:vendor_slug/:package_slug/fix-php-code-styling.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/:vendor_slug/:package_slug/actions?query=workflow%3A"Fix+PHP+code+styling"+branch%3Amain)
6-
[![Total Downloads](https://img.shields.io/packagist/dt/:vendor_slug/:package_slug.svg?style=flat-square)](https://packagist.org/packages/:vendor_slug/:package_slug)
3+
[![Latest Version on Packagist](https://img.shields.io/packagist/v/coolsam/nested-comments.svg?style=flat-square)](https://packagist.org/packages/coolsam/nested-comments)
4+
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/coolsam726/nested-comments/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/coolsam/nested-comments/actions?query=workflow%3Arun-tests+branch%3Amain)
5+
[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/coolsam726/nested-comments/fix-php-code-styling.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/coolsam726/nested-comments/actions?query=workflow%3A"Fix+PHP+Code+Styling"+branch%3Amain)
6+
[![Total Downloads](https://img.shields.io/packagist/dt/coolsam/nested-comments.svg?style=flat-square)](https://packagist.org/packages/coolsam/nested-comments)
77

8-
<!--delete-->
9-
---
10-
This repo can be used to scaffold a Filament plugin. Follow these steps to get started:
118

12-
1. Press the "Use this template" button at the top of this repo to create a new repo with the contents of this skeleton.
13-
2. Run "php ./configure.php" to run a script that will replace all placeholders throughout all the files.
14-
3. Make something great!
15-
---
16-
<!--/delete-->
179

1810
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
1911

@@ -22,26 +14,26 @@ This is where your description should go. Limit it to a paragraph or two. Consid
2214
You can install the package via composer:
2315

2416
```bash
25-
composer require :vendor_slug/:package_slug
17+
composer require coolsam/nested-comments
2618
```
2719

2820
You can publish and run the migrations with:
2921

3022
```bash
31-
php artisan vendor:publish --tag=":package_slug-migrations"
23+
php artisan vendor:publish --tag="nested-comments-migrations"
3224
php artisan migrate
3325
```
3426

3527
You can publish the config file with:
3628

3729
```bash
38-
php artisan vendor:publish --tag=":package_slug-config"
30+
php artisan vendor:publish --tag="nested-comments-config"
3931
```
4032

4133
Optionally, you can publish the views using
4234

4335
```bash
44-
php artisan vendor:publish --tag=":package_slug-views"
36+
php artisan vendor:publish --tag="nested-comments-views"
4537
```
4638

4739
This is the contents of the published config file:
@@ -54,8 +46,8 @@ return [
5446
## Usage
5547

5648
```php
57-
$variable = new VendorName\Skeleton();
58-
echo $variable->echoPhrase('Hello, VendorName!');
49+
$nestedComments = new Coolsam\NestedComments();
50+
echo $nestedComments->echoPhrase('Hello, Coolsam!');
5951
```
6052

6153
## Testing
@@ -78,7 +70,7 @@ Please review [our security policy](../../security/policy) on how to report secu
7870

7971
## Credits
8072

81-
- [:author_name](https://github.com/:author_username)
73+
- [Sam Maosa](https://github.com/coolsam726)
8274
- [All Contributors](../../contributors)
8375

8476
## License

bin/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ const defaultOptions = {
4646
compile({
4747
...defaultOptions,
4848
entryPoints: ['./resources/js/index.js'],
49-
outfile: './resources/dist/skeleton.js',
49+
outfile: './resources/dist/nested-comments.js',
5050
})

composer.json

Lines changed: 24 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,48 @@
11
{
2-
"name": ":vendor_slug/:package_slug",
3-
"description": ":package_description",
2+
"name": "coolsam/nested-comments",
3+
"description": "Add Nested comments/replies to filament forms, infolists and resources",
44
"keywords": [
5-
":vendor_name",
5+
"coolsam",
66
"laravel",
7-
":package_slug"
7+
"nested-comments"
88
],
9-
"homepage": "https://github.com/:vendor_slug/:package_slug",
9+
"homepage": "https://github.com/coolsam/nested-comments",
1010
"support": {
11-
"issues": "https://github.com/:vendor_slug/:package_slug/issues",
12-
"source": "https://github.com/:vendor_slug/:package_slug"
11+
"issues": "https://github.com/coolsam/nested-comments/issues",
12+
"source": "https://github.com/coolsam/nested-comments"
1313
},
1414
"license": "MIT",
1515
"authors": [
1616
{
17-
"name": ":author_name",
18-
"email": "author@domain.com",
17+
"name": "Sam Maosa",
18+
"email": "maosa.sam@gmail.com",
1919
"role": "Developer"
2020
}
2121
],
2222
"require": {
23-
"php": "^8.1",
24-
"filament/filament": "^3.0",
25-
"filament/forms": "^3.0",
26-
"filament/tables": "^3.0",
23+
"php": "^8.2",
24+
"filament/filament": "^3",
2725
"spatie/laravel-package-tools": "^1.15.0"
2826
},
2927
"require-dev": {
28+
"barryvdh/laravel-ide-helper": "^3.5",
3029
"laravel/pint": "^1.0",
31-
"nunomaduro/collision": "^7.9",
32-
"nunomaduro/larastan": "^2.0.1",
33-
"orchestra/testbench": "^8.0",
34-
"pestphp/pest": "^2.1",
35-
"pestphp/pest-plugin-arch": "^2.0",
36-
"pestphp/pest-plugin-laravel": "^2.0",
37-
"phpstan/extension-installer": "^1.1",
38-
"phpstan/phpstan-deprecation-rules": "^1.0",
39-
"phpstan/phpstan-phpunit": "^1.0",
40-
"spatie/laravel-ray": "^1.26"
30+
"nunomaduro/larastan": "^3.1.0",
31+
"orchestra/testbench": "^9.12",
32+
"pestphp/pest-plugin-laravel": "^3.1",
33+
"pestphp/pest-plugin-livewire": "^3.0",
34+
"phpstan/extension-installer": "^1.4.3",
35+
"spatie/laravel-ray": "^1.39"
4136
},
4237
"autoload": {
4338
"psr-4": {
44-
"VendorName\\Skeleton\\": "src/",
45-
"VendorName\\Skeleton\\Database\\Factories\\": "database/factories/"
39+
"Coolsam\\NestedComments\\": "src/",
40+
"Coolsam\\NestedComments\\Database\\Factories\\": "database/factories/"
4641
}
4742
},
4843
"autoload-dev": {
4944
"psr-4": {
50-
"VendorName\\Skeleton\\Tests\\": "tests/"
45+
"Coolsam\\NestedComments\\Tests\\": "tests/"
5146
}
5247
},
5348
"scripts": {
@@ -67,13 +62,13 @@
6762
"extra": {
6863
"laravel": {
6964
"providers": [
70-
"VendorName\\Skeleton\\SkeletonServiceProvider"
65+
"Coolsam\\NestedComments\\NestedCommentsServiceProvider"
7166
],
7267
"aliases": {
73-
"Skeleton": "VendorName\\Skeleton\\Facades\\Skeleton"
68+
"NestedComments": "Coolsam\\NestedComments\\Facades\\NestedComments"
7469
}
7570
}
7671
},
7772
"minimum-stability": "dev",
7873
"prefer-stable": true
79-
}
74+
}

config/nested-comments.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
3+
// config for Coolsam/NestedComments
4+
return [
5+
6+
];

0 commit comments

Comments
 (0)