Skip to content

Commit eaf373a

Browse files
Merge pull request #4 from zingimmick/syncing-template
Syncing from template
2 parents ed3f180 + 21e9bad commit eaf373a

File tree

8 files changed

+133
-13
lines changed

8 files changed

+133
-13
lines changed

.editorconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 4
7+
indent_style = space
8+
insert_final_newline = true
9+
max_line_length = 120
10+
tab_width = 4
11+
trim_trailing_whitespace = true
12+
13+
[*.md]
14+
trim_trailing_whitespace = false
15+
16+
[*.yml]
17+
indent_size = 2

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
7+
<!-- changelog-linker -->
8+
9+
## Unreleased
10+
11+
## [0.0.6] - 2020-10-05
12+
13+
### Added
14+
15+
- [#3] Add init command
16+
17+
### Changed
18+
19+
- [#2] improve test
20+
21+
## [0.0.5] - 2020-10-03
22+
- [#1] Bump paambaati/codeclimate-action from v2.6.0 to v2.7.4
23+
24+
[#3]: https://github.com/zingimmick/china-administrative-divisions-laravel/pull/3
25+
[#2]: https://github.com/zingimmick/china-administrative-divisions-laravel/pull/2
26+
[#1]: https://github.com/zingimmick/china-administrative-divisions-laravel/pull/1
27+
[0.0.6]: https://github.com/zingimmick/china-administrative-divisions-laravel/compare/0.0.5...0.0.6

CONTRIBUTING.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# CONTRIBUTING
2+
3+
Contributions are welcome, and are accepted via pull requests.
4+
Please review these guidelines before submitting any pull requests.
5+
6+
## Process
7+
8+
1. Fork the project
9+
1. Create a new branch
10+
1. Code, test, commit and push
11+
1. Open a pull request detailing your changes. Make sure to follow the [template](.github/PULL_REQUEST_TEMPLATE.md)
12+
13+
## Guidelines
14+
15+
* Please ensure the coding style running `composer lint`.
16+
* Send a coherent commit history, making sure each individual commit in your pull request is meaningful.
17+
* You may need to [rebase](https://git-scm.com/book/en/v2/Git-Branching-Rebasing) to avoid merge conflicts.
18+
* Please remember that we follow [SemVer](http://semver.org/).
19+
20+
## Setup
21+
22+
Clone your fork, then install the dev dependencies:
23+
```bash
24+
composer install
25+
```
26+
27+
## Lint
28+
29+
Lint your code:
30+
```bash
31+
composer lint
32+
```
33+
34+
## Fix
35+
36+
Fix your coding style:
37+
```bash
38+
composer fix
39+
```
40+
41+
## Tests
42+
43+
Run all tests:
44+
```bash
45+
composer test
46+
```
47+
48+
Check types:
49+
```bash
50+
composer test:types
51+
```
52+
53+
Unit tests:
54+
```bash
55+
composer test:unit
56+
```

changelog-linker.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
6+
use Symplify\ChangelogLinker\ValueObject\Option;
7+
8+
return static function (ContainerConfigurator $containerConfigurator): void {
9+
$parameters = $containerConfigurator->parameters();
10+
11+
$parameters->set(
12+
Option::AUTHORS_TO_IGNORE,
13+
[
14+
'zingimmick',
15+
'dependabot[bot]',
16+
'fossabot',
17+
'renovate[bot]',
18+
]
19+
);
20+
};

changelog-linker.yaml

Lines changed: 0 additions & 2 deletions
This file was deleted.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"require-dev": {
2525
"orchestra/testbench": "^4.0 || ^5.0 || ^6.0",
2626
"phpunit/phpunit": "^8.0 || ^9.0",
27-
"zing/coding-standard": "^2.0.0"
27+
"zing/coding-standard": "^2.4"
2828
},
2929
"autoload": {
3030
"psr-4": {

ecs.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@
2323
$parameters->set(
2424
Option::PATHS,
2525
[
26-
'config',
27-
'src',
28-
'tests',
29-
'ecs.php',
30-
'rector.php',
26+
__DIR__ . '/config',
27+
__DIR__ . '/src',
28+
__DIR__ . '/tests',
29+
__DIR__ . '/changelog-linker.php',
30+
__DIR__ . '/ecs.php',
31+
__DIR__ . '/rector.php',
3132
]
3233
);
3334
};

rector.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,12 @@
3939
$parameters->set(
4040
Option::PATHS,
4141
[
42-
'config',
43-
'src',
44-
'tests',
45-
'ecs.php',
46-
'rector.php',
42+
__DIR__ . '/config',
43+
__DIR__ . '/src',
44+
__DIR__ . '/tests',
45+
__DIR__ . '/changelog-linker.php',
46+
__DIR__ . '/ecs.php',
47+
__DIR__ . '/rector.php',
4748
]
4849
);
4950
};

0 commit comments

Comments
 (0)