Skip to content

Commit d0c807d

Browse files
authored
Merge pull request OleksiiBulba#6 from OleksiiBulba/chore/impovements-2
Chore: package improvements
2 parents 2a10fdd + 20775c3 commit d0c807d

16 files changed

+208
-36
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Updated
11+
- Updated README.md;
12+
1013
## [1.0] - 2022-12-14
1114

1215
### Updated

CODE_OF_CONDUCT.md

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and leaders pledge to make participation in our
6+
community a harassment-free experience for everyone, regardless of age, body
7+
size, visible or invisible disability, ethnicity, sex characteristics, gender
8+
identity and expression, level of experience, education, socio-economic status,
9+
nationality, personal appearance, race, caste, color, religion, or sexual
10+
identity and orientation.
11+
12+
We pledge to act and interact in ways that contribute to an open, welcoming,
13+
diverse, inclusive, and healthy community.
14+
15+
## Our Standards
16+
17+
Examples of behavior that contributes to a positive environment for our
18+
community include:
19+
20+
* Demonstrating empathy and kindness toward other people
21+
* Being respectful of differing opinions, viewpoints, and experiences
22+
* Giving and gracefully accepting constructive feedback
23+
* Accepting responsibility and apologizing to those affected by our mistakes,
24+
and learning from the experience
25+
* Focusing on what is best not just for us as individuals, but for the overall
26+
community
27+
28+
Examples of unacceptable behavior include:
29+
30+
* The use of sexualized language or imagery, and sexual attention or advances of
31+
any kind
32+
* Trolling, insulting or derogatory comments, and personal or political attacks
33+
* Public or private harassment
34+
* Publishing others' private information, such as a physical or email address,
35+
without their explicit permission
36+
* Other conduct which could reasonably be considered inappropriate in a
37+
professional setting
38+
39+
## Enforcement Responsibilities
40+
41+
Community leaders are responsible for clarifying and enforcing our standards of
42+
acceptable behavior and will take appropriate and fair corrective action in
43+
response to any behavior that they deem inappropriate, threatening, offensive,
44+
or harmful.
45+
46+
Community leaders have the right and responsibility to remove, edit, or reject
47+
comments, commits, code, wiki edits, issues, and other contributions that are
48+
not aligned to this Code of Conduct, and will communicate reasons for moderation
49+
decisions when appropriate.
50+
51+
## Scope
52+
53+
This Code of Conduct applies within all community spaces, and also applies when
54+
an individual is officially representing the community in public spaces.
55+
Examples of representing our community include using an official e-mail address,
56+
posting via an official social media account, or acting as an appointed
57+
representative at an online or offline event.
58+
59+
## Enforcement
60+
61+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
62+
reported to the community leaders responsible for enforcement by [email][author-email].
63+
All complaints will be reviewed and investigated promptly and fairly.
64+
65+
All community leaders are obligated to respect the privacy and security of the
66+
reporter of any incident.
67+
68+
## Enforcement Guidelines
69+
70+
Community leaders will follow these Community Impact Guidelines in determining
71+
the consequences for any action they deem in violation of this Code of Conduct:
72+
73+
### 1. Correction
74+
75+
**Community Impact**: Use of inappropriate language or other behavior deemed
76+
unprofessional or unwelcome in the community.
77+
78+
**Consequence**: A private, written warning from community leaders, providing
79+
clarity around the nature of the violation and an explanation of why the
80+
behavior was inappropriate. A public apology may be requested.
81+
82+
### 2. Warning
83+
84+
**Community Impact**: A violation through a single incident or series of
85+
actions.
86+
87+
**Consequence**: A warning with consequences for continued behavior. No
88+
interaction with the people involved, including unsolicited interaction with
89+
those enforcing the Code of Conduct, for a specified period of time. This
90+
includes avoiding interactions in community spaces as well as external channels
91+
like social media. Violating these terms may lead to a temporary or permanent
92+
ban.
93+
94+
### 3. Temporary Ban
95+
96+
**Community Impact**: A serious violation of community standards, including
97+
sustained inappropriate behavior.
98+
99+
**Consequence**: A temporary ban from any sort of interaction or public
100+
communication with the community for a specified period of time. No public or
101+
private interaction with the people involved, including unsolicited interaction
102+
with those enforcing the Code of Conduct, is allowed during this period.
103+
Violating these terms may lead to a permanent ban.
104+
105+
### 4. Permanent Ban
106+
107+
**Community Impact**: Demonstrating a pattern of violation of community
108+
standards, including sustained inappropriate behavior, harassment of an
109+
individual, or aggression toward or disparagement of classes of individuals.
110+
111+
**Consequence**: A permanent ban from any sort of public interaction within the
112+
community.
113+
114+
## Attribution
115+
116+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
117+
version 2.1, available at
118+
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
119+
120+
Community Impact Guidelines were inspired by
121+
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
122+
123+
For answers to common questions about this code of conduct, see the FAQ at
124+
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
125+
[https://www.contributor-covenant.org/translations][translations].
126+
127+
[author-email]: mailto:[email protected]
128+
[homepage]: https://www.contributor-covenant.org
129+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
130+
[Mozilla CoC]: https://github.com/mozilla/diversity
131+
[FAQ]: https://www.contributor-covenant.org/faq
132+
[translations]: https://www.contributor-covenant.org/translations

CONTRIBUTING.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Contributing
2+
3+
Contributions are **welcome** and will be fully **credited**.
4+
5+
We accept contributions via Pull Requests on [GitHub][github-pull-requests].
6+
7+
8+
## Pull Requests
9+
10+
- **[PSR-12 Extended Coding Style][link-psr-12]** - Check the code style with ``$ composer check-style`` and fix it with ``$ composer fix-style``.
11+
12+
- **Add tests** -- Your patch will not be accepted if it does not have tests.
13+
14+
- **Document any change in behaviour** -- Make sure the `README.md` and any other relevant documentation are kept up-to-date.
15+
16+
- **Consider our release cycle** -- We try to follow [SemVer v2.0.0][link-semver-website]. Randomly breaking public APIs is not an option.
17+
18+
- **Create feature branches** -- Don't ask us to pull from your master branch.
19+
20+
- **One pull request per feature** -- If you want to do more than one thing, send multiple pull requests.
21+
22+
- **Send coherent history** -- Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please [squash them][link-git-squash-tutorial] before submitting.
23+
24+
25+
## Running Tests
26+
27+
``` bash
28+
$ composer test
29+
```
30+
31+
**Happy coding**!
32+
33+
[github-pull-requests]: https://github.com/OleksiiBulba/webpack-encore-plugin/pulls
34+
[link-psr-12]: https://www.php-fig.org/psr/psr-12/
35+
[link-semver-website]: http://semver.org/
36+
[link-git-squash-tutorial]: http://www.git-scm.com/book/en/v2/Git-Tools-Rewriting-History#Changing-Multiple-Commit-Messages

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ composer test
9797
## Contributing
9898

9999
Please feel free to open pull request or create an issue, they are more than welcome!
100+
Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE_OF_CONDUCT](CODE_OF_CONDUCT.md) for details.
100101

101102
## Security
102103

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
},
2727
"autoload": {
2828
"psr-4": {
29-
"Boo\\WebpackEncorePlugin\\": "src"
29+
"OleksiiBulba\\WebpackEncorePlugin\\": "src"
3030
}
3131
},
3232
"autoload-dev": {
3333
"psr-4": {
34-
"Boo\\WebpackEncorePlugin\\Tests\\Unit\\": "tests/unit"
34+
"OleksiiBulba\\WebpackEncorePlugin\\Tests\\Unit\\": "tests/unit"
3535
}
3636
},
3737
"config": {

src/Asset/EntrypointLookup.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Boo\WebpackEncorePlugin\Asset;
12+
namespace OleksiiBulba\WebpackEncorePlugin\Asset;
1313

14-
use Boo\WebpackEncorePlugin\Exception\EntrypointNotFoundException;
15-
use Boo\WebpackEncorePlugin\WebpackEncorePluginConfigurationInterface;
14+
use OleksiiBulba\WebpackEncorePlugin\Exception\EntrypointNotFoundException;
15+
use OleksiiBulba\WebpackEncorePlugin\WebpackEncorePluginConfigurationInterface;
1616
use Symfony\Component\Serializer\Encoder\DecoderInterface;
1717
use Symfony\Component\Serializer\Encoder\JsonEncoder;
1818
use Symfony\Component\Serializer\Exception\UnexpectedValueException;

src/Asset/EntrypointLookupInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Boo\WebpackEncorePlugin\Asset;
12+
namespace OleksiiBulba\WebpackEncorePlugin\Asset;
1313

14-
use Boo\WebpackEncorePlugin\Exception\EntrypointNotFoundException;
14+
use OleksiiBulba\WebpackEncorePlugin\Exception\EntrypointNotFoundException;
1515

1616
interface EntrypointLookupInterface
1717
{

src/Exception/EntrypointNotFoundException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Boo\WebpackEncorePlugin\Exception;
12+
namespace OleksiiBulba\WebpackEncorePlugin\Exception;
1313

1414
class EntrypointNotFoundException extends \InvalidArgumentException
1515
{

src/TagRenderer/TagRenderer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Boo\WebpackEncorePlugin\TagRenderer;
12+
namespace OleksiiBulba\WebpackEncorePlugin\TagRenderer;
1313

14-
use Boo\WebpackEncorePlugin\Asset\EntrypointLookupInterface;
14+
use OleksiiBulba\WebpackEncorePlugin\Asset\EntrypointLookupInterface;
1515

1616
class TagRenderer implements TagRendererInterface
1717
{

src/TagRenderer/TagRendererInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Boo\WebpackEncorePlugin\TagRenderer;
12+
namespace OleksiiBulba\WebpackEncorePlugin\TagRenderer;
1313

1414
interface TagRendererInterface
1515
{

0 commit comments

Comments
 (0)