code-inspector-plugin 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +60 -60
- package/package.json +4 -4
- package/types/index.d.ts +6 -6
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2022 zhoulixiang
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 zhoulixiang
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
<div align="center">
|
|
2
|
-
<img src="https://github.com/zh-lx/code-inspector/assets/73059627/842c3e88-dca7-4743-854c-d61093d3d34f" width=160px" style="margin-bottom: 12px;" />
|
|
3
|
-
|
|
4
|
-
<p align="center">
|
|
5
|
-
<h2>code-inspector-plugin</h2>
|
|
6
|
-
<span>中文文档</span> |
|
|
7
|
-
<a href="https://github.com/zh-lx/code-inspector/blob/main/docs/README-EN.md">English Doc</a> |
|
|
8
|
-
<a href="https://inspector.fe-dev.cn">在线文档</a>
|
|
9
|
-
</p>
|
|
10
|
-
|
|
11
|
-
[](https://www.npmjs.com/package/code-inspector-plugin)
|
|
12
|
-
[](https://github.com/zh-lx/code-inspector)
|
|
13
|
-
[](https://opensource.org/licenses/MIT)
|
|
14
|
-
|
|
15
|
-
</div>
|
|
16
|
-
|
|
17
|
-
<hr />
|
|
18
|
-
|
|
19
|
-
## 📖 介绍
|
|
20
|
-
|
|
21
|
-
点击页面上的元素,能够自动打开你的代码编辑器并将光标定位到元素对应的代码位置。
|
|
22
|
-
|
|
23
|
-

|
|
24
|
-
|
|
25
|
-
## 🚀 安装
|
|
26
|
-
|
|
27
|
-
```perl
|
|
28
|
-
npm i code-inspector-plugin -D
|
|
29
|
-
# or
|
|
30
|
-
yarn add code-inspector-plugin -D
|
|
31
|
-
# or
|
|
32
|
-
pnpm add code-inspector-plugin -D
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
## 🌈 使用
|
|
36
|
-
|
|
37
|
-
完整的接入及使用方式请查看:[code-inspector-plugin 配置](https://inspector.fe-dev.cn/guide/start.html#%E9%85%8D%E7%BD%AE)
|
|
38
|
-
|
|
39
|
-
## 🎨 支持列表
|
|
40
|
-
|
|
41
|
-
下面是编译器、web 框架以及代码编辑器支持列表:
|
|
42
|
-
|
|
43
|
-
- 当前支持以下打包工具<br />
|
|
44
|
-
✅ webpack(4.x/5.x)<br />
|
|
45
|
-
✅ vite
|
|
46
|
-
- 当前支持以下 Web 框架<br />
|
|
47
|
-
✅ vue2<br />
|
|
48
|
-
✅ vue3<br />
|
|
49
|
-
✅ react
|
|
50
|
-
- 当前支持以下代码编辑器<br />
|
|
51
|
-
[VSCode](https://code.visualstudio.com/) | [Visual Studio Code - Insiders](https://code.visualstudio.com/insiders/) | [WebStorm](https://www.jetbrains.com/webstorm/) | [Atom](https://atom.io/) | [HBuilderX](https://www.dcloud.io/hbuilderx.html) | [PhpStorm](https://www.jetbrains.com/phpstorm/) | [PyCharm](https://www.jetbrains.com/pycharm/) | [IntelliJ IDEA](https://www.jetbrains.com/idea/)
|
|
52
|
-
|
|
53
|
-
## 📧 交流与反馈
|
|
54
|
-
|
|
55
|
-
任何使用问题可以加入 QQ 群 `769748484` 或者添加作者微信 `zhoulx1688888` 进行咨询与反馈:
|
|
56
|
-
|
|
57
|
-
<div style="display: flex;">
|
|
58
|
-
<img src="https://github.com/zh-lx/code-inspector/assets/73059627/1ffb57e0-d511-4981-bc06-cf16f8793fd8" width="200" />
|
|
59
|
-
<img src="https://user-images.githubusercontent.com/73059627/226233691-848b2a40-f1a9-414e-a80f-3fc6c6209eb1.png" width="200" />
|
|
60
|
-
</div>
|
|
1
|
+
<div align="center">
|
|
2
|
+
<img src="https://github.com/zh-lx/code-inspector/assets/73059627/842c3e88-dca7-4743-854c-d61093d3d34f" width=160px" style="margin-bottom: 12px;" />
|
|
3
|
+
|
|
4
|
+
<p align="center">
|
|
5
|
+
<h2>code-inspector-plugin</h2>
|
|
6
|
+
<span>中文文档</span> |
|
|
7
|
+
<a href="https://github.com/zh-lx/code-inspector/blob/main/docs/README-EN.md">English Doc</a> |
|
|
8
|
+
<a href="https://inspector.fe-dev.cn">在线文档</a>
|
|
9
|
+
</p>
|
|
10
|
+
|
|
11
|
+
[](https://www.npmjs.com/package/code-inspector-plugin)
|
|
12
|
+
[](https://github.com/zh-lx/code-inspector)
|
|
13
|
+
[](https://opensource.org/licenses/MIT)
|
|
14
|
+
|
|
15
|
+
</div>
|
|
16
|
+
|
|
17
|
+
<hr />
|
|
18
|
+
|
|
19
|
+
## 📖 介绍
|
|
20
|
+
|
|
21
|
+
点击页面上的元素,能够自动打开你的代码编辑器并将光标定位到元素对应的代码位置。
|
|
22
|
+
|
|
23
|
+

|
|
24
|
+
|
|
25
|
+
## 🚀 安装
|
|
26
|
+
|
|
27
|
+
```perl
|
|
28
|
+
npm i code-inspector-plugin -D
|
|
29
|
+
# or
|
|
30
|
+
yarn add code-inspector-plugin -D
|
|
31
|
+
# or
|
|
32
|
+
pnpm add code-inspector-plugin -D
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## 🌈 使用
|
|
36
|
+
|
|
37
|
+
完整的接入及使用方式请查看:[code-inspector-plugin 配置](https://inspector.fe-dev.cn/guide/start.html#%E9%85%8D%E7%BD%AE)
|
|
38
|
+
|
|
39
|
+
## 🎨 支持列表
|
|
40
|
+
|
|
41
|
+
下面是编译器、web 框架以及代码编辑器支持列表:
|
|
42
|
+
|
|
43
|
+
- 当前支持以下打包工具<br />
|
|
44
|
+
✅ webpack(4.x/5.x)<br />
|
|
45
|
+
✅ vite
|
|
46
|
+
- 当前支持以下 Web 框架<br />
|
|
47
|
+
✅ vue2<br />
|
|
48
|
+
✅ vue3<br />
|
|
49
|
+
✅ react
|
|
50
|
+
- 当前支持以下代码编辑器<br />
|
|
51
|
+
[VSCode](https://code.visualstudio.com/) | [Visual Studio Code - Insiders](https://code.visualstudio.com/insiders/) | [WebStorm](https://www.jetbrains.com/webstorm/) | [Atom](https://atom.io/) | [HBuilderX](https://www.dcloud.io/hbuilderx.html) | [PhpStorm](https://www.jetbrains.com/phpstorm/) | [PyCharm](https://www.jetbrains.com/pycharm/) | [IntelliJ IDEA](https://www.jetbrains.com/idea/)
|
|
52
|
+
|
|
53
|
+
## 📧 交流与反馈
|
|
54
|
+
|
|
55
|
+
任何使用问题可以加入 QQ 群 `769748484` 或者添加作者微信 `zhoulx1688888` 进行咨询与反馈:
|
|
56
|
+
|
|
57
|
+
<div style="display: flex;">
|
|
58
|
+
<img src="https://github.com/zh-lx/code-inspector/assets/73059627/1ffb57e0-d511-4981-bc06-cf16f8793fd8" width="200" />
|
|
59
|
+
<img src="https://user-images.githubusercontent.com/73059627/226233691-848b2a40-f1a9-414e-a80f-3fc6c6209eb1.png" width="200" />
|
|
60
|
+
</div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "code-inspector-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"typings": "./types/index.d.ts",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"chalk": "4.1.1",
|
|
42
|
-
"code-inspector-
|
|
43
|
-
"
|
|
44
|
-
"
|
|
42
|
+
"webpack-code-inspector-plugin": "0.1.7",
|
|
43
|
+
"code-inspector-core": "0.1.7",
|
|
44
|
+
"vite-code-inspector-plugin": "0.1.7"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/node": "^16.0.1",
|
package/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CodeOptions } from 'code-inspector-core';
|
|
2
|
-
export interface CodeInspectorPluginOptions extends CodeOptions {
|
|
3
|
-
bundler: 'vite' | 'webpack';
|
|
4
|
-
catch?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare function CodeInspectorPlugin(options: CodeInspectorPluginOptions): any;
|
|
1
|
+
import { CodeOptions } from 'code-inspector-core';
|
|
2
|
+
export interface CodeInspectorPluginOptions extends CodeOptions {
|
|
3
|
+
bundler: 'vite' | 'webpack';
|
|
4
|
+
catch?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function CodeInspectorPlugin(options: CodeInspectorPluginOptions): any;
|