Skip to content

Update project structure to bring in line with ReactPHP and add .gitattributes to exclude dev files from exports #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/.gitattributes export-ignore
/.github/ export-ignore
/.gitignore export-ignore
/phpunit.xml.dist export-ignore
/tests/ export-ignore
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2012 Igor Wiedler
Copyright (c) 2012 Christian Lück, Cees-Jan Kiewiet, Jan Sorgalla, Chris Boden, Igor Wiedler

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# NOTE: This package is no longer maintained. Use [react/promise](https://github.com/reactphp/promise) instead!

# React/Async
# Async

Async utilities for React.
Async utilities for [ReactPHP](https://reactphp.org/).

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

Expand Down Expand Up @@ -133,4 +133,4 @@ $ php vendor/bin/phpunit

## License

MIT, see LICENSE.
MIT, see [LICENSE file](LICENSE).
31 changes: 28 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,30 @@
{
"name": "react/async",
"description": "Async utilities for React.",
"keywords": ["async"],
"description": "Async utilities for ReactPHP",
"keywords": ["async", "ReactPHP"],
"license": "MIT",
"authors": [
{
"name": "Christian Lück",
"homepage": "https://clue.engineering/",
"email": "[email protected]"
},
{
"name": "Cees-Jan Kiewiet",
"homepage": "https://wyrihaximus.net/",
"email": "[email protected]"
},
{
"name": "Jan Sorgalla",
"homepage": "https://sorgalla.com/",
"email": "[email protected]"
},
{
"name": "Chris Boden",
"homepage": "https://cboden.dev/",
"email": "[email protected]"
}
],
"require": {
"php": ">=5.3.2"
},
Expand All @@ -14,7 +36,10 @@
"react/event-loop": "You need some kind of event loop for this to make sense."
},
"autoload": {
"psr-0": { "React\\Async": "src" }
"psr-4": { "React\\Async\\": "src/" }
},
"autoload-dev": {
"psr-4": { "React\\Tests\\Async\\": "tests/" }
},
"extra": {
"branch-alias": {
Expand Down
4 changes: 2 additions & 2 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
bootstrap="tests/bootstrap.php"
bootstrap="vendor/autoload.php"
>
<testsuites>
<testsuite name="React-Async Test Suite">
<directory>./tests/React/</directory>
<directory>./tests/</directory>
</testsuite>
</testsuites>

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 0 additions & 4 deletions tests/bootstrap.php

This file was deleted.