21 files changed

+352
-270
lines changed
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,5 @@
77
/phpunit.xml.dist export-ignore
88
/tests export-ignore
99
/.editorconfig export-ignore
10-
/.php_cs export-ignore
1110
/. export-ignore
12-
/psalm.xml export-ignore
13-
11+
S
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
: :vendor_name
1+
: permafrost-dev
2+
custom: "https://permafrost.dev/open-source"
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://.com/:vendor_name/:package_name/discussions/new?category=q-a
4+
url: https://.com/permafrost-dev/code-snippets/discussions/new?category=q-a
55
about: Ask the community for help
66
- name: Request a feature
7-
url: https://.com/:vendor_name/:package_name/discussions/new?category=ideas
7+
url: https://.com/permafrost-dev/code-snippets/discussions/new?category=ideas
88
about: Share ideas for new features
99
- name: Report a bug
10-
url: https://.com/:vendor_name/:package_name/issues/new
10+
url: https://.com/permafrost-dev/code-snippets/issues/new
1111
about: Report a reproducable bug
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 [email protected] instead of using the issue tracker.
3+
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
codecov:
2+
branch: main
3+
require_ci_to_pass: yes
4+
5+
coverage:
6+
status:
7+
project:
8+
default:
9+
informational: true
10+
target: auto
11+
# this allows a 10% drop from the previous base commit coverage
12+
threshold: 20%
13+
:
14+
default:
15+
informational: true
16+
precision: 2
17+
round: up
18+
range: "40...80"
19+
20+
parsers:
21+
javascript:
22+
enable_partials: yes
23+
gcov:
24+
branch_detection:
25+
conditional: yes
26+
loop: yes
27+
method: no
28+
macro: no
29+
30+
comment:
31+
layout: "reach,diff,flags,files,footer"
32+
behavior: default
33+
require_changes: true
34+
35+
ignore:
36+
- "build/"
37+
- "tests/"
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ jobs:
88
strategy:
99
fail-fast: true
1010
matrix:
11-
os: [ubuntu-latest, windows-latest]
12-
php: [8.0]
13-
stability: [prefer-lowest, prefer-stable]
11+
os: [ubuntu-latest]
12+
php: [7.3, 7.4, 8.0]
13+
stability: [prefer-stable]
1414

1515
name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}
1616

@@ -34,4 +34,10 @@ jobs:
3434
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction
3535

3636
- name: Execute tests
37-
run: vendor/bin/phpunit
37+
run: ./vendor/bin/phpunit --coverage-clover clover.xml -d --without-creating-snapshots
38+
39+
- name: Upload coverage to Codecov
40+
uses: codecov/codecov-action@v1
41+
with:
42+
token: ${{ secrets.CODECOV_TOKEN }}
43+
files: clover.xml
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 `code-snippets` will be documented in this file.
44

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

Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) :vendor_name <[email protected]>
3+
Copyright (c) Permafrost Software <[email protected]>
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
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,27 @@
1-
# :package_description
1+
# Easily work with snippets of code
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-
[![ Tests Action Status](https://img.shields.io//workflow/status/vendor_slug/package_slug/run-tests?label=tests)](https://.com/vendor_slug/package_slug/actions?query=workflow%3ATests+branch%3Amaster)
5-
[![ Code Style Action Status](https://img.shields.io//workflow/status/vendor_slug/package_slug/Check%20&%20fix%20styling?label=code%20style)](https://.com/vendor_slug/package_slug/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amaster)
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)
7-
8-
---
9-
This package can be used as to scaffold a framework agnostic package. Follow these steps to get started:
10-
11-
1. Press the "Use template" button at the top of this repo to create a new repo with the contents of this skeleton
12-
2. Run "./configure.sh" to run a script that will replace all placeholders throughout all the files
13-
3. Have fun creating your package.
14-
4. If you need help creating a package, consider picking up our <a href="https://laravelpackage.training">Laravel Package Training</a> video course.
15-
---
3+
<!--
4+
[![Latest Version on Packagist](https://img.shields.io/packagist/v/permafrost-dev/code-snippets.svg?style=flat-square)](https://packagist.org/packages/permafrost-dev/code-snippets)
5+
[![ Tests Action Status](https://img.shields.io//workflow/status/permafrost-dev/code-snippets/run-tests?label=tests)](https://.com/permafrost-dev/code-snippets/actions?query=workflow%3ATests+branch%3Amaster)
6+
[![ Code Style Action Status](https://img.shields.io//workflow/status/permafrost-dev/code-snippets/Check%20&%20fix%20styling?label=code%20style)](https://.com/permafrost-dev/code-snippets/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amaster)
7+
[![Total Downloads](https://img.shields.io/packagist/dt/permafrost-dev/code-snippets.svg?style=flat-square)](https://packagist.org/packages/permafrost-dev/code-snippets)
8+
-->
169

1710
This is where your description should go. Try and limit it to a paragraph or two. Consider adding a small example.
1811

19-
## Support us
20-
21-
[<img src="https://-ads.s3.eu-central-1.amazonaws.com/:package_name.jpg?t=1" width="419px" />](https://spatie.be/-ad-click/:package_name)
22-
23-
We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).
24-
25-
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).
26-
2712
## Installation
2813

2914
You can install the package via composer:
3015

3116
```bash
32-
composer require vendor_slug/package_slug
17+
composer require permafrost-dev/code-snippets
3318
```
3419

3520
## Usage
3621

3722
```php
38-
$skeleton = new VendorName\Skeleton();
39-
echo $skeleton->echoPhrase('Hello, VendorName!');
23+
$codeSnippets = new Permafrost\CodeSnippets();
24+
echo $codeSnippets->echoPhrase('Hello!');
4025
```
4126

4227
## Testing
@@ -59,7 +44,7 @@ Please review [our security policy](../../security/policy) on how to report secu
5944

6045
## Credits
6146

62-
- [:author_name](https://.com/:author_username)
47+
- [Patrick Organ](https://.com/patinthehat)
6348
- [All Contributors](../../contributors)
6449

6550
## License
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,41 @@
11
{
2-
"name": "vendor_slug/package_slug",
3-
"description": ":package_description",
2+
"name": "permafrost-dev/code-snippets",
3+
"description": "Easily work with snippets of code",
44
"keywords": [
5-
":vendor_name",
6-
"package_slug"
5+
"permafrost",
6+
"code",
7+
"snippets",
8+
"code-snippets"
79
],
8-
"homepage": "https://.com/vendor_slug/package_slug",
10+
"homepage": "https://.com/permafrost-dev/code-snippets",
911
"license": "MIT",
1012
"authors": [
1113
{
12-
"name": ":author_name",
13-
"email": "[email protected]",
14+
"name": "Patrick Organ",
15+
"email": "[email protected]",
1416
"role": "Developer"
1517
}
1618
],
1719
"require": {
18-
"php": "^8.0"
20+
"php": "^7.4|^8.0"
1921
},
2022
"require-dev": {
21-
"friendsofphp/php-cs-fixer": "^3.0",
2223
"phpunit/phpunit": "^9.5",
23-
"spatie/ray": "^1.28",
24-
"vimeo/psalm": "^4.8"
24+
"spatie/phpunit-snapshot-assertions": "^4.2"
2525
},
2626
"autoload": {
2727
"psr-4": {
28-
"VendorName\\Skeleton\\": "src"
28+
"Permafrost\\CodeSnippets\\": "src"
2929
}
3030
},
3131
"autoload-dev": {
3232
"psr-4": {
33-
"VendorName\\Skeleton\\Tests\\": "tests"
33+
"Permafrost\\CodeSnippets\\Tests\\": "tests"
3434
}
3535
},
3636
"scripts": {
37-
"psalm": "vendor/bin/psalm",
3837
"test": "vendor/bin/phpunit",
39-
"test-coverage": "vendor/bin/phpunit --coverage-html coverage",
40-
"format": "vendor/bin/php-cs-fixer fix --allow-risky=yes"
38+
"test-coverage": "vendor/bin/phpunit --coverage-html build/coverage"
4139
},
4240
"config": {
4341
"sort-packages": true

0 commit comments

Comments
 (0)