@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.
Files changed (3) hide show
  1. package/README.md +26 -1
  2. package/package.json +9 -9
  3. 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
- 不想看文档?直接问 AI 🤖 <a href="https://deepwiki.com/uni-helper/vite-plugin-uni-pages"><img src="https://deepwiki.com/badge.svg" alt="Ask DeepWiki"></a> <a href="https://zread.ai/uni-helper/vite-plugin-uni-pages" target="_blank"><img src="https://img.shields.io/badge/Ask_Zread-_.svg?style=flat&color=00b0aa&labelColor=000000&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmls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AxIDEzLjc1ODQgMS42MDAxWiIgZmlsbD0iI2ZmZiIvPgo8cGF0aCBkPSJNNCAxMkwxMiA0TDQgMTJaIiBmaWxsPSIjZmZmIi8%2BCjxwYXRoIGQ9Ik00IDEyTDEyIDQiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8L3N2Zz4K&logoColor=ffffff" alt="zread"/></a>
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.4.9",
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/pages-config.ts\" -t \"PagesConfig\" -o \"schema.json\" --no-type-check",
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
  }