Skip to content

Commit df45ed7

Browse files
Merge pull request #64 from andreaswolf/issue-57
[TASK] Add .gitattributes to packages
2 parents 8fce2dd + e8afaa4 commit df45ed7

File tree

7 files changed

+76
-0
lines changed

7 files changed

+76
-0
lines changed

extension-installer/.gitattributes

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
ecs.php export-ignore
2+
phpstan.neon export-ignore
3+
README.md export-ignore
4+
rector.php export-ignore
5+
.gitignore export-ignore

extension-installer/README.md

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Rector Extension Installer
2+
3+
Composer plugin for automatic installation of Fractor extensions.
4+
5+
## Usage
6+
7+
```bash
8+
composer require --dev a9f/fractor-extension-installer
9+
```
10+
11+
## Instructions for extension developers
12+
13+
It's best to set the extension's composer package [type](https://getcomposer.org/doc/04-schema.md#type) to `fractor-extension` for this plugin to be able to recognize it and to be [discoverable on Packagist](https://packagist.org/explore/?type=fractor-extension).
14+
15+
Add `rector` key in the extension `composer.json`'s `extra` section:
16+
17+
```json
18+
{
19+
"extra": {
20+
"fractor": {
21+
"includes": [
22+
"config/config.php"
23+
]
24+
}
25+
}
26+
}
27+
```
28+
29+
## Limitations
30+
31+
The extension installer depends on Composer script events, therefore you cannot use `--no-scripts` flag.
32+
33+
## Acknowledgment
34+
This package is heavily inspired by [phpstan/extension-installer](https://github.com/phpstan/extension-installer) by Ondřej Mirtes. Thank you.
35+

fractor-doc-generator/.gitattributes

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
ecs.php export-ignore
2+
phpstan.neon export-ignore
3+
README.md export-ignore
4+
rector.php export-ignore
5+
phpunit.xml export-ignore
6+
tests export-ignore
7+
stubs export-ignore
8+
.gitignore export-ignore

fractor-xml/.gitattributes

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
ecs.php export-ignore
2+
phpstan.neon export-ignore
3+
README.md export-ignore
4+
rector.php export-ignore
5+
phpunit.xml export-ignore
6+
tests export-ignore
7+
.gitignore export-ignore

fractor-yaml/.gitattributes

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
ecs.php export-ignore
2+
phpstan.neon export-ignore
3+
README.md export-ignore
4+
rector.php export-ignore
5+
phpunit.xml export-ignore
6+
tests export-ignore
7+
.gitignore export-ignore

fractor/.gitattributes

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
ecs.php export-ignore
2+
phpstan.neon export-ignore
3+
README.md export-ignore
4+
rector.php export-ignore
5+
phpunit.xml export-ignore
6+
tests export-ignore
7+
.gitignore export-ignore

typo3-fractor/.gitattributes

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
ecs.php export-ignore
2+
phpstan.neon export-ignore
3+
README.md export-ignore
4+
rector.php export-ignore
5+
phpunit.xml export-ignore
6+
tests export-ignore
7+
.gitignore export-ignore

0 commit comments

Comments
 (0)