Skip to content

Commit 7138a62

Browse files
committed
Merge branch 'v3'
2 parents d7bff0b + 467ec6f commit 7138a62

37 files changed

+3502
-11144
lines changed

.browserslistrc

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

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc.js

Lines changed: 32 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,36 @@
11
module.exports = {
2-
root: true,
3-
env: {
4-
node: true
5-
},
6-
'extends': [
7-
'plugin:vue/essential',
8-
'@vue/standard'
2+
extends: [
3+
'eslint:recommended',
4+
'plugin:vue/vue3-strongly-recommended',
5+
'prettier',
96
],
7+
plugins: ['prettier'],
108
rules: {
11-
'indent': ['error', 4],
12-
'semi': 'off',
13-
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
14-
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
9+
indent: [
10+
'error',
11+
4,
12+
{
13+
SwitchCase: 1,
14+
},
15+
],
16+
'linebreak-style': ['error', 'unix'],
17+
quotes: [
18+
'error',
19+
'single',
20+
{
21+
avoidEscape: true,
22+
},
23+
],
24+
'no-empty': [
25+
'error',
26+
{
27+
allowEmptyCatch: true,
28+
},
29+
],
30+
semi: 0,
31+
'no-undef': 0,
32+
'no-console': 0,
33+
'vue/html-indent': ['error', 4],
34+
'vue/max-attributes-per-line': 0,
1535
},
16-
parserOptions: {
17-
parser: 'babel-eslint'
18-
}
19-
}
36+
};

.github/workflows/close-issues.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Close inactive issues
2+
3+
on:
4+
schedule:
5+
- cron: "20 1 * * *"
6+
7+
jobs:
8+
close-issues:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
issues: write
12+
pull-requests: write
13+
steps:
14+
- uses: actions/stale@v3
15+
with:
16+
days-before-issue-stale: 90
17+
days-before-issue-close: 30
18+
stale-issue-label: "stale"
19+
stale-issue-message: "This issue is stale because it has been open for 90 days with no activity."
20+
close-issue-message: "This issue was closed because it has been inactive for 30 days since being marked as stale."
21+
days-before-pr-stale: -1
22+
days-before-pr-close: -1
23+
repo-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/npm-publish.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publish to NPM
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v2
13+
with:
14+
node-version: 16
15+
- run: yarn && yarn test
16+
17+
publish:
18+
needs: test
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: actions/setup-node@v2
23+
with:
24+
node-version: 16
25+
registry-url: https://registry.npmjs.org/
26+
- run: yarn && yarn build
27+
- run: npm publish
28+
env:
29+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

.github/workflows/tests.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,17 @@
1-
name: Tests
1+
name: Run tests
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [master]
66
pull_request:
7-
branches: [ master ]
8-
9-
# Allows you to run this workflow manually from the Actions tab
10-
workflow_dispatch:
7+
branches: [master]
118

129
jobs:
13-
build:
10+
test:
1411
runs-on: ubuntu-latest
15-
1612
steps:
1713
- uses: actions/checkout@v2
1814
- uses: actions/setup-node@v2
1915
with:
20-
node-version: '14'
21-
- name: Install dependencies
22-
run: yarn
23-
- name: Run tests
24-
run: yarn test
16+
node-version: 16
17+
- run: yarn && yarn test

.gitignore

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
1-
.DS_Store
2-
node_modules
3-
/dist/*.html
4-
5-
# local env files
6-
.env.local
7-
.env.*.local
8-
9-
# Log files
1+
# Logs
2+
logs
3+
*.log
104
npm-debug.log*
115
yarn-debug.log*
126
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist-ssr
12+
*.local
1313

1414
# Editor directories and files
15+
.vscode/*
16+
!.vscode/extensions.json
17+
!.vscode/settings.json
1518
.idea
16-
.vscode
19+
.DS_Store
1720
*.suo
1821
*.ntvs*
1922
*.njsproj
2023
*.sln
21-
*.sw*
24+
*.sw?

.nowignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"tabWidth": 4,
3+
"singleQuote": true
4+
}

.travis.yml

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

0 commit comments

Comments
 (0)