Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 897bd95

Browse files
chore(deps): update (#124)
BREAKING CHANGE: minimum required nodejs version is `8.9.0`
1 parent ff3ceeb commit 897bd95

40 files changed

+5647
-7723
lines changed

.babelrc

-35
This file was deleted.

.circleci/config.yml

-145
This file was deleted.

.eslintignore

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
/node_modules
1+
/coverage
22
/dist
3-
/test/fixtures
3+
/node_modules
4+
/test/fixtures

.eslintrc.js

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
module.exports = {
22
root: true,
3-
plugins: ['prettier'],
4-
extends: ['@webpack-contrib/eslint-config-webpack'],
5-
rules: {
6-
'prettier/prettier': [
7-
'error',
8-
{ singleQuote: true, trailingComma: 'es5', arrowParens: 'always' },
9-
],
10-
},
3+
extends: ['@webpack-contrib/eslint-config-webpack', 'prettier'],
114
};

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
package-lock.json -diff
22
* text=auto
33
bin/* eol=lf
4+
yarn.lock -diff

.github/CONTRIBUTING.md

+69-41
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
## Contributing in @webpack-contrib
1+
# Contributing in @webpack-contrib
22

3-
We'd always love contributions to further improve the webpack / webpack-contrib ecosystem!
3+
We'd always love contributions to further improve the webpack / webpack-contrib ecosystem!
44
Here are the guidelines we'd like you to follow:
55

6-
* [Questions and Problems](#question)
7-
* [Issues and Bugs](#issue)
8-
* [Feature Requests](#feature)
9-
* [Pull Request Submission Guidelines](#submit-pr)
10-
* [Commit Message Conventions](#commit)
6+
- [Questions and Problems](#question)
7+
- [Issues and Bugs](#issue)
8+
- [Feature Requests](#feature)
9+
- [Pull Request Submission Guidelines](#submit-pr)
10+
- [Commit Message Conventions](#commit)
1111

12-
### <a name="question"></a> Got a Question or Problem?
12+
## <a name="question"></a> Got a Question or Problem?
1313

14-
Please submit support requests and questions to StackOverflow using the tag [[webpack]](http://stackoverflow.com/tags/webpack).
15-
StackOverflow is better suited for this kind of support though you may also inquire in [Webpack Gitter](https://gitter.im/webpack/webpack).
14+
Please submit support requests and questions to StackOverflow using the tag [[webpack]](http://stackoverflow.com/tags/webpack).
15+
StackOverflow is better suited for this kind of support though you may also inquire in [Webpack Gitter](https://gitter.im/webpack/webpack).
1616
The issue tracker is for bug reports and feature discussions.
1717

18-
### <a name="issue"></a> Found an Issue or Bug?
18+
## <a name="issue"></a> Found an Issue or Bug?
1919

2020
Before you submit an issue, please search the issue tracker, maybe an issue for your problem already exists and the discussion might inform you of workarounds readily available.
2121

@@ -31,13 +31,13 @@ We will be insisting on a minimal reproduce scenario in order to save maintainer
3131

3232
Unfortunately, we are not able to investigate / fix bugs without a minimal reproduction, so if we don't hear back from you we are going to close an issue that doesn't have enough info to be reproduced.
3333

34-
### <a name="feature"></a> Feature Requests?
34+
## <a name="feature"></a> Feature Requests?
3535

36-
You can *request* a new feature by creating an issue on Github.
36+
You can _request_ a new feature by creating an issue on Github.
3737

38-
If you would like to *implement* a new feature, please submit an issue with a proposal for your work `first`, to be sure that particular makes sense for the project.
38+
If you would like to _implement_ a new feature, please submit an issue with a proposal for your work `first`, to be sure that particular makes sense for the project.
3939

40-
### <a name="submit-pr"></a> Pull Request Submission Guidelines
40+
## <a name="submit-pr"></a> Pull Request Submission Guidelines
4141

4242
Before you submit your Pull Request (PR) consider the following guidelines:
4343

@@ -46,9 +46,9 @@ Before you submit your Pull Request (PR) consider the following guidelines:
4646
- Fill out our `Pull Request Template`. Your pull request will not be considered if it is ignored.
4747
- Please sign the `Contributor License Agreement (CLA)` when a pull request is opened. We cannot accept your pull request without this. Make sure you sign with the primary email address associated with your local / github account.
4848

49-
### <a name="commit"></a> Webpack Contrib Commit Conventions
49+
## <a name="commit"></a> Webpack Contrib Commit Conventions
5050

51-
Each commit message consists of a **header**, a **body** and a **footer**. The header has a special
51+
Each commit message consists of a **header**, a **body** and a **footer**. The header has a special
5252
format that includes a **type**, a **scope** and a **subject**:
5353

5454
```
@@ -66,48 +66,56 @@ to read on GitHub as well as in various git tools.
6666

6767
The footer should contain a [closing reference to an issue](https://help.github.com/articles/closing-issues-via-commit-messages/) if any.
6868

69-
Examples:
69+
Examples:
70+
7071
```
7172
docs(readme): update install instructions
7273
```
74+
7375
```
7476
fix: refer to the `entrypoint` instead of the first `module`
7577
```
7678

77-
#### Revert
78-
If the commit reverts a previous commit, it should begin with `revert: `, followed by the header of the reverted commit.
79+
### Revert
80+
81+
If the commit reverts a previous commit, it should begin with `revert:`, followed by the header of the reverted commit.
7982
In the body it should say: `This reverts commit <hash>.`, where the hash is the SHA of the commit being reverted.
8083

81-
#### Type
84+
### Type
85+
8286
Must be one of the following:
8387

84-
* **build**: Changes that affect the build system or external dependencies (example scopes: babel, npm)
85-
* **chore**: Changes that fall outside of build / docs that do not effect source code (example scopes: package, defaults)
86-
* **ci**: Changes to our CI configuration files and scripts (example scopes: circleci, travis)
87-
* **docs**: Documentation only changes (example scopes: readme, changelog)
88-
* **feat**: A new feature
89-
* **fix**: A bug fix
90-
* **perf**: A code change that improves performance
91-
* **refactor**: A code change that neither fixes a bug nor adds a feature
92-
* **revert**: Used when reverting a committed change
93-
* **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons)
94-
* **test**: Addition of or updates to Jest tests
95-
96-
#### Scope
88+
- **build**: Changes that affect the build system or external dependencies (example scopes: babel, npm)
89+
- **chore**: Changes that fall outside of build / docs that do not effect source code (example scopes: package, defaults)
90+
- **ci**: Changes to our CI configuration files and scripts (example scopes: circleci, travis)
91+
- **docs**: Documentation only changes (example scopes: readme, changelog)
92+
- **feat**: A new feature
93+
- **fix**: A bug fix
94+
- **perf**: A code change that improves performance
95+
- **refactor**: A code change that neither fixes a bug nor adds a feature
96+
- **revert**: Used when reverting a committed change
97+
- **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons)
98+
- **test**: Addition of or updates to Jest tests
99+
100+
### Scope
101+
97102
The scope is subjective & depends on the `type` see above. A good example would be a change to a particular class / module.
98103

99-
#### Subject
104+
### Subject
105+
100106
The subject contains a succinct description of the change:
101107

102-
* use the imperative, present tense: "change" not "changed" nor "changes"
103-
* don't capitalize the first letter
104-
* no dot (.) at the end
108+
- use the imperative, present tense: "change" not "changed" nor "changes"
109+
- don't capitalize the first letter
110+
- no dot (.) at the end
111+
112+
### Body
105113

106-
#### Body
107114
Just as in the **subject**, use the imperative, present tense: "change" not "changed" nor "changes".
108115
The body should include the motivation for the change and contrast this with previous behavior.
109116

110-
#### Footer
117+
### Footer
118+
111119
The footer should contain any information about **Breaking Changes** and is also the place to
112120
reference GitHub issues that this commit **Closes**.
113121

@@ -116,9 +124,29 @@ reference GitHub issues that this commit **Closes**.
116124
Example
117125

118126
```
119-
BREAKING CHANGE: Updates to `Chunk.mapModules`.
127+
BREAKING CHANGE: Updates to `Chunk.mapModules`.
120128
121129
This release is not backwards compatible with `Webpack 2.x` due to breaking changes in webpack/webpack#4764
122130
Migration: see webpack/webpack#5225
123131
124132
```
133+
134+
## Testing Your Pull Request
135+
136+
You may have the need to test your changes in a real-world project or dependent
137+
module. Thankfully, Github provides a means to do this. Add a dependency to the
138+
`package.json` for such a project as follows:
139+
140+
```json
141+
{
142+
"devDependencies": {
143+
"compression-webpack-plugin": "webpack-contrib/compression-webpack-plugin#{id}/head"
144+
}
145+
}
146+
```
147+
148+
Where `{id}` is the # ID of your Pull Request.
149+
150+
## Thanks
151+
152+
For your interest, time, understanding, and for following this simple guide.

.github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
open_collective: webpack

.github/ISSUE_TEMPLATE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
existing template types, your issue may be closed as invalid. Our issue
1414
templates contain fields that help us help you, and without that important
1515
info, we might as well be ice-skating uphill, carrying a wooly mammoth.
16-
-->
16+
-->

0 commit comments

Comments
 (0)