From d46efc45ea586bb9f57c301e3c02ec4ab85c71b3 Mon Sep 17 00:00:00 2001 From: evilebottnawi Date: Sat, 12 Sep 2020 19:50:27 +0300 Subject: [PATCH] chore(deps): update defaults --- .babelrc | 35 - .editorconfig | 5 +- .eslintignore | 4 +- .eslintrc | 3 - .eslintrc.js | 4 + .github/CODEOWNERS | 6 + .github/CONTRIBUTING.md | 160 + .github/FUNDING.yml | 1 + .github/ISSUE_TEMPLATE.md | 17 +- .github/ISSUE_TEMPLATE/BUG.md | 50 + .github/ISSUE_TEMPLATE/DOCS.md | 28 + .github/ISSUE_TEMPLATE/FEATURE.md | 25 + .github/ISSUE_TEMPLATE/MODIFICATION.md | 27 + .github/ISSUE_TEMPLATE/SUPPORT.md | 8 + .github/PULL_REQUEST_TEMPLATE.md | 36 +- .github/workflows/nodejs.yml | 95 + .gitignore | 1 + .prettierignore | 5 + .prettierrc.js | 1 + .travis.yml | 48 - README.md | 115 +- appveyor.yml | 26 - babel.config.js | 19 + commitlint.config.js | 3 + example/.babelrc | 31 +- example/package-lock.json | 225 + example/package.json | 3 + example/webpack.config.js | 18 +- husky.config.js | 6 + lint-staged.config.js | 4 + package-lock.json | 17963 ++++++++----------- package.json | 114 +- src/WorkerError.js | 8 +- src/WorkerPool.js | 169 +- src/index.js | 70 +- src/readBuffer.js | 4 + src/worker.js | 233 +- src/workerPools.js | 6 +- test/pitch.test.js | 40 +- test/readBuffer.test.js | 3 +- test/sass-loader-example/webpack.config.js | 2 + test/webpack.test.js | 9 +- test/workerPool.test.js | 15 +- 43 files changed, 8415 insertions(+), 11230 deletions(-) delete mode 100644 .babelrc delete mode 100644 .eslintrc create mode 100644 .eslintrc.js create mode 100644 .github/CODEOWNERS create mode 100644 .github/CONTRIBUTING.md create mode 100644 .github/FUNDING.yml create mode 100644 .github/ISSUE_TEMPLATE/BUG.md create mode 100644 .github/ISSUE_TEMPLATE/DOCS.md create mode 100644 .github/ISSUE_TEMPLATE/FEATURE.md create mode 100644 .github/ISSUE_TEMPLATE/MODIFICATION.md create mode 100644 .github/ISSUE_TEMPLATE/SUPPORT.md create mode 100644 .github/workflows/nodejs.yml create mode 100644 .prettierignore create mode 100644 .prettierrc.js delete mode 100644 .travis.yml delete mode 100644 appveyor.yml create mode 100644 babel.config.js create mode 100644 commitlint.config.js create mode 100644 husky.config.js create mode 100644 lint-staged.config.js diff --git a/.babelrc b/.babelrc deleted file mode 100644 index a63facd..0000000 --- a/.babelrc +++ /dev/null @@ -1,35 +0,0 @@ -{ - "presets": [ - [ - "env", - { - "useBuiltIns": true, - "targets": { - "node": "6.9.0" - }, - "exclude": [ - "transform-async-to-generator", - "transform-regenerator" - ] - } - ] - ], - "plugins": [ - [ - "transform-object-rest-spread", - { - "useBuiltIns": true - } - ] - ], - "env": { - "test": { - "presets": [ - "env" - ], - "plugins": [ - "transform-object-rest-spread" - ] - } - } -} diff --git a/.editorconfig b/.editorconfig index 28e1806..ab52458 100644 --- a/.editorconfig +++ b/.editorconfig @@ -8,6 +8,5 @@ end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true -[.md] -insert_final_newline = false -trim_trailing_whitespace = false +[*.md] +trim_trailing_whitespace = false \ No newline at end of file diff --git a/.eslintignore b/.eslintignore index b2d59d1..c52afd1 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,2 +1,4 @@ +/coverage +/dist /node_modules -/dist \ No newline at end of file +/test/fixtures \ No newline at end of file diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index 94f2179..0000000 --- a/.eslintrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "webpack" -} \ No newline at end of file diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..095ce2a --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,4 @@ +module.exports = { + root: true, + extends: ['@webpack-contrib/eslint-config-webpack', 'prettier'], +}; diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..f320648 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,6 @@ +# These are the default owners for everything in +# webpack-contrib +@webpack-contrib/org-maintainers + +# Add repository specific users / groups +# below here for libs that are not maintained by the org. diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md new file mode 100644 index 0000000..bc43a59 --- /dev/null +++ b/.github/CONTRIBUTING.md @@ -0,0 +1,160 @@ +# Contributing in @webpack-contrib + +We'd always love contributions to further improve the webpack / webpack-contrib ecosystem! +Here are the guidelines we'd like you to follow: + +- [Questions and Problems](#question) +- [Issues and Bugs](#issue) +- [Feature Requests](#feature) +- [Pull Request Submission Guidelines](#submit-pr) +- [Commit Message Conventions](#commit) + +## Got a Question or Problem? + +Please submit support requests and questions to StackOverflow using the tag [[webpack]](http://stackoverflow.com/tags/webpack). +StackOverflow is better suited for this kind of support though you may also inquire in [Webpack Gitter](https://gitter.im/webpack/webpack). +The issue tracker is for bug reports and feature discussions. + +## Found an Issue or Bug? + +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. + +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: + +- version of Webpack used +- version of the loader / plugin you are creating a bug report for +- the use-case that fails + +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. + +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. + +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. + +## Feature Requests? + +You can _request_ a new feature by creating an issue on Github. + +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. + +## Pull Request Submission Guidelines + +Before you submit your Pull Request (PR) consider the following guidelines: + +- Search Github for an open or closed PR that relates to your submission. You don't want to duplicate effort. +- 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. +- Fill out our `Pull Request Template`. Your pull request will not be considered if it is ignored. +- 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. + +## Webpack Contrib Commit Conventions + +Each commit message consists of a **header**, a **body** and a **footer**. The header has a special +format that includes a **type**, a **scope** and a **subject**: + +``` +(): + + + +