Skip to content

Commit ca43c0d

Browse files
authored
Merge branch 'fi3ework:main' into main
2 parents 55de724 + e063617 commit ca43c0d

File tree

103 files changed

+3073
-2450
lines changed

Some content is hidden

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

103 files changed

+3073
-2450
lines changed

.changeset/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": ["@vite-plugin-checker/runtime", "@playground/*"]
11+
}

.changeset/eight-swans-give.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"vite-plugin-checker": patch
3+
---
4+
5+
use `virtual:` for virtual module

.changeset/thin-eagles-begin.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'vite-plugin-checker': patch
3+
---
4+
5+
Migrate runtime UI from svelte to vue, user should not aware this.

.eslintrc.js

-7
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@ module.exports = {
1111
__dirname: 'off',
1212
__filename: 'off',
1313
},
14-
plugins: ['svelte3'],
15-
overrides: [
16-
{
17-
files: ['*.svelte'],
18-
processor: 'svelte3/svelte3',
19-
},
20-
],
2114
rules: {
2215
'max-nested-callbacks': 'off',
2316
'@typescript-eslint/consistent-type-assertions': 'off',

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
strategy:
2222
matrix:
2323
os: [ubuntu-latest]
24-
node_version: [14, 16, 18]
24+
node_version: [16, 18, 20]
2525
include:
2626
# Active LTS + other OS
2727
- os: macos-latest

.prettierrc.js

-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@ module.exports = {
44
semi: false,
55
singleQuote: true,
66
trailingComma: 'es5',
7-
plugins: [require('prettier-plugin-svelte')],
87
}

CHANGELOG.md

+26
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
## 0.6.0 (2023-04-30)
2+
3+
* fix: compatible with mac’s duplication watch report ([5dd90c9](https://github.com/fi3ework/vite-plugin-checker/commit/5dd90c9))
4+
* fix: require vue-tsc >= 1.3.9 ([69a73a9](https://github.com/fi3ework/vite-plugin-checker/commit/69a73a9))
5+
* fix: support vue-tsc works with ts5 ([ebf8996](https://github.com/fi3ework/vite-plugin-checker/commit/ebf8996))
6+
* fix: throw when using —fix with ESLint ([6d3887d](https://github.com/fi3ework/vite-plugin-checker/commit/6d3887d))
7+
* fix(stylelint): parse lintCommand like argv ([20b7399](https://github.com/fi3ework/vite-plugin-checker/commit/20b7399))
8+
* build: bump vitest ([30510a6](https://github.com/fi3ework/vite-plugin-checker/commit/30510a6))
9+
* chore: bump vue-tsc to latest ([8a99b8f](https://github.com/fi3ework/vite-plugin-checker/commit/8a99b8f))
10+
11+
12+
13+
## <small>0.5.6 (2023-02-17)</small>
14+
15+
* chore(playground): lock vue-tsc to ~1.0.0 ([50a2609](https://github.com/fi3ework/vite-plugin-checker/commit/50a2609))
16+
* fix: use Vite's native logger to log and clean screen before log (#209) ([8dd4915](https://github.com/fi3ework/vite-plugin-checker/commit/8dd4915)), closes [#209](https://github.com/fi3ework/vite-plugin-checker/issues/209)
17+
* fix(vue-tsc): compatible with vue-tsc@^1.1.0 ([96b762b](https://github.com/fi3ework/vite-plugin-checker/commit/96b762b))
18+
* docs: add how to use with Nuxt ([7eb4c84](https://github.com/fi3ework/vite-plugin-checker/commit/7eb4c84))
19+
* docs: add missing step for Nuxt ([9ceacd6](https://github.com/fi3ework/vite-plugin-checker/commit/9ceacd6))
20+
* docs: add version requirement ([219c7ed](https://github.com/fi3ework/vite-plugin-checker/commit/219c7ed))
21+
* docs: eslint (#210) ([f65aa71](https://github.com/fi3ework/vite-plugin-checker/commit/f65aa71)), closes [#210](https://github.com/fi3ework/vite-plugin-checker/issues/210)
22+
* refactor: clean code ([90780c3](https://github.com/fi3ework/vite-plugin-checker/commit/90780c3))
23+
* ci: add publint ([ee50bae](https://github.com/fi3ework/vite-plugin-checker/commit/ee50bae))
24+
25+
26+
127
## <small>0.5.5 (2023-01-26)</small>
228

329
* refactor: bump vite in devDep to ^4 (#208) ([61b7aea](https://github.com/fi3ework/vite-plugin-checker/commit/61b7aea)), closes [#208](https://github.com/fi3ework/vite-plugin-checker/issues/208)

CONTRIBUTING.md

-16
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,6 @@ pnpm build
88
pnpm dev
99
```
1010

11-
## Release
12-
13-
`cd` to `packages/vite-plugin-checker`.
14-
15-
Release with interactive CLI
16-
17-
```bash
18-
npm run release
19-
```
20-
21-
or release with an explicit version or dry run flag
22-
23-
```bash
24-
npm run release -- --version=1.2.3 --dry
25-
```
26-
2711
## Publish
2812

2913
Package is automated published in CI, see `.github/workflows/release.yml`.

docs/configuration/config.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ Shared configuration to control the checker behaviors of the plugin.
2929
position?: 'tl' | 'tr' | 'bl' | 'br'
3030
/**
3131
* Use this to add extra style string to the badge button, the string format is
32-
* [Svelte style](https://svelte.dev/docs#template-syntax-element-directives-style-property)
32+
* [HTML element's style property](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/style)
3333
* For example, if you want to hide the badge,
3434
* you can pass `display: none;` to the badgeStyle property
3535
* @default no default value
3636
*/
3737
badgeStyle?: string
3838
/**
3939
* Use this to add extra style string to the diagnostic panel, the string format is
40-
* [Svelte style](https://svelte.dev/docs#template-syntax-element-directives-style-property)
40+
* [HTML element's style property:](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/style)
4141
* For example, if you want to change the opacity of the panel,
4242
* you can pass `opacity: 0.8;` to the panelStyle property
4343
* @default no default value

docs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"dependencies": {
55
"@vueuse/core": "^8.9.4",
66
"body-scroll-lock": "4.0.0-beta.0",
7-
"vitepress": "^1.0.0-alpha.36",
7+
"vitepress": "^1.0.0-alpha.73",
88
"vue": "^3.2.37"
99
}
1010
}

package.json

+38-15
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,40 @@
66
"yarn": "forbidden, use pnpm",
77
"npm": "forbidden, use pnpm"
88
},
9+
"pnpm": {
10+
"packageExtensions": {
11+
"@unplugin-vue-ce/sub-style": {
12+
"dependencies": {
13+
"@babel/parser": "^7.21.8",
14+
"@babel/types": "^7.21.5"
15+
}
16+
},
17+
"@baiwusanyu/utils-log": {
18+
"dependencies": {
19+
"ansi-colors": "^4.1.3"
20+
}
21+
},
22+
"@baiwusanyu/utils-task": {
23+
"dependencies": {
24+
"@baiwusanyu/utils-log": "*"
25+
}
26+
},
27+
"@baiwusanyu/utils-com": {
28+
"dependencies": {
29+
"hash-sum": "*"
30+
}
31+
}
32+
}
33+
},
934
"packageManager": "[email protected]",
1035
"scripts": {
1136
"preinstall": "npx only-allow pnpm",
1237
"dev": "pnpm -r --filter=./packages/** --parallel run dev",
1338
"build": "pnpm -r --filter=./packages/** run build",
1439
"build:test": "pnpm -r --filter=./packages/** run build:test",
1540
"clean": "pnpm -r --filter=./packages/** run clean",
16-
"format": "prettier --check \"packages/*/src/**/*.{ts,js,svelte}\"",
17-
"lint": "eslint \"packages/*/src/**/*.{ts,js,svelte}\"",
41+
"format": "prettier --check \"packages/*/src/**/*.{ts,js,vue}\"",
42+
"lint": "eslint \"packages/*/src/**/*.{ts,js}\"",
1843
"publint": "pnpm -r --filter='vite-plugin-checker' exec publint",
1944
"test": "run-s test-unit test-serve test-build",
2045
"test-unit": "vitest run",
@@ -39,7 +64,10 @@
3964
]
4065
},
4166
"devDependencies": {
42-
"@tsconfig/node16-strictest-esm": "^1.0.3",
67+
"@changesets/cli": "^2.26.1",
68+
"@tsconfig/esm": "^1.0.2",
69+
"@tsconfig/node18": "^1.0.1",
70+
"@tsconfig/strictest": "^2.0.0",
4371
"@types/babel__code-frame": "^7.0.2",
4472
"@types/debug": "^4.1.5",
4573
"@types/fs-extra": "^11.0.1",
@@ -50,14 +78,12 @@
5078
"@types/rimraf": "^3.0.0",
5179
"@types/semver": "^7.3.6",
5280
"@types/ws": "^8.5.3",
53-
"@typescript-eslint/eslint-plugin": "^5.16.0",
54-
"@typescript-eslint/parser": "^5.16.0",
81+
"@typescript-eslint/eslint-plugin": "^5.59.0",
82+
"@typescript-eslint/parser": "^5.59.0",
5583
"chalk": "^4.1.1",
56-
"conventional-changelog-cli": "^2.1.1",
5784
"cross-env": "^7.0.3",
5885
"eslint": "^8.11.0",
5986
"eslint-config-alloy": "^4.5.1",
60-
"eslint-plugin-svelte3": "^3.4.0",
6187
"execa": "^5.1.1",
6288
"fast-glob": "^3.2.7",
6389
"fast-json-stable-stringify": "^2.1.0",
@@ -69,21 +95,18 @@
6995
"npm-run-all": "^4.1.5",
7096
"playwright-chromium": "^1.24.0",
7197
"prettier": "^2.3.2",
72-
"prettier-plugin-svelte": "^2.6.0",
7398
"prompts": "^2.4.1",
7499
"publint": "^0.1.9",
75100
"rimraf": "^3.0.2",
76-
"semver": "^7.3.5",
101+
"semver": "^7.5.0",
77102
"simple-git-hooks": "^2.8.0",
78103
"sort-deep-object-arrays": "^1.1.2",
79104
"strip-ansi": "^7.0.0",
80-
"svelte": "^3.46.4",
81105
"tiny-invariant": "^1.1.0",
82-
"typescript": "~4.5.5",
83-
"vite": "^4.0.4",
106+
"typescript": "^5.0.4",
107+
"vite": "^4.3.0",
84108
"vite-plugin-checker": "workspace:*",
85-
"vitest": "^0.24.0",
86-
"ws": "^8.5.0",
87-
"zx": "^1.14.2"
109+
"vitest": "^0.30.1",
110+
"ws": "^8.5.0"
88111
}
89112
}

packages/runtime/index.html

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
</head>
6+
<body>
7+
<div id="app"></div>
8+
<script type="module" src="/src/main.ts"></script>
9+
</body>
10+
</html>

packages/runtime/package.json

+12-10
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,20 @@
44
"description": "Runtime code for vite-plugin-checker",
55
"version": "0.0.0",
66
"type": "module",
7+
"main": "dist/main.js",
8+
"sideEffects": [
9+
"*.ts"
10+
],
711
"scripts": {
8-
"build": "node ./scripts/build.js",
9-
"build-local": "node ./scripts/build.js --local",
10-
"build:test": "pnpm run build",
11-
"dev": "node ./scripts/build.js --watch",
12-
"dev-local": "node ./scripts/build.js --watch --local",
13-
"preview": "sirv public --no-clear"
12+
"dev": "vite build --watch",
13+
"build": "vue-tsc --noEmit && vite build",
14+
"build:test": "pnpm run build"
1415
},
1516
"devDependencies": {
16-
"esbuild": "^0.14.27",
17-
"esbuild-svelte": "^0.6.3",
18-
"has-flag": "^5.0.1",
19-
"sirv-cli": "^2.0.0"
17+
"@unplugin-vue-ce/sub-style": "1.0.0-beta.6",
18+
"@vitejs/plugin-vue": "^2.0.1",
19+
"vite": "^4.3.0",
20+
"vue": "^3.3.4",
21+
"vue-tsc": "^1.6.1"
2022
}
2123
}

packages/runtime/public/favicon.png

-3.05 KB
Binary file not shown.

packages/runtime/public/global.css

-63
This file was deleted.

packages/runtime/public/index.html

-13
This file was deleted.

packages/runtime/scripts/build.js

-28
This file was deleted.

0 commit comments

Comments
 (0)