Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: webpack/webpack-dev-server
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5807c7462f6dd15cade9c74216f2e829c2653351
Choose a base ref
...
head repository: webpack/webpack-dev-server
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: c9271b90b476096e1cee29fa8862c1a312fa0394
Choose a head ref
Loading
Showing 510 changed files with 71,935 additions and 22,587 deletions.
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

6 changes: 5 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
web_modules
/client
/dist
!/test/client
coverage
node_modules
19 changes: 0 additions & 19 deletions .eslintrc

This file was deleted.

70 changes: 70 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
"use strict";

module.exports = {
extends: ["webpack", "prettier"],
parser: "@babel/eslint-parser",
parserOptions: {
sourceType: "script",
ecmaVersion: 2018,
},
env: {
node: true,
es6: true,
},
rules: {
curly: "error",
"consistent-return": "off",
"no-param-reassign": "off",
"no-underscore-dangle": "off",
"prefer-destructuring": ["error", { object: false, array: false }],
"prefer-rest-params": "off",
strict: ["error", "safe"],
"global-require": "off",
},
overrides: [
{
files: ["client-src/**/*.js"],
excludedFiles: [
"client-src/webpack.config.js",
"client-src/modules/logger/SyncBailHookFake.js",
],
parserOptions: {
sourceType: "module",
allowImportExportEverywhere: true,
},
env: {
browser: true,
},
rules: {
"import/extensions": ["error", "always"],
},
},
{
files: ["test/**/*.js"],
rules: {
"no-console": "off",
},
},
{
files: [
"test/client/**/*.js",
"test/e2e/**/*.js",
"test/fixtures/**/*.js",
"test/server/liveReload-option.test.js",
],
env: {
browser: true,
node: true,
},
},
{
files: ["examples/**/*.js"],
env: {
browser: true,
},
rules: {
"no-console": "off",
},
},
],
};
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @alexander-akait @hiroppy @Loonride @snitin315 @anshumanv
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
open_collective: webpack
14 changes: 6 additions & 8 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -6,12 +6,6 @@
General questions, how-to questions, and support requests will be closed.
-->

* Operating System:
* Node Version:
* NPM Version:
* webpack Version:
* webpack-dev-server Version:

<!--
Please place an x, no spaces, in all [ ] that apply
Please note that we are NOT accepting FEATURE requests at this time.
@@ -37,17 +31,21 @@
-->

```js
// webpack.config.js
// webpack.config.js
```

```js
// additional code, remove if not needed.
// additional code, remove if not needed.
```

### Please paste the results of `webpack-cli info` and `webpack-cli version` here, and mention other relevant information

### Expected Behavior

### Actual Behavior

### For Bugs; How can we reproduce the behavior?

<!-- See https://stackoverflow.com/help/minimal-reproducible-example for information on how to create good reproductions -->

### For Features; What is the motivation and/or use-case for the feature?
17 changes: 10 additions & 7 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
<!--
Thank you for submitting a pull request!
Please note that this template is not optional.
Please fill out _ALL_ fields, or your pull request may be rejected.
Please do not delete this template. Please do remove this header to acknowledge this message.`
Please note that we are NOT accepting new FEATURE requests at this time.
Please note that this template is not optional and all _ALL_ fields must be filled out, or your pull request may be rejected.
Please do not delete this template.
Please do remove this header to acknowledge this message.
Please place an x, no spaces, in all [ ] that apply
-->

- [ ] This is a **bugfix**
- [ ] This is a **feature**
- [ ] This is a **code refactor**
- [ ] This is a **test update**
- [ ] This is a **typo fix**
- [ ] This is a **docs update**
- [ ] This is a **metadata update**

### For Bugs and Features; did you add new tests?
@@ -21,16 +23,17 @@
### Motivation / Use-Case

<!--
Please explain the motivation or use-case for making this change.
What existing problem does the pull request solve?
Please explain the motivation or use-case for making this change.
If this Pull Request addresses an issue, please link to the issue.
-->

### Breaking Changes

<!--
If this PR introduces a breaking change, please describe the impact and a
migration path for existing applications.
potential migration path for existing applications.
-->

### Additional Info
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
time: "04:00"
timezone: Europe/Berlin
open-pull-requests-limit: 10
versioning-strategy: lockfile-only
104 changes: 104 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
name: webpack-dev-server

on:
push:
branches:
- master
- next
- v4
pull_request:
branches:
- master
- next
- v4

jobs:
lint:
name: Lint - ${{ matrix.os }} - Node v${{ matrix.node-version }}

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

strategy:
matrix:
os: [ubuntu-latest]
node-version: [12.x]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: "npm"

- name: Use latest NPM
run: sudo npm i -g npm

- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint

- name: Security audit
run: npm audit --production

- name: Check commit message
uses: wagoid/commitlint-github-action@v4

test:
name: Test - ${{ matrix.os }} - Node v${{ matrix.node-version }}, Webpack ${{ matrix.webpack-version }}

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [12.x, 14.x, 16.x]
webpack-version: [4, latest]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: "npm"

- name: Use latest NPM on ubuntu/macos
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
run: sudo npm i -g npm

- name: Use latest NPM on windows
if: matrix.os == 'windows-latest'
run: npm i -g npm

- name: Install dependencies
run: npm ci

- name: Install webpack ${{ matrix.webpack-version }}
if: matrix.webpack-version == '4'
run: npm i webpack@${{ matrix.webpack-version }} --save-dev --ignore-scripts

- name: Link webpack-dev-server
run: |
cp -R client tmp-client
npm link --ignore-scripts
npm link webpack-dev-server --ignore-scripts
rm -r client
cp -R tmp-client client
- name: Run tests for webpack version ${{ matrix.webpack-version }}
run: npm run test:coverage -- --ci

- name: Submit coverage data to codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
23 changes: 18 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
.DS_Store

npm-debug.log

.idea

client
!/test/client
coverage
node_modules
/client
/coverage
/ssl/*.pem
.idea/
.DS_Store
.vscode
yarn.lock
yarn-error.log

.eslintcache

test/fixtures/contentbase-config/public/assets/non-exist.txt
test/fixtures/reload-config/main.css
test/fixtures/reload-config-2/main.css
!/test/fixtures/contentbase-config/public/node_modules
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit $1
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/client
!/test/client
coverage
node_modules
CHANGELOG.md
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

7 changes: 7 additions & 0 deletions .versionrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"types": [
{"type":"feat","section":"Features"},
{"type":"fix","section":"Bug Fixes"},
{"type":"test", "hidden": true}
]
}
Loading