@uni-helper/pages-json-schema 0.4.9 → 0.6.0
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/README.md +26 -1
- package/package.json +9 -9
- package/schema.json +740 -194
package/README.md
CHANGED
|
@@ -1,8 +1,22 @@
|
|
|
1
1
|
# @uni-helper/pages-json-schema
|
|
2
2
|
|
|
3
|
+
<p style="text-align: center">
|
|
4
|
+
<a href="https://github.com/uni-helper/vite-plugin-uni-pages/stargazers"><img src="https://img.shields.io/github/stars/uni-helper/vite-plugin-uni-pages?colorA=005947&colorB=eee&style=for-the-badge" alt="Stars"></a>
|
|
5
|
+
<a href="https://npmx.dev/package/@uni-helper/pages-json-schema"><img src="https://img.shields.io/npm/dm/@uni-helper/pages-json-schema?colorA=005947&colorB=eee&style=for-the-badge" alt="Downloads"></a>
|
|
6
|
+
<a href="https://npmx.dev/package/@uni-helper/pages-json-schema"><img src="https://img.shields.io/npm/v/@uni-helper/pages-json-schema?colorA=005947&colorB=eee&style=for-the-badge" alt="NPM Version"></a>
|
|
7
|
+
</p>
|
|
8
|
+
<p style="text-align: center">
|
|
9
|
+
<a href="https://github.com/kejunmao"><img src="https://img.shields.io/badge/Author-KeJun-blue?style=for-the-badge" alt="Author"></a>
|
|
10
|
+
<a href="https://github.com/ModyQyW"><img src="https://img.shields.io/badge/Maintainer-ModyQyW-blue?style=for-the-badge" alt="Maintainer"></a>
|
|
11
|
+
</p>
|
|
12
|
+
|
|
3
13
|
为 uni-app 的 `pages.json` 提供 schema。
|
|
4
14
|
|
|
5
|
-
|
|
15
|
+
完整文档见 [uni-helper.js.org](https://uni-helper.js.org/vite-plugin-uni-pages),另有 [Netlify](https://vite-plugin-uni-pages.netlify.app) 和 [Cloudflare Pages](https://vite-plugin-uni-pages.pages.dev) 镜像。
|
|
16
|
+
|
|
17
|
+
不想看文档?直接问 AI 🤖 <a href="https://deepwiki.com/uni-helper/vite-plugin-uni-pages"><img src="https://deepwiki.com/badge.svg" alt="Ask DeepWiki"></a>
|
|
18
|
+
|
|
19
|
+
> **请考虑持续[赞助](https://github.com/ModyQyW/sponsors)以维持该项目的持续健康发展,非常感谢!🙏**
|
|
6
20
|
|
|
7
21
|
## 安装
|
|
8
22
|
|
|
@@ -23,3 +37,14 @@ console.log(PagesSchema)
|
|
|
23
37
|
// "definitions": {...}
|
|
24
38
|
// }
|
|
25
39
|
```
|
|
40
|
+
|
|
41
|
+
## 关联项目
|
|
42
|
+
|
|
43
|
+
- [@uni-helper/vite-plugin-uni-pages](https://github.com/uni-helper/vite-plugin-uni-pages/tree/main/packages/core) - 使用 TypeScript 编写 uni-app 的 pages.json,支持约定式路由
|
|
44
|
+
- [@uni-helper/pages-json-schema](https://github.com/uni-helper/vite-plugin-uni-pages/tree/main/packages/schema) - 为 uni-app 的 pages.json 提供 schema
|
|
45
|
+
- [@uni-helper/uni-pages-types](https://github.com/uni-helper/vite-plugin-uni-pages/tree/main/packages/types) - 为 uni-app 的 pages.json 提供 TypeScript 类型
|
|
46
|
+
- [uni-helper/vite-plugin-uni-manifest](https://github.com/uni-helper/vite-plugin-uni-manifest) - 使用 TypeScript 来编写 uni-app 的 manifest.json
|
|
47
|
+
- [uni-helper/vite-plugin-uni-platform](https://github.com/uni-helper/vite-plugin-uni-platform) - 基于文件名 (*.<h5|mp-weixin|app>.*) 的按平台编译插件
|
|
48
|
+
- [uni-helper/vite-plugin-uni-platform-modifier](https://github.com/uni-helper/vite-plugin-uni-platform-modifier) - 为属性、指令提供平台修饰符并按需编译
|
|
49
|
+
- [uni-helper/vite-plugin-uni-layouts](https://github.com/uni-helper/vite-plugin-uni-layouts) - 为 Vite 下的 uni-app 提供类 nuxt 的 layouts 系统
|
|
50
|
+
- [uni-ku/root](https://github.com/uni-ku/root) - 解决 uni-app 无法使用根部组件问题
|
package/package.json
CHANGED
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uni-helper/pages-json-schema",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Schema for uni-app pages.json",
|
|
5
5
|
"author": "KeJun",
|
|
6
|
-
"maintainers": [
|
|
7
|
-
{
|
|
8
|
-
"email": "wurui.dev@gmail.com",
|
|
9
|
-
"name": "ModyQyW",
|
|
10
|
-
"url": "https://modyyw.top"
|
|
11
|
-
}
|
|
12
|
-
],
|
|
13
6
|
"license": "MIT",
|
|
14
7
|
"funding": [
|
|
15
8
|
"https://afdian.net/a/kejun",
|
|
@@ -24,11 +17,18 @@
|
|
|
24
17
|
"keywords": [
|
|
25
18
|
"jsonschema"
|
|
26
19
|
],
|
|
20
|
+
"maintainers": [
|
|
21
|
+
{
|
|
22
|
+
"name": "ModyQyW",
|
|
23
|
+
"email": "wurui.dev@gmail.com",
|
|
24
|
+
"url": "https://modyyw.top"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"ts-json-schema-generator": "^2.9.0"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
|
-
"build": "ts-json-schema-generator -p \"../types/src/
|
|
31
|
+
"build": "ts-json-schema-generator -p \"../types/src/index.ts\" -t \"PagesConfig\" -o \"schema.json\" --no-type-check",
|
|
32
32
|
"build-post": "exit 0",
|
|
33
33
|
"dev": "pnpm build"
|
|
34
34
|
}
|