diff --git a/.babelrc b/.babelrc index 7a8bc5a7f..9d8eb6f14 100644 --- a/.babelrc +++ b/.babelrc @@ -1,4 +1,9 @@ { - "presets": ["env"], - "plugins": ["transform-object-rest-spread"] + "presets": [ + ["@babel/preset-env", { + "exclude": [ + "transform-regenerator" + ] + }] + ] } diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 15a57d685..000000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,94 +0,0 @@ -version: 2 - -defaults: &defaults - working_directory: ~/vuex - docker: - - image: circleci/node:8-browsers - -jobs: - install: - <<: *defaults - steps: - - checkout - - restore_cache: - keys: - - v1-vuex-{{ .Branch }}-{{ checksum "yarn.lock" }} - - v1-vuex-{{ .Branch }} - - v1-vuex - - run: - name: Installing Dependencies - command: yarn - - save_cache: - paths: - - ./node_modules - key: v1-vuex-{{ .Branch }}-{{ checksum "yarn.lock" }} - - persist_to_workspace: - root: ~/ - paths: - - vuex - - lint-types: - <<: *defaults - steps: - - attach_workspace: - at: ~/ - - run: - name: Linting - command: | - yarn lint --format junit --output-file test-results/eslint/results.xml - - run: - name: Testing Types - command: | - yarn test:types - - store_test_results: - path: test-results - - store_artifacts: - path: test-results - - test-unit: - <<: *defaults - steps: - - attach_workspace: - at: ~/ - - run: - name: Running Unit Tests - command: | - yarn test:unit - - test-e2e: - <<: *defaults - steps: - - attach_workspace: - at: ~/ - - run: - name: Running End-to-end Tests - command: | - yarn test:e2e - - test-ssr: - <<: *defaults - steps: - - attach_workspace: - at: ~/ - - run: - name: Running Server-side Rendering Tests - command: | - yarn test:ssr - -workflows: - version: 2 - install-and-parallel-test: - jobs: - - install - - lint-types: - requires: - - install - - test-unit: - requires: - - install - - test-e2e: - requires: - - install - - test-ssr: - requires: - - install diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index 59aa2339a..000000000 --- a/.eslintrc +++ /dev/null @@ -1,6 +0,0 @@ -{ - "root": true, - "extends": [ - "plugin:vue-libs/recommended" - ] -} diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 000000000..fd2d71204 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,10 @@ +{ + "root": true, + "extends": [ + "plugin:vue-libs/recommended" + ], + "globals": { + "__DEV__": true, + "__VUE_PROD_DEVTOOLS__": true + } +} diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 000000000..7b215c0fc --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,3 @@ +github: [yyx990803, kiaking, ktsn] +open_collective: vuejs +patreon: evanyou diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 000000000..0ad901cea --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,59 @@ +name: "\U0001F41E Bug report" +description: Create a report to help us improve +labels: ['bug: pending triage'] +body: + - type: markdown + attributes: + value: | + Thanks for taking the time to fill out this bug report! + Please note that Vuex is now in maintenance mode and we will only prioritize critical issues. + Consider checking out [Pinia](https://pinia.vuejs.org/) for a more type-friendly and actively + maintained alternative. + - type: input + id: version + attributes: + label: Version + description: What version of Vuex is used in your project? + validations: + required: true + - type: textarea + id: bug-description + attributes: + label: Describe the bug + description: A clear and concise description of what the bug is. If you intend to submit a PR for this issue, tell us in the description. Thanks! + placeholder: Bug description + validations: + required: true + - type: textarea + id: reproduction + attributes: + label: Reproduction + description: Steps to reproduce the behavior. + placeholder: Reproduction + validations: + required: true + - type: textarea + id: expected + attributes: + label: Expected behavior + description: A clear and concise description of what you expected to happen. + placeholder: Expected behavior + validations: + required: true + - type: textarea + id: additional-context + attributes: + label: Additional context + description: Add any other context or screenshots about the bug report here. + - type: checkboxes + id: checkboxes + attributes: + label: Validations + description: Before submitting the issue, please make sure you do the following + options: + - label: Follow our [Code of Conduct](https://vuejs.org/about/coc.html) + required: true + - label: Read the [docs](https://vuex.vuejs.org/). + required: true + - label: Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. + required: true diff --git a/.github/commit-convention.md b/.github/commit-convention.md new file mode 100644 index 000000000..1533ef1af --- /dev/null +++ b/.github/commit-convention.md @@ -0,0 +1,91 @@ +## Git Commit Message Convention + +> This is adapted from [Angular's commit convention](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular). + +#### TL;DR: + +Messages must be matched by the following regex: + +``` js +/^(revert: )?(feat|fix|docs|dx|style|refactor|perf|test|workflow|build|ci|chore|types|wip)(\(.+\))?: .{1,50}/ +``` + +#### Examples + +Appears under "Features" header, `store` subheader: + +``` +feat(store): add 'watch' option +``` + +Appears under "Bug Fixes" header, `module` subheader, with a link to issue #28: + +``` +fix(module): handle state overwrite + +close #28 +``` + +Appears under "Performance Improvements" header, and under "Breaking Changes" with the breaking change explanation: + +``` +perf: improve store getters performance by removing 'foo' option + +BREAKING CHANGE: The 'foo' option has been removed. +``` + +The following commit and commit `667ecc1` do not appear in the changelog if they are under the same release. If not, the revert commit appears under the "Reverts" header. + +``` +revert: feat(store): add 'watch' option + +This reverts commit 667ecc1654a317a13331b17617d973392f415f02. +``` + +### Full Message Format + +A commit message consists of a **header**, **body** and **footer**. The header has a **type**, **scope** and **subject**: + +``` +(): + + + +