Skip to content

Commit 7c16f62

Browse files
committed
refactor: update deps, codebase
1 parent 165d921 commit 7c16f62

File tree

17 files changed

+7437
-10727
lines changed

17 files changed

+7437
-10727
lines changed

.babelrc

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

.circleci/config.yml

Lines changed: 20 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,8 @@
1-
unit_tests: &unit_tests
2-
steps:
3-
- checkout
4-
- restore_cache:
5-
key: dependency-cache-{{ checksum "package-lock.json" }}
6-
- run:
7-
name: NPM Rebuild
8-
command: npm install
9-
- run:
10-
name: Run unit tests.
11-
command: npm run ci:test
12-
canary_tests: &canary_tests
13-
steps:
14-
- checkout
15-
- restore_cache:
16-
key: dependency-cache-{{ checksum "package-lock.json" }}
17-
- run:
18-
name: NPM Rebuild
19-
command: npm install
20-
- run:
21-
name: Install Webpack Canary
22-
command: npm i --no-save webpack@next
23-
- run:
24-
name: Run unit tests.
25-
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
26-
271
version: 2
282
jobs:
293
dependency_cache:
304
docker:
31-
- image: webpackcontrib/circleci-node-base:latest
5+
- image: rollupcabal/circleci-node-base:latest
326
steps:
337
- checkout
348
- restore_cache:
@@ -40,10 +14,9 @@ jobs:
4014
key: dependency-cache-{{ checksum "package-lock.json" }}
4115
paths:
4216
- ./node_modules
43-
44-
node8-latest:
17+
node-v10-latest:
4518
docker:
46-
- image: webpackcontrib/circleci-node8:latest
19+
- image: rollupcabal/circleci-node-v10:latest
4720
steps:
4821
- checkout
4922
- restore_cache:
@@ -58,21 +31,9 @@ jobs:
5831
name: Submit coverage data to codecov.
5932
command: bash <(curl -s https://codecov.io/bash)
6033
when: on_success
61-
node6-latest:
34+
node-v8-latest:
6235
docker:
63-
- image: webpackcontrib/circleci-node6:latest
64-
<<: *unit_tests
65-
node10-latest:
66-
docker:
67-
- image: webpackcontrib/circleci-node10:latest
68-
<<: *unit_tests
69-
node8-canary:
70-
docker:
71-
- image: webpackcontrib/circleci-node8:latest
72-
<<: *canary_tests
73-
analysis:
74-
docker:
75-
- image: webpackcontrib/circleci-node-base:latest
36+
- image: rollupcabal/circleci-node-v8:latest
7637
steps:
7738
- checkout
7839
- restore_cache:
@@ -81,76 +42,47 @@ jobs:
8142
name: NPM Rebuild
8243
command: npm install
8344
- run:
84-
name: Run linting.
85-
command: npm run lint
86-
- run:
87-
name: Run NSP Security Check.
88-
command: npm run security
89-
- run:
90-
name: Validate Commit Messages
91-
command: npm run ci:lint:commits
92-
publish:
45+
name: Run unit tests.
46+
command: npm run ci:test
47+
analysis:
9348
docker:
94-
- image: webpackcontrib/circleci-node-base:latest
49+
- image: rollupcabal/circleci-node-base:latest
9550
steps:
9651
- checkout
9752
- restore_cache:
9853
key: dependency-cache-{{ checksum "package-lock.json" }}
9954
- run:
10055
name: NPM Rebuild
10156
command: npm install
102-
# - run:
103-
# name: Validate Commit Messages
104-
# command: npm run release:validate
10557
- run:
106-
name: Publish to NPM
107-
command: printf "noop running conventional-github-releaser"
108-
109-
version: 2.0
58+
name: Run linting.
59+
command: npm run lint
60+
- run:
61+
name: Run Security Check
62+
command: npm run security
63+
- run:
64+
name: Validate Commit Messages
65+
command: npm run ci:lint:commits
11066
workflows:
11167
version: 2
112-
validate-publish:
68+
validate:
11369
jobs:
11470
- dependency_cache
115-
- node6-latest:
116-
requires:
117-
- dependency_cache
118-
filters:
119-
tags:
120-
only: /.*/
12171
- analysis:
12272
requires:
12373
- dependency_cache
12474
filters:
12575
tags:
12676
only: /.*/
127-
- node8-latest:
128-
requires:
129-
- analysis
130-
- node6-latest
131-
filters:
132-
tags:
133-
only: /.*/
134-
- node10-latest:
77+
- node-v10-latest:
13578
requires:
13679
- analysis
137-
- node6-latest
13880
filters:
13981
tags:
14082
only: /.*/
141-
- node8-canary:
83+
- node-v8-latest:
14284
requires:
14385
- analysis
144-
- node6-latest
14586
filters:
14687
tags:
14788
only: /.*/
148-
- publish:
149-
requires:
150-
- node8-latest
151-
- node8-canary
152-
- node10-latest
153-
filters:
154-
branches:
155-
only:
156-
- master

.eslintrc

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
{
2-
"extends": "webpack",
3-
"parserOptions": {
4-
"sourceType": "script"
5-
},
6-
"rules": {
7-
"comma-dangle": ["error", "never"],
8-
"strict": ["error", "safe"]
2+
"extends": "shellscape",
3+
"globals": {
4+
"document": true,
5+
"WebSocket": true,
6+
"window": true
97
}
108
}

.eslintrc.js

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

.github/CODEOWNERS

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

.github/CONTRIBUTING.md

Lines changed: 17 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -1,124 +1,25 @@
1-
## Contributing in @webpack-contrib
1+
# Welcome!
2+
> Thanks ahead for taking the time to contribute to this project
23
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:
4+
## What We Use
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+
- Testing: [Ava](https://github.com/avajs/ava)
7+
- Linting: [ESLint](http://eslint.org/)
8+
- Building: [Webpack](https://webpack.github.io/)
119

12-
### <a name="question"></a> Got a Question or Problem?
10+
## Pull Requests
1311

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.
12+
Please don't commit `package-lock.json`.
1713

18-
### <a name="issue"></a> Found an Issue or Bug?
14+
Please don't change variable or parameter names to match your
15+
personal prefrences, unless the change is part of a refactor
16+
or significant modification of the codebase (which is very rare).
1917

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.
18+
Please remember to thoroughly explain your Pull Request if it
19+
doesn't have an associated issue. If you're changing code
20+
significantly, please remember to add inline or block comments
21+
in the code as appropriate.
2122

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+
## Thanks
2324

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-
```
25+
For your interest, understanding, and for following this simple guide.

0 commit comments

Comments
 (0)