Skip to content

Commit 8372a48

Browse files
committed
refactor: cleanup and updates
1 parent 39c4f91 commit 8372a48

27 files changed

+6218
-4031
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
dist
22
node_modules
33
shim
4+
*.vue

.eslintrc.json

+17-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
11
{
22
"root": true,
3-
"extends": [
4-
"eslint:recommended",
5-
"plugin:node/recommended",
6-
"plugin:prettier/recommended"
7-
],
3+
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
84
"env": {
95
"node": true
10-
}
6+
},
7+
"overrides": [
8+
{
9+
"files": ["**/*.ts"],
10+
"extends": [
11+
"eslint:recommended",
12+
"plugin:@typescript-eslint/eslint-recommended",
13+
"plugin:@typescript-eslint/recommended",
14+
"plugin:prettier/recommended"
15+
],
16+
"rules": {
17+
"@typescript-eslint/explicit-function-return-type": 0,
18+
"@typescript-eslint/no-explicit-any": 0
19+
}
20+
}
21+
]
1122
}

.github/workflows/build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Build
22
on:
33
push:
44
paths-ignore:
5-
- 'docs/**'
5+
- 'packages/docs/**'
66
- 'README.md'
77

88
jobs:
@@ -25,7 +25,7 @@ jobs:
2525
env:
2626
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
2727
with:
28-
coverageLocations: ${{github.workspace}}/coverage/lcov.info:lcov
28+
coverageLocations: ${{github.workspace}}/packages/core/coverage/lcov.info:lcov
2929
prefix: test
3030
- name: Build
3131
run: npm run build

.github/workflows/gh-pages.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,12 @@ jobs:
1616
with:
1717
node-version-file: '.nvmrc'
1818
cache: 'npm'
19-
- run: npm ci
20-
working-directory: 'docs'
19+
- name: Install Dependencies
20+
run: npm ci
2121
- name: Generate Documentation
22-
run: npm run docs:build
23-
working-directory: 'docs'
22+
run: npm run build --workspace=docs
2423
- name: Deploy
2524
uses: peaceiris/actions-gh-pages@v3
2625
with:
2726
github_token: ${{ secrets.GITHUB_TOKEN }}
28-
publish_dir: ./docs/.vuepress/dist
27+
publish_dir: ./packages/docs/.vuepress/dist

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,6 @@ Icon
5151
.Spotlight-V100
5252
.Trashes
5353
dist
54-
**/shim/*.*
54+
**/shim
5555
!**/shim/package.json
56+
.nuxt

.npmignore

-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ examples
55
.babelrc
66
.editorconfig
77
.eslintrc.json
8-
rollup.*

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
</p>
1717

18-
**Note: This document is for VueTypes 4. If you are looking for an older versions, refer to the `v1~v4` branches.**
18+
**Note: This document is for VueTypes 5. If you are looking for an older versions, refer to the `v1~v4` branches.**
1919

2020
## Introduction
2121

@@ -39,7 +39,7 @@
3939
1. Clone this repository
4040
1. Install dependencies: `npm ci`
4141
1. Make your changes
42-
1. Update or add tests in `__tests__/`
42+
1. Update or add tests in `packages/core/__tests__/`
4343
1. Verify that everything works: `npm run lint && npm test`
4444
1. Submit a Pull Request
4545

jest.config.cjs

-9
This file was deleted.

lefthook.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ pre-commit:
22
parallel: true
33
commands:
44
linter:
5-
glob: "*.{mjs,cjs,js,ts,vue}"
5+
glob: "*.{mjs,cjs,js,ts}"
66
run: npx eslint {staged_files}

0 commit comments

Comments
 (0)