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-middleware
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 8a5d6615fbe03e889fd58557d970c262d2e1f3e4
Choose a base ref
...
head repository: webpack/webpack-dev-middleware
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 86071ead69e946ada25497d3e281923e885229a4
Choose a head ref

Commits on Sep 24, 2018

  1. Copy the full SHA
    cc46398 View commit details

Commits on Oct 19, 2018

  1. Copy the full SHA
    a59b9fd View commit details

Commits on Dec 13, 2018

  1. Copy the full SHA
    e56a181 View commit details
  2. Update package-lock.json (#352)

    gpoitch authored and evilebottnawi committed Dec 13, 2018
    Copy the full SHA
    e6cfe7c View commit details

Commits on Jan 4, 2019

  1. Copy the full SHA
    cf4d7a9 View commit details
  2. Copy the full SHA
    0e8ac82 View commit details

Commits on Jan 17, 2019

  1. Copy the full SHA
    90d0d94 View commit details
  2. Copy the full SHA
    113f79b View commit details
  3. Copy the full SHA
    464de8d View commit details
  4. Copy the full SHA
    d86bd01 View commit details
  5. chore(release): 3.5.1

    alexander-akait committed Jan 17, 2019
    Copy the full SHA
    71c3e20 View commit details

Commits on Jan 30, 2019

  1. Copy the full SHA
    c64a2c1 View commit details

Commits on Feb 6, 2019

  1. Copy the full SHA
    b135b3d View commit details
  2. Copy the full SHA
    8e54af2 View commit details

Commits on Feb 19, 2019

  1. Copy the full SHA
    1762cb3 View commit details
  2. Copy the full SHA
    81c2c5d View commit details
  3. ci: improve (#372)

    evilebottnawi authored Feb 19, 2019
    Copy the full SHA
    2a84dd4 View commit details
  4. Copy the full SHA
    a54dd45 View commit details
  5. chore(release): 3.6.0

    alexander-akait committed Feb 19, 2019
    Copy the full SHA
    e5bd8f8 View commit details

Commits on Mar 6, 2019

  1. 1
    Copy the full SHA
    b2a6fed View commit details
  2. Copy the full SHA
    894ba2b View commit details
  3. Copy the full SHA
    dba5e02 View commit details

Commits on Mar 27, 2019

  1. refactor: migrate on jest (#386)

    evilebottnawi authored and hiroppy committed Mar 27, 2019
    Copy the full SHA
    e6c2b3c View commit details

Commits on Mar 28, 2019

  1. Copy the full SHA
    eb2e32b View commit details

Commits on Apr 3, 2019

  1. Copy the full SHA
    56dc705 View commit details
  2. Copy the full SHA
    7942228 View commit details
  3. Copy the full SHA
    e1c160b View commit details
  4. chore(deps): update some devDependencies (#389)

    eslint, jest
    hiroppy authored Apr 3, 2019
    Copy the full SHA
    6d191d0 View commit details

Commits on May 13, 2019

  1. Configure Renovate (#395)

    renovate[bot] authored and hiroppy committed May 13, 2019
    Copy the full SHA
    762efe4 View commit details

Commits on May 14, 2019

  1. Copy the full SHA
    af94704 View commit details
  2. Copy the full SHA
    036186e View commit details
  3. Copy the full SHA
    db50233 View commit details
  4. Copy the full SHA
    839e7a7 View commit details
  5. Copy the full SHA
    f227570 View commit details
  6. 1
    Copy the full SHA
    ec3d5eb View commit details

Commits on May 15, 2019

  1. Copy the full SHA
    ef38424 View commit details
  2. chore(release): 3.7.0

    alexander-akait committed May 15, 2019
    Copy the full SHA
    81bc1f7 View commit details

Commits on May 17, 2019

  1. Copy the full SHA
    ee09fd6 View commit details

Commits on May 20, 2019

  1. Copy the full SHA
    c727dba View commit details

Commits on May 23, 2019

  1. Copy the full SHA
    7b18a00 View commit details

Commits on May 24, 2019

  1. Create FUNDING.yml

    evilebottnawi authored May 24, 2019
    Copy the full SHA
    86552bc View commit details

Commits on May 27, 2019

  1. Copy the full SHA
    e0f1170 View commit details
  2. Copy the full SHA
    9f8f947 View commit details

Commits on May 31, 2019

  1. Copy the full SHA
    28db5f8 View commit details

Commits on Jun 4, 2019

  1. Copy the full SHA
    b9094ba View commit details
  2. Copy the full SHA
    8a6f554 View commit details
  3. Copy the full SHA
    eedece1 View commit details

Commits on Jun 5, 2019

  1. Copy the full SHA
    d5d07cb View commit details

Commits on Jun 6, 2019

  1. Copy the full SHA
    b099b00 View commit details

Commits on Jun 7, 2019

  1. Copy the full SHA
    5ffcaa3 View commit details
Showing with 33,841 additions and 9,735 deletions.
  1. +1 −1 .editorconfig
  2. +5 −0 .eslintignore
  3. +0 −15 .eslintrc
  4. +13 −0 .eslintrc.js
  5. +4 −0 .gitattributes
  6. +1 −1 .github/CODEOWNERS
  7. +1 −0 .github/FUNDING.yml
  8. +16 −33 .github/ISSUE_TEMPLATE.md
  9. +35 −0 .github/ISSUE_TEMPLATE/BUG.md
  10. +26 −0 .github/ISSUE_TEMPLATE/DOCS.md
  11. +19 −0 .github/ISSUE_TEMPLATE/FEATURE.md
  12. +21 −0 .github/ISSUE_TEMPLATE/MODIFICATION.md
  13. +8 −0 .github/ISSUE_TEMPLATE/SUPPORT.md
  14. +27 −11 .github/PULL_REQUEST_TEMPLATE.md
  15. +10 −0 .github/dependabot.yml
  16. +93 −0 .github/workflows/nodejs.yml
  17. +19 −4 .gitignore
  18. +4 −0 .husky/commit-msg
  19. +4 −0 .husky/pre-commit
  20. +6 −0 .prettierignore
  21. +0 −25 .travis.yml
  22. +280 −1 CHANGELOG.md
  23. +7 −0 CODE_OF_CONDUCT.md
  24. +121 −29 CONTRIBUTING.md
  25. +300 −203 README.md
  26. +0 −27 appveyor.yml
  27. +19 −0 babel.config.js
  28. +3 −0 commitlint.config.js
  29. +0 −100 index.js
  30. +10 −0 jest.config.js
  31. +0 −5 lib/DevMiddlewareError.js
  32. +0 −103 lib/context.js
  33. +0 −73 lib/fs.js
  34. +0 −98 lib/middleware.js
  35. +0 −30 lib/reporter.js
  36. +0 −173 lib/util.js
  37. +4 −0 lint-staged.config.js
  38. +21,028 −7,170 package-lock.json
  39. +83 −33 package.json
  40. +4 −0 scripts/globalSetup.js
  41. +3 −0 setupTest.js
  42. +280 −0 src/index.js
  43. +288 −0 src/middleware.js
  44. +125 −0 src/options.json
  45. +281 −0 src/utils/compatibleAPI.js
  46. +197 −0 src/utils/getFilenameFromUrl.js
  47. +39 −0 src/utils/getPaths.js
  48. +26 −0 src/utils/ready.js
  49. +202 −0 src/utils/setupHooks.js
  50. +56 −0 src/utils/setupOutputFileSystem.js
  51. +117 −0 src/utils/setupWriteToDisk.js
  52. +584 −0 test/__snapshots__/logging.test.js.snap.webpack4
  53. +522 −0 test/__snapshots__/logging.test.js.snap.webpack5
  54. +145 −0 test/__snapshots__/validation-options.test.js.snap.webpack4
  55. +145 −0 test/__snapshots__/validation-options.test.js.snap.webpack5
  56. +746 −0 test/api.test.js
  57. 0 test/fixtures/{server-test → }/bar.js
  58. +1 −0 test/fixtures/broken.js
  59. 0 test/fixtures/{server-test → }/foo.js
  60. 0 test/fixtures/{server-test → }/index.html
  61. +0 −32 test/fixtures/server-test/webpack.array.config.js
  62. +0 −29 test/fixtures/server-test/webpack.client.server.config.js
  63. +0 −20 test/fixtures/server-test/webpack.config.js
  64. +1 −0 test/fixtures/simple.js
  65. +0 −39 test/fixtures/stat-options.js
  66. +0 −9 test/fixtures/stats.txt
  67. 0 test/fixtures/{server-test → }/svg.svg
  68. +1 −0 test/fixtures/warning.js
  69. +43 −0 test/fixtures/webpack.array.config.js
  70. +28 −0 test/fixtures/webpack.array.error.config.js
  71. +67 −0 test/fixtures/webpack.array.one-error-one-warning-one-no.js
  72. +71 −0 test/fixtures/webpack.array.one-error-one-warning-one-object.js
  73. +71 −0 test/fixtures/webpack.array.one-error-one-warning-one-success-with-names.js
  74. +68 −0 test/fixtures/webpack.array.one-error-one-warning-one-success.js
  75. +50 −0 test/fixtures/webpack.array.warning.config.js
  76. +50 −0 test/fixtures/webpack.array.watch-options.config.js
  77. +43 −0 test/fixtures/webpack.client.server.config.js
  78. +26 −0 test/fixtures/webpack.config.js
  79. +14 −0 test/fixtures/webpack.error.config.js
  80. +25 −0 test/fixtures/webpack.no-stats.config.js
  81. +27 −0 test/fixtures/webpack.public-path.config.js
  82. +26 −0 test/fixtures/webpack.querystring.config.js
  83. +17 −0 test/fixtures/webpack.simple.config.js
  84. +28 −0 test/fixtures/webpack.stats-colors-false.config.js
  85. +28 −0 test/fixtures/webpack.stats-colors-true.config.js
  86. +26 −0 test/fixtures/webpack.stats-false.config.js
  87. +26 −0 test/fixtures/webpack.stats-minimal.config.js
  88. +26 −0 test/fixtures/webpack.stats-none.config.js
  89. +26 −0 test/fixtures/webpack.stats-object.config.js
  90. +26 −0 test/fixtures/webpack.stats-true.config.js
  91. +26 −0 test/fixtures/webpack.stats-verbose.config.js
  92. +25 −0 test/fixtures/webpack.warning.config.js
  93. +21 −0 test/fixtures/webpack.watch-options.config.js
  94. +26 −0 test/helpers/clearDirectory.js
  95. +9 −0 test/helpers/getCompiler.js
  96. +17 −0 test/helpers/getCompilerHooks.js
  97. +3 −0 test/helpers/isWebpack5.js
  98. +23 −0 test/helpers/listenAndCompile.js
  99. +150 −0 test/helpers/runner.js
  100. +24 −0 test/helpers/snapshotResolver.js
  101. +1,657 −0 test/logging.test.js
  102. +3,582 −0 test/middleware.test.js
  103. +0 −12 test/test.js
  104. +0 −173 test/tests/api.js
  105. +0 −59 test/tests/compiler-callbacks.js
  106. +0 −53 test/tests/file-system.js
  107. +0 −118 test/tests/lazy.js
  108. +0 −82 test/tests/log.js
  109. +0 −186 test/tests/reporter.js
  110. +0 −457 test/tests/server.js
  111. +0 −331 test/tests/util.js
  112. +61 −0 test/utils/__snapshots__/handleRangeHeaders.test.js.snap.webpack4
  113. +61 −0 test/utils/__snapshots__/handleRangeHeaders.test.js.snap.webpack5
  114. +9 −0 test/utils/__snapshots__/setupHooks.test.js.snap.webpack4
  115. +9 −0 test/utils/__snapshots__/setupHooks.test.js.snap.webpack5
  116. +55 −0 test/utils/__snapshots__/setupWriteToDisk.test.js.snap.webpack4
  117. +55 −0 test/utils/__snapshots__/setupWriteToDisk.test.js.snap.webpack5
  118. +91 −0 test/utils/getPaths.test.js
  119. +59 −0 test/utils/ready.test.js
  120. +168 −0 test/utils/setupHooks.test.js
  121. +92 −0 test/utils/setupOutputFileSystem.test.js
  122. +183 −0 test/utils/setupWriteToDisk.test.js
  123. +117 −0 test/validation-options.test.js
  124. +13 −0 tsconfig.json
  125. +257 −0 types/index.d.ts
  126. +20 −0 types/middleware.d.ts
  127. +98 −0 types/utils/compatibleAPI.d.ts
  128. +27 −0 types/utils/getFilenameFromUrl.d.ts
  129. +29 −0 types/utils/getPaths.d.ts
  130. +25 −0 types/utils/ready.d.ts
  131. +56 −0 types/utils/setupHooks.d.ts
  132. +20 −0 types/utils/setupOutputFileSystem.d.ts
  133. +30 −0 types/utils/setupWriteToDisk.d.ts
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -9,5 +9,5 @@ insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
insert_final_newline = false
insert_final_newline = true
trim_trailing_whitespace = false
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/coverage
/dist
/node_modules
/test/fixtures
/test/outputs
15 changes: 0 additions & 15 deletions .eslintrc

This file was deleted.

13 changes: 13 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module.exports = {
root: true,
reportUnusedDisableDirectives: true,
extends: ["@webpack-contrib/eslint-config-webpack", "prettier"],
overrides: [
{
files: ["src/**/*.js"],
parserOptions: {
sourceType: "module",
},
},
],
};
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
* text=auto
test/fixtures/** eol=lf
bin/* eol=lf
yarn.lock -diff
package-lock.json -diff
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @evilebottnawi @michael-ciniawsky
* @alexander-akait @hiroppy @snitin315
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
49 changes: 16 additions & 33 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,16 @@
> 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.
<!-- Before creating an issue please make sure you are using the latest version of webpack-dev-middleware and webpack. -->

* Operating System:
* Node Version:
* NPM Version:
* webpack version:
* webpack-dev-middleware Version:

- [ ] This is a **feature** request
- [ ] This is a **bug**

### Code

If you have a large amount of code to share which demonstrates the problem you're experiencing, please provide a link to your
repository rather than pasting code. Otherwise, please paste relevant short snippets below.

```js
// please provide your webpack.config.js for bug reports
```

```js
// additional code
```

### Expected Behavior

### Actual Behavior

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

### For Features; What is the motivation and/or use-case for the feature?
<!--
👉🏽 Need support, advice, or help? Don't open an issue!
Head to StackOverflow or https://gitter.im/webpack/webpack.
Hey there!
You arrived at this template because you felt none of the other options
matched the kind of issue you'd like to report. Please use this opportunity to
tell us about your particular type of issue so we can try to accommodate
similar issues in the future.
PLEASE do note, if you're using this to report an issue already covered by the
existing template types, your issue may be closed as invalid. Our issue
templates contain fields that help us help you, and without that important
info, we might as well be ice-skating uphill, carrying a wooly mammoth.
-->
35 changes: 35 additions & 0 deletions .github/ISSUE_TEMPLATE/BUG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: 🐛 Bug Report
about: Something went awry and you'd like to tell us about it.
---

<!-- Please don't delete this template otherwise your issue will be closed immediately -->
<!-- Before creating an issue please make sure you are using the latest version of webpack. -->

### Bug report

<!-- Please ask questions on discussions, StackOverflow or the webpack Gitter. -->
<!-- https://github.com/webpack/webpack/discussions -->
<!-- https://stackoverflow.com/questions/ask?tags=webpack -->
<!-- https://gitter.im/webpack/webpack -->
<!-- Issues which contain questions or support requests will be closed. -->

### Actual Behavior

<!-- Explain exactly how it behaves -->

### Expected Behavior

<!-- "It should work" is not a helpful explanation -->
<!-- Explain exactly how it should behave -->

### How Do We Reproduce?

<!-- A great way to do this is to provide your configuration via a GitHub repository -->
<!-- The most helpful is a minimal reproduction with instructions on how to reproduce -->
<!-- Repositories with too many files or large `webpack.config.js` files are not suitable -->
<!-- Please only add small code snippets directly into this issue -->
<!-- https://gist.github.com is a good place for longer code snippets -->
<!-- If your issue is caused by a plugin or loader, please create an issue on the loader/plugin repository instead -->

### Please paste the results of `npx webpack-cli info` here, and mention other relevant information
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/DOCS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: 📚 Documentation
about: Are the docs lacking or missing something? Do they need some new 🔥 hotness? Tell us here.
---

<!-- Please don't delete this template otherwise your issue will be closed immediately -->
<!-- Before creating an issue please make sure you are using the latest version of webpack. -->

Documentation Is:

<!-- Please place an x (no spaces!) in all [ ] that apply -->

- [ ] Missing
- [ ] Needed
- [ ] Confusing
- [ ] Not Sure?

### Please Explain in Detail...

<!-- Please don't delete this template otherwise your issue will be closed immediately -->
<!-- https://github.com/webpack/webpack/discussions -->
<!-- https://stackoverflow.com/questions/ask?tags=webpack -->
<!-- https://gitter.im/webpack/webpack -->
<!-- Issues which contain questions or support requests will be closed. -->

### Your Proposal for Changes
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/FEATURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: ✨ Feature Request
about: Suggest an idea for this project
---

<!-- Please don't delete this template otherwise your issue will be closed immediately -->
<!-- Before creating an issue please make sure you are using the latest version of webpack. -->

### Feature Proposal

<!-- Please ask questions on discussions, StackOverflow or the webpack Gitter. -->
<!-- https://github.com/webpack/webpack/discussions -->
<!-- https://stackoverflow.com/questions/ask?tags=webpack -->
<!-- https://gitter.im/webpack/webpack -->
<!-- Issues which contain questions or support requests will be closed. -->

### Feature Use Case

### Please paste the results of `npx webpack-cli info` here, and mention other relevant information
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/MODIFICATION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: 🔧 Modification Request
about: Would you like something work differently? Have an alternative approach? This is the template for you.
---

<!-- Please don't delete this template otherwise your issue will be closed immediately -->
<!-- Before creating an issue please make sure you are using the latest version of webpack. -->

### Modification Proposal

<!-- Please ask questions on discussions, StackOverflow or the webpack Gitter. -->
<!-- https://github.com/webpack/webpack/discussions -->
<!-- https://stackoverflow.com/questions/ask?tags=webpack -->
<!-- https://gitter.im/webpack/webpack -->
<!-- Issues which contain questions or support requests will be closed. -->

### Expected Behavior / Situation

### Actual Behavior / Situation

### Please paste the results of `npx webpack-cli info` here, and mention other relevant information
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/SUPPORT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
name: 🆘 Support, Help, and Advice
about: 👉🏽 Need support, help, or advice? Don't open an issue! Head to https://github.com/webpack/webpack/discussions, StackOverflow or https://gitter.im/webpack/webpack.
---

Hey there! If you need support, help, or advice then this is not the place to ask.
Please visit [Discussions](https://github.com/webpack/webpack/discussions), [StackOverflow](https://stackoverflow.com/questions/tagged/webpack)
or [the Webpack Gitter](https://gitter.im/webpack/webpack) instead.
38 changes: 27 additions & 11 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,36 @@
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. -->
<!--
HOLY CRAP a Pull Request. We ❤️ those!
**What kind of change does this PR introduce?**
If you remove or skip this template, you'll make the 🐼 sad and the mighty god
of Github will appear and pile-drive the close button from a great height
while making animal noises.
<!-- E.g. a bugfix, feature, refactoring, build related change, etc… -->
Please place an x (no spaces!) in all [ ] that apply
-->

**Did you add tests for your changes?**
This PR contains a:

<!-- Note that we won't merge your changes if you don't add tests. -->
- [ ] **bugfix**
- [ ] new **feature**
- [ ] **code refactor**
- [ ] **test update** <!-- if bug or feature is checked, this should be too -->
- [ ] **documentation update**
- [ ] **typo fix**
- [ ] **metadata update**

**Summary**
### Motivation / Use-Case

<!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? -->
<!-- Try to link to an open issue for more information. -->
<!--
Please explain the motivation or use-case for your change.
What existing problem does the PR solve?
If this PR addresses an issue, please link to the issue.
-->

**Does this PR introduce a breaking change?**
### Breaking Changes

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

**Other information**
### 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
93 changes: 93 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
name: webpack-dev-middleware

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

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

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

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

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

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

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

- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint

- name: Build types
run: npm run build:types

- name: Check types
run: if [ -n "$(git status types --porcelain)" ]; then echo "Missing types. Update types by running 'npm run build:types'"; exit 1; else echo "All types are valid"; fi

- name: Security audit
run: npm run security

- 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, 18.x]
webpack-version: [latest]
include:
- node-version: 16.x
os: ubuntu-latest
webpack-version: 4

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

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "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 }}

- 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@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
23 changes: 19 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
.nyc_output
node_modules
coverage
*.lcov
/node_modules
.idea/
/coverage
logs
*.log
npm-debug.log*
.eslintcache
/dist
/local
/reports
/test/outputs
.DS_Store
Thumbs.db
.idea
*.iml
.vscode
*.sublime-project
*.sublime-workspace
yarn.lock
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
Loading