Skip to content

Commit 4412a60

Browse files
authored
Merge pull request #3 from clue-labs/resurrect-project
Update project structure to bring in line with ReactPHP and add `.gitattributes` to exclude dev files from exports
2 parents d4cf21f + adc6eb0 commit 4412a60

12 files changed

+39
-13
lines changed

.gitattributes

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/.gitattributes export-ignore
2+
/.github/ export-ignore
3+
/.gitignore export-ignore
4+
/phpunit.xml.dist export-ignore
5+
/tests/ export-ignore

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2012 Igor Wiedler
1+
Copyright (c) 2012 Christian Lück, Cees-Jan Kiewiet, Jan Sorgalla, Chris Boden, Igor Wiedler
22

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

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# NOTE: This package is no longer maintained. Use [react/promise](https://github.com/reactphp/promise) instead!
22

3-
# React/Async
3+
# Async
44

5-
Async utilities for React.
5+
Async utilities for [ReactPHP](https://reactphp.org/).
66

77
It is heavily influenced by [async.js](https://github.com/caolan/async).
88

@@ -133,4 +133,4 @@ $ php vendor/bin/phpunit
133133

134134
## License
135135

136-
MIT, see LICENSE.
136+
MIT, see [LICENSE file](LICENSE).

composer.json

+28-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,30 @@
11
{
22
"name": "react/async",
3-
"description": "Async utilities for React.",
4-
"keywords": ["async"],
3+
"description": "Async utilities for ReactPHP",
4+
"keywords": ["async", "ReactPHP"],
55
"license": "MIT",
6+
"authors": [
7+
{
8+
"name": "Christian Lück",
9+
"homepage": "https://clue.engineering/",
10+
"email": "[email protected]"
11+
},
12+
{
13+
"name": "Cees-Jan Kiewiet",
14+
"homepage": "https://wyrihaximus.net/",
15+
"email": "[email protected]"
16+
},
17+
{
18+
"name": "Jan Sorgalla",
19+
"homepage": "https://sorgalla.com/",
20+
"email": "[email protected]"
21+
},
22+
{
23+
"name": "Chris Boden",
24+
"homepage": "https://cboden.dev/",
25+
"email": "[email protected]"
26+
}
27+
],
628
"require": {
729
"php": ">=5.3.2"
830
},
@@ -14,7 +36,10 @@
1436
"react/event-loop": "You need some kind of event loop for this to make sense."
1537
},
1638
"autoload": {
17-
"psr-0": { "React\\Async": "src" }
39+
"psr-4": { "React\\Async\\": "src/" }
40+
},
41+
"autoload-dev": {
42+
"psr-4": { "React\\Tests\\Async\\": "tests/" }
1843
},
1944
"extra": {
2045
"branch-alias": {

phpunit.xml.dist

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
processIsolation="false"
1010
stopOnFailure="false"
1111
syntaxCheck="false"
12-
bootstrap="tests/bootstrap.php"
12+
bootstrap="vendor/autoload.php"
1313
>
1414
<testsuites>
1515
<testsuite name="React-Async Test Suite">
16-
<directory>./tests/React/</directory>
16+
<directory>./tests/</directory>
1717
</testsuite>
1818
</testsuites>
1919

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/bootstrap.php

-4
This file was deleted.

0 commit comments

Comments
 (0)