diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index aa8b4bbf10..0000000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,119 +0,0 @@ -version: 2.1 - -defaults: &defaults - working_directory: ~/project/vue - docker: - - image: circleci/node:lts-browsers - -aliases: - - &restore-yarn-cache - key: v2-vue-cli-{{ checksum "yarn.lock" }} - - - &save-yarn-cache - key: v2-vue-cli-{{ checksum "yarn.lock" }} - paths: - - node_modules/ - - ~/.cache - -workflow_filters: &filters - filters: - branches: - ignore: - - docs - -jobs: - install: - <<: *defaults - steps: - - checkout - - restore_cache: *restore-yarn-cache - - run: yarn --network-timeout 600000 - - save_cache: *save-yarn-cache - - persist_to_workspace: - root: ~/ - paths: - - project/vue - - .cache/Cypress - - e2e: - <<: *defaults - steps: - - attach_workspace: - at: ~/ - - run: ./scripts/e2e-test/run-e2e-test.sh - - core: - <<: *defaults - steps: - - attach_workspace: - at: ~/ - - run: yarn test -p cli,cli-service,cli-shared-utils - - typescript: - <<: *defaults - steps: - - attach_workspace: - at: ~/ - - run: yarn test 'ts(?:\w(?!E2e))+\.spec\.js$' - - plugins: - <<: *defaults - steps: - - attach_workspace: - at: ~/ - - run: yarn lint-without-fix - - run: yarn check-links - - run: yarn test -p eslint,pwa,babel,babel-preset-app,vuex,router - - tests: - <<: *defaults - steps: - - attach_workspace: - at: ~/ - - run: yarn test -p unit-mocha,unit-jest,e2e-cypress - # e2e-nightwatch was left out due to some unknown issues with selenium and the CI image - - run: yarn test tsPluginE2e - - cli-ui: - <<: *defaults - steps: - - attach_workspace: - at: ~/ - - run: cd packages/@vue/cli-ui && yarn test - - store_artifacts: - path: packages/@vue/cli-ui/tests/e2e/videos - - store_artifacts: - path: packages/@vue/cli-ui/tests/e2e/screenshots - - store_artifacts: - path: /home/circleci/.npm/_logs - -workflows: - version: 2 - test: - jobs: - - install: - <<: *filters - - core: - <<: *filters - requires: - - install - - typescript: - <<: *filters - requires: - - install - - plugins: - <<: *filters - requires: - - install - - tests: - <<: *filters - requires: - - install - - cli-ui: - <<: *filters - requires: - - install - - e2e: - <<: *filters - requires: - - install diff --git a/.editorconfig b/.editorconfig index 9d08a1a828..4a7ea3036a 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,9 +1,12 @@ root = true [*] -charset = utf-8 indent_style = space indent_size = 2 end_of_line = lf -insert_final_newline = true +charset = utf-8 trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 057b28cb82..0000000000 --- a/.eslintignore +++ /dev/null @@ -1,7 +0,0 @@ -node_modules -template -template-vue3 -packages/test -temp -dist -__testfixtures__ diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000000..940f6bbc54 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,7 @@ +{ + "extends": ["plugin:vue-libs/recommended"], + "env": { + "mocha": true, + "node": true + } +} diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 17c1d2df20..0000000000 --- a/.eslintrc.js +++ /dev/null @@ -1,33 +0,0 @@ -module.exports = { - extends: [ - '@vue/standard' - ], - globals: { - name: 'off' - }, - rules: { - indent: ['error', 2, { - MemberExpression: 'off' - }], - quotes: [2, 'single', { avoidEscape: true, allowTemplateLiterals: true }], - 'quote-props': 'off', - 'no-shadow': ['error'], - 'node/no-extraneous-require': ['error', { - allowModules: [ - '@vue/cli-service', - '@vue/cli-test-utils' - ] - }] - }, - overrides: [ - { - files: ['**/__tests__/**/*.js', '**/cli-test-utils/**/*.js'], - env: { - jest: true - }, - rules: { - 'node/no-extraneous-require': 'off' - } - } - ] -} diff --git a/.github/COMMIT_CONVENTION.md b/.github/COMMIT_CONVENTION.md deleted file mode 100644 index 6aaffa749a..0000000000 --- a/.github/COMMIT_CONVENTION.md +++ /dev/null @@ -1,93 +0,0 @@ -## 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|style|refactor|perf|test|workflow|ci|chore|types)(\(.+\))?: .{1,50}/ -``` - -#### Examples - -Appears under "Features" header, `compiler` subheader: - -``` -feat(compiler): add 'comments' option -``` - -Appears under "Bug Fixes" header, `v-model` subheader, with a link to issue #28: - -``` -fix(v-model): handle events on blur - -close #28 -``` - -Appears under "Performance Improvements" header, and under "Breaking Changes" with the breaking change explanation: - -``` -perf(core): improve vdom diffing 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(compiler): add 'comments' 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**: - -``` -(): - - - -