Skip to content
This repository was archived by the owner on Oct 27, 2020. It is now read-only.

Commit a55741d

Browse files
chore: update defaults (#53)
1 parent 2e76d3f commit a55741d

23 files changed

+10337
-8830
lines changed

.babelrc

Lines changed: 0 additions & 35 deletions
This file was deleted.

.circleci/config.yml

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
unit_tests: &unit_tests
2+
steps:
3+
- checkout
4+
- restore_cache:
5+
key: dependency-cache-{{ checksum "package-lock.json" }}
6+
- run:
7+
name: Install Latest NPM.
8+
# npm@3 is buggy
9+
command: if [[ $(npm -v | cut -c -1) > 3 ]] ; then npm i -g npm@latest; else echo "Skip npm updating"; fi
10+
- run:
11+
name: NPM Install.
12+
command: npm ci || npm i
13+
- run:
14+
name: Run Test.
15+
command: npm run ci:test
16+
canary_tests: &canary_tests
17+
steps:
18+
- checkout
19+
- restore_cache:
20+
key: dependency-cache-{{ checksum "package-lock.json" }}
21+
- run:
22+
name: Install Latest NPM.
23+
command: npm i -g npm@latest
24+
- run:
25+
name: NPM Install.
26+
command: npm ci
27+
- run:
28+
name: Install Webpack Canary.
29+
command: npm i --no-save webpack@next
30+
- run:
31+
name: Run Test.
32+
command: if [[ $(compver --name webpack --gte next --lt latest) < 1 ]] ; then printf "Next is older than Latest - Skipping Canary Suite"; else npm run ci:test; fi
33+
34+
version: 2
35+
jobs:
36+
dependency_cache:
37+
docker:
38+
- image: webpackcontrib/circleci-node-base:latest
39+
steps:
40+
- checkout
41+
- restore_cache:
42+
key: dependency-cache-{{ checksum "package-lock.json" }}
43+
- run:
44+
name: Install Latest NPM.
45+
command: npm i -g npm@latest
46+
- run:
47+
name: NPM Install.
48+
command: npm ci
49+
- save_cache:
50+
key: dependency-cache-{{ checksum "package-lock.json" }}
51+
paths:
52+
- ./node_modules
53+
analysis:
54+
docker:
55+
- image: webpackcontrib/circleci-node-base:latest
56+
steps:
57+
- checkout
58+
- restore_cache:
59+
key: dependency-cache-{{ checksum "package-lock.json" }}
60+
- run:
61+
name: Install Latest NPM.
62+
command: npm i -g npm@latest
63+
- run:
64+
name: NPM Install.
65+
command: npm ci
66+
- run:
67+
name: Run linting.
68+
command: npm run lint
69+
- run:
70+
name: Run NPM Audit.
71+
command: npm run security
72+
- run:
73+
name: Validate Commit Messages.
74+
command: npm run ci:lint:commits
75+
node6-latest:
76+
docker:
77+
- image: webpackcontrib/circleci-node6:latest
78+
<<: *unit_tests
79+
node8-latest:
80+
docker:
81+
- image: webpackcontrib/circleci-node8:latest
82+
<<: *unit_tests
83+
node10-latest:
84+
docker:
85+
- image: webpackcontrib/circleci-node10:latest
86+
steps:
87+
- checkout
88+
- restore_cache:
89+
key: dependency-cache-{{ checksum "package-lock.json" }}
90+
- run:
91+
name: Install Latest NPM.
92+
command: npm i -g npm@latest
93+
- run:
94+
name: NPM Install.
95+
command: npm ci
96+
- run:
97+
name: Run Test.
98+
command: npm run ci:coverage
99+
- run:
100+
name: Submit coverage data to codecov.
101+
command: bash <(curl -s https://codecov.io/bash)
102+
when: on_success
103+
node6-canary:
104+
docker:
105+
- image: webpackcontrib/circleci-node10:latest
106+
<<: *canary_tests
107+
108+
workflows:
109+
version: 2
110+
test:
111+
jobs:
112+
- dependency_cache
113+
- analysis:
114+
requires:
115+
- dependency_cache
116+
filters:
117+
tags:
118+
only: /.*/
119+
- node6-latest:
120+
requires:
121+
- dependency_cache
122+
filters:
123+
tags:
124+
only: /.*/
125+
- node8-latest:
126+
requires:
127+
- analysis
128+
- node6-latest
129+
filters:
130+
tags:
131+
only: /.*/
132+
- node10-latest:
133+
requires:
134+
- analysis
135+
- node6-latest
136+
filters:
137+
tags:
138+
only: /.*/
139+
- node6-canary:
140+
requires:
141+
- analysis
142+
- node6-latest
143+
filters:
144+
tags:
145+
only: /.*/

.editorconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ end_of_line = lf
88
insert_final_newline = true
99
trim_trailing_whitespace = true
1010

11-
[.md]
12-
insert_final_newline = false
11+
[*.md]
12+
insert_final_newline = true
1313
trim_trailing_whitespace = false

.github/CODEOWNERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# These are the default owners for everything in
2+
# webpack-contrib
3+
@webpack-contrib/org-maintainers
4+
5+
# Add repository specific users / groups
6+
# below here for libs that are not maintained by the org.

.github/CONTRIBUTING.md

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
## Contributing in @webpack-contrib
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+
docs(readme): update install instructions
72+
```
73+
```
74+
fix: refer to the `entrypoint` instead of the first `module`
75+
```
76+
77+
#### Revert
78+
If the commit reverts a previous commit, it should begin with `revert: `, followed by the header of the reverted commit.
79+
In the body it should say: `This reverts commit <hash>.`, where the hash is the SHA of the commit being reverted.
80+
81+
#### Type
82+
Must be one of the following:
83+
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
97+
The scope is subjective & depends on the `type` see above. A good example would be a change to a particular class / module.
98+
99+
#### Subject
100+
The subject contains a succinct description of the change:
101+
102+
* use the imperative, present tense: "change" not "changed" nor "changes"
103+
* don't capitalize the first letter
104+
* no dot (.) at the end
105+
106+
#### Body
107+
Just as in the **subject**, use the imperative, present tense: "change" not "changed" nor "changes".
108+
The body should include the motivation for the change and contrast this with previous behavior.
109+
110+
#### Footer
111+
The footer should contain any information about **Breaking Changes** and is also the place to
112+
reference GitHub issues that this commit **Closes**.
113+
114+
**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.
115+
116+
Example
117+
118+
```
119+
BREAKING CHANGE: Updates to `Chunk.mapModules`.
120+
121+
This release is not backwards compatible with `Webpack 2.x` due to breaking changes in webpack/webpack#4764
122+
Migration: see webpack/webpack#5225
123+
124+
```

.github/ISSUE_TEMPLATE.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
<!--
2-
1. Check the version of package you are using. If it's not the newest version, update and try again (see changelog while updating!).
3-
2. If the issue is still there, write a minimal project showing the problem and expected output.
4-
3. Link to the project and mention Node version and OS in your report.
2+
👉🏽 Need support, advice, or help? Don't open an issue!
3+
Head to StackOverflow or https://gitter.im/webpack/webpack.
54
6-
**IMPORTANT! You should use [Stack Overflow](https://stackoverflow.com/) for support related questions.**
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.
716
-->

.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+
* cache-loader 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 bitchin' 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+
-->

0 commit comments

Comments
 (0)