Skip to content

Commit 0445407

Browse files
committed
chore: upgrade vue.js 3
1 parent a2f3e93 commit 0445407

File tree

100 files changed

+54089
-15210
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+54089
-15210
lines changed

.browserslistrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
> 1%
22
last 2 versions
3-
not ie <= 8
3+
not dead

.eslintignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
./dist
1+
./dist
2+
./docs

.eslintrc.js

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,27 @@
11
module.exports = {
22
root: true,
33
env: {
4-
node: true,
5-
jest: true
4+
node: true
65
},
7-
86
extends: [
9-
'plugin:vue/essential',
7+
'plugin:vue/vue3-essential',
108
'@vue/standard'
119
],
12-
10+
parserOptions: {
11+
parser: 'babel-eslint'
12+
},
13+
plugins: [
14+
'modules-newline'
15+
],
1316
rules: {
14-
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
15-
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
17+
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
18+
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
19+
20+
'modules-newline/import-declaration-newline': 'error',
21+
22+
'vue/no-mutating-props': 'off',
23+
'no-unused-vars': 'off',
24+
1625
'vue/html-closing-bracket-newline': ['error', {
1726
singleline: 'never',
1827
multiline: 'never'
@@ -28,8 +37,15 @@ module.exports = {
2837
'vue/html-indent': 'error',
2938
quotes: ['error', 'single']
3039
},
31-
32-
parserOptions: {
33-
parser: 'babel-eslint'
34-
}
40+
overrides: [
41+
{
42+
files: [
43+
'**/__tests__/*.{j,t}s?(x)',
44+
'**/tests/unit/**/*.spec.{j,t}s?(x)'
45+
],
46+
env: {
47+
jest: true
48+
}
49+
}
50+
]
3551
}

.github/dependabot.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,36 @@ on: [push, pull_request]
55
jobs:
66
test:
77
name: Test
8-
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
8+
if: github.event_name == 'push'
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v1
11+
- uses: actions/checkout@v3
1212
- name: Use Node.js
13-
uses: actions/setup-node@v1
13+
uses: actions/setup-node@v3
1414
with:
15-
node-version: '12'
15+
node-version: "16"
1616
- name: Lint
1717
run: |
18-
npm i
19-
npm run lint
18+
yarn
19+
yarn lint
2020
- name: Test
2121
run: |
22-
npm i
23-
npm run test
24-
22+
yarn
23+
yarn test
24+
2525
publish:
2626
name: Publish
27-
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
27+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
2828
runs-on: ubuntu-latest
2929
needs: [test]
3030
steps:
31-
- uses: actions/checkout@v1
31+
- uses: actions/checkout@v3
3232
- name: Use Node.js
33-
uses: actions/setup-node@v1
33+
uses: actions/setup-node@v3
3434
with:
35-
node-version: '12'
35+
node-version: "16"
3636
- name: Publish
37-
run: npm i && npm run build:lib && npx semantic-release
37+
run: yarn; yarn build:lib; npx semantic-release
3838
env:
3939
GH_TOKEN: ${{ secrets.GH_TOKEN }}
40-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
40+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/test.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.gitignore

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
.DS_Store
22
node_modules
3+
/dist
34

4-
# build files
5-
dist
65

76
# local env files
87
.env.local
98
.env.*.local
109

1110
# Log files
1211
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
pnpm-debug.log*
1315

1416
# Editor directories and files
1517
.idea
@@ -18,7 +20,4 @@ npm-debug.log*
1820
*.ntvs*
1921
*.njsproj
2022
*.sln
21-
*.sw*
22-
23-
# Jest files
24-
coverage
23+
*.sw?

.husky/commit-msg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx --no -- commitlint --edit ${1}
5+
yarn commitlint --edit $1

CHANGELOG.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
# Contributing
22

3-
I'm happy you want to contribute. Please make sure you read and fulfil the following sections.
4-
53
## General
64

7-
- Use [JavaScript Standard Style](https://standardjs.com/)
8-
- Watch for a clean and readable code style. More [here](https://medium.com/javascript-scene/elements-of-javascript-style-caa8821cb99f)
9-
- Don't be afraid of new JavaScript features
10-
- Edit or add tests if appropriate
5+
- Use [JavaScript standard style](https://standardjs.com/)
6+
- Use [Conventional commits](https://www.conventionalcommits.org/en/v1.0.0/)
117

12-
## Commits
8+
## Conventional commits
139

14-
You must follow the [conventional commits schema](https://github.com/conventional-changelog/commitlint/tree/master/@commitlint/config-conventional). Commits are linted and will fail if not following the schema so. This helps to be consistent across developers and makes [semantic-release](https://github.com/semantic-release/semantic-release) possible.
10+
You must follow the [conventional commits](https://github.com/conventional-changelog/commitlint/tree/master/@commitlint/config-conventional) schema. Commits are linted and will fail if
11+
they are not following the schema. This helps to be consistent across developers
12+
and makes
13+
[semantic-release](https://github.com/semantic-release/semantic-release)
14+
possible.
1515

16-
If you change the `README.md`, use `docs!` to trigger a breaking change (increases major version) to make the change visible at npmjs.com.
16+
If you change the `README.md`, use `docs!` to trigger a breaking change
17+
(increases major version) to make the change visible at the npm registry.
1718

1819
## Build and release
1920

20-
You don't need to take care of any library building when you are finished. Releases are done automatically by [semantic-release](https://github.com/semantic-release/semantic-release). You must follow the given commit schema (see [Commits section](#commits)) to trigger an automatic release with the correct versioning.
21+
You don't need to take care of any library building when you are finished.
22+
Releases are done automatically by
23+
[semantic-release](https://github.com/semantic-release/semantic-release). You
24+
must follow the given commit schema
25+
(see [Conventional commits](#Conventional-commits)) to trigger an automatic
26+
release with the correct versioning.

0 commit comments

Comments
 (0)