Skip to content

Commit af94704

Browse files
chore(default): migrate (#394)
1 parent 762efe4 commit af94704

33 files changed

+4185
-1545
lines changed

β€Ž.eslintrc.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@ module.exports = {
22
root: true,
33
plugins: ['prettier'],
44
extends: ['@webpack-contrib/eslint-config-webpack'],
5-
parserOptions: {
6-
sourceType: 'script',
7-
},
85
rules: {
96
'prettier/prettier': ['error'],
10-
strict: ['error', 'safe'],
7+
strict: ['off'],
118
},
129
};

β€Ž.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
* text=auto
2+
bin/* eol=lf
3+
yarn.lock -diff
4+
package-lock.json -diff

β€Ž.github/CONTRIBUTING.md

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
# Contributing in @webpack
2+
3+
We'd always love contributions to further improve the webpack / webpack-contrib ecosystem!
4+
Here are the guidelines we'd like you to follow:
5+
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)
11+
12+
## <a name="question"></a> Got a Question or Problem?
13+
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).
16+
The issue tracker is for bug reports and feature discussions.
17+
18+
## <a name="issue"></a> Found an Issue or Bug?
19+
20+
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.
21+
22+
We want to fix all the issues as soon as possible, but before fixing a bug we need to reproduce and confirm it. In order to reproduce bugs, we ask that you to provide a minimal reproduction scenario (github repo or failing test case). Having a live, reproducible scenario gives us a wealth of important information without going back & forth to you with additional questions like:
23+
24+
- version of Webpack used
25+
- version of the loader / plugin you are creating a bug report for
26+
- the use-case that fails
27+
28+
A minimal reproduce scenario allows us to quickly confirm a bug (or point out config problems) as well as confirm that we are fixing the right problem.
29+
30+
We will be insisting on a minimal reproduce scenario in order to save maintainers time and ultimately be able to fix more bugs. We understand that sometimes it might be hard to extract essentials bits of code from a larger code-base but we really need to isolate the problem before we can fix it.
31+
32+
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.
33+
34+
## <a name="feature"></a> Feature Requests?
35+
36+
You can _request_ a new feature by creating an issue on Github.
37+
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.
39+
40+
## <a name="submit-pr"></a> Pull Request Submission Guidelines
41+
42+
Before you submit your Pull Request (PR) consider the following guidelines:
43+
44+
- Search Github for an open or closed PR that relates to your submission. You don't want to duplicate effort.
45+
- Commit your changes using a descriptive commit message that follows our [commit message conventions](#commit). Adherence to these conventions is necessary because release notes are automatically generated from these messages.
46+
- Fill out our `Pull Request Template`. Your pull request will not be considered if it is ignored.
47+
- 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.
48+
49+
## <a name="commit"></a> Webpack Contrib Commit Conventions
50+
51+
Each commit message consists of a **header**, a **body** and a **footer**. The header has a special
52+
format that includes a **type**, a **scope** and a **subject**:
53+
54+
```
55+
<type>(<scope>): <subject>
56+
<BLANK LINE>
57+
<body>
58+
<BLANK LINE>
59+
<footer>
60+
```
61+
62+
The **header** is mandatory and the **scope** of the header is optional.
63+
64+
Any line of the commit message cannot be longer 100 characters! This allows the message to be easier
65+
to read on GitHub as well as in various git tools.
66+
67+
The footer should contain a [closing reference to an issue](https://help.github.com/articles/closing-issues-via-commit-messages/) if any.
68+
69+
Examples:
70+
71+
```
72+
docs(readme): update install instructions
73+
```
74+
75+
```
76+
fix: refer to the `entrypoint` instead of the first `module`
77+
```
78+
79+
### Revert
80+
81+
If the commit reverts a previous commit, it should begin with `revert:`, followed by the header of the reverted commit.
82+
In the body it should say: `This reverts commit <hash>.`, where the hash is the SHA of the commit being reverted.
83+
84+
### Type
85+
86+
Must be one of the following:
87+
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+
102+
The scope is subjective & depends on the `type` see above. A good example would be a change to a particular class / module.
103+
104+
### Subject
105+
106+
The subject contains a succinct description of the change:
107+
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
113+
114+
Just as in the **subject**, use the imperative, present tense: "change" not "changed" nor "changes".
115+
The body should include the motivation for the change and contrast this with previous behavior.
116+
117+
### Footer
118+
119+
The footer should contain any information about **Breaking Changes** and is also the place to
120+
reference GitHub issues that this commit **Closes**.
121+
122+
**Breaking Changes** should start with the word `BREAKING CHANGE:` with a space or two newlines. The rest of the commit message is then used for this.
123+
124+
Example
125+
126+
```
127+
BREAKING CHANGE: Updates to `Chunk.mapModules`.
128+
129+
This release is not backwards compatible with `Webpack 2.x` due to breaking changes in webpack/webpack#4764
130+
Migration: see webpack/webpack#5225
131+
132+
```
133+
134+
## Thanks
135+
136+
For your interest, time, understanding, and for following this simple guide.

β€Ž.github/ISSUE_TEMPLATE.md

Lines changed: 16 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,16 @@
1-
> The Issues page for this repository is not a support forum. **Please ask questions on StackOverflow or the webpack Gitter (https://gitter.im/webpack/webpack). Questions will be closed.** If you proceed with this form, please fill out **_all_** fields, or your issue may be closed as "invalid." Please do not delete this template from a new issue. Please remove this header to acknowledge this message.
2-
3-
<!-- Before creating an issue please make sure you are using the latest version of webpack-dev-middleware and webpack. -->
4-
5-
* Operating System:
6-
* Node Version:
7-
* NPM Version:
8-
* webpack version:
9-
* webpack-dev-middleware Version:
10-
11-
- [ ] This is a **feature** request
12-
- [ ] This is a **bug**
13-
14-
### Code
15-
16-
If you have a large amount of code to share which demonstrates the problem you're experiencing, please provide a link to your
17-
repository rather than pasting code. Otherwise, please paste relevant short snippets below.
18-
19-
```js
20-
// please provide your webpack.config.js for bug reports
21-
```
22-
23-
```js
24-
// additional code
25-
```
26-
27-
### Expected Behavior
28-
29-
### Actual Behavior
30-
31-
### For Bugs; How can we reproduce the behavior?
32-
33-
### For Features; What is the motivation and/or use-case for the feature?
1+
<!--
2+
πŸ‘‰πŸ½ Need support, advice, or help? Don't open an issue!
3+
Head to StackOverflow or https://gitter.im/webpack/webpack.
4+
5+
Hey there!
6+
7+
You arrived at this template because you felt none of the other options
8+
matched the kind of issue you'd like to report. Please use this opportunity to
9+
tell us about your particular type of issue so we can try to accomodate
10+
similar issues in the future.
11+
12+
PLEASE do note, if you're using this to report an issue already covered by the
13+
existing template types, your issue may be closed as invalid. Our issue
14+
templates contain fields that help us help you, and without that important
15+
info, we might as well be ice-skating uphill, carrying a wooly mammoth.
16+
-->

β€Ž.github/ISSUE_TEMPLATE/BUG.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
name: πŸ› Bug Report
3+
about: Something went awry and you'd like to tell us about it.
4+
5+
---
6+
7+
<!--
8+
Issues are so πŸ”₯
9+
10+
If you remove or skip this template, you'll make the 🐼 sad and the mighty god
11+
of Github will appear and pile-drive the close button from a great height
12+
while making animal noises.
13+
14+
πŸ‘‰πŸ½ Need support, advice, or help? Don't open an issue!
15+
Head to StackOverflow or https://gitter.im/webpack/webpack.
16+
-->
17+
18+
* Operating System:
19+
* Node Version:
20+
* NPM Version:
21+
* webpack Version:
22+
* webpack-dev-middleware Version:
23+
24+
### Expected Behavior
25+
26+
<!-- Remove this section if not reporting a bug or modification request. -->
27+
28+
### Actual Behavior
29+
30+
<!-- Remove this section if not reporting a bug or modification request. -->
31+
32+
### Code
33+
34+
```js
35+
// webpack.config.js
36+
// If your code blocks are over 20 lines, please paste a link to a gist
37+
// (https://gist.github.com).
38+
```
39+
40+
```js
41+
// additional code, HEY YO remove this block if you don't need it
42+
```
43+
44+
### How Do We Reproduce?
45+
46+
<!--
47+
Remove this section if not reporting a bug.
48+
49+
If your webpack config is over 50 lines long, please provide a URL to a repo
50+
for your beefy πŸ– app that we can use to reproduce.
51+
-->

β€Ž.github/ISSUE_TEMPLATE/DOCS.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: πŸ“š Documentation
3+
about: Are the docs lacking or missing something? Do they need some new πŸ”₯ hotness? Tell us here.
4+
5+
---
6+
7+
<!--
8+
Issues are so πŸ”₯
9+
10+
If you remove or skip this template, you'll make the 🐼 sad and the mighty god
11+
of Github will appear and pile-drive the close button from a great height
12+
while making animal noises.
13+
14+
πŸ‘‰πŸ½ Need support, advice, or help? Don't open an issue!
15+
Head to StackOverflow or https://gitter.im/webpack/webpack.
16+
-->
17+
18+
Documentation Is:
19+
20+
<!-- Please place an x (no spaces!) in all [ ] that apply -->
21+
22+
- [ ] Missing
23+
- [ ] Needed
24+
- [ ] Confusing
25+
- [ ] Not Sure?
26+
27+
### Please Explain in Detail...
28+
29+
30+
### Your Proposal for Changes

β€Ž.github/ISSUE_TEMPLATE/FEATURE.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: ✨ Feature Request
3+
about: Suggest an idea for this project
4+
5+
---
6+
7+
<!--
8+
Issues are so πŸ”₯
9+
10+
If you remove or skip this template, you'll make the 🐼 sad and the mighty god
11+
of Github will appear and pile-drive the close button from a great height
12+
while making animal noises.
13+
14+
πŸ‘‰πŸ½ Need support, advice, or help? Don't open an issue!
15+
Head to StackOverflow or https://gitter.im/webpack/webpack.
16+
-->
17+
18+
* Operating System:
19+
* Node Version:
20+
* NPM Version:
21+
* webpack Version:
22+
* webpack-dev-middleware Version:
23+
24+
### Feature Proposal
25+
26+
27+
28+
### Feature Use Case
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
name: πŸ”§ Modification Request
3+
about: Would you like something work differently? Have an alternative approach? This is the template for you.
4+
5+
---
6+
7+
<!--
8+
Issues are so πŸ”₯
9+
10+
If you remove or skip this template, you'll make the 🐼 sad and the mighty god
11+
of Github will appear and pile-drive the close button from a great height
12+
while making animal noises.
13+
14+
πŸ‘‰πŸ½ Need support, advice, or help? Don't open an issue!
15+
Head to StackOverflow or https://gitter.im/webpack/webpack.
16+
-->
17+
18+
* Operating System:
19+
* Node Version:
20+
* NPM Version:
21+
* webpack Version:
22+
* webpack-dev-middleware Version:
23+
24+
25+
### Expected Behavior / Situation
26+
27+
28+
29+
### Actual Behavior / Situation
30+
31+
32+
33+
### Modification Proposal

β€Ž.github/ISSUE_TEMPLATE/SUPPORT.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
name: πŸ†˜ Support, Help, and Advice
3+
about: πŸ‘‰πŸ½ Need support, help, or advice? Don't open an issue! Head to StackOverflow or https://gitter.im/webpack/webpack.
4+
5+
---
6+
7+
Hey there! If you need support, help, or advice then this is not the place to ask.
8+
Please visit [StackOverflow](https://stackoverflow.com/questions/tagged/webpack)
9+
or [the Webpack Gitter](https://gitter.im/webpack/webpack) instead.

0 commit comments

Comments
Β (0)