@ray-js/api 0.3.30 → 0.4.1-beta-1
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 +0 -58
- package/package.json +9 -9
package/README.md
CHANGED
@@ -1,58 +0,0 @@
|
|
1
|
-
# API 开放规则
|
2
|
-
|
3
|
-
- 开放:文档平台能搜索到,同时 npm 包露出
|
4
|
-
- 废弃:文档平台能搜索到,同时 npm 包露出,但提示方法已废弃
|
5
|
-
- 不开放:文档平台搜索不到,但 npm 包露出
|
6
|
-
- 废弃:文档平台搜索不到,npm 包不露出
|
7
|
-
|
8
|
-
[开放规则配置文件](scripts/config.js)
|
9
|
-
|
10
|
-
# API 项目编译
|
11
|
-
|
12
|
-
使用 `@ray-js/builder-component` 组件构建器,将文件按运行时拆分为多文件。
|
13
|
-
|
14
|
-
### API 分组数据来自[TTT 开放文档仓库](https://registry.code.tuya-inc.top/godzilla/minituya/-/blob/release/oss/config/api-config.json)对应本项目中的文件 `scripts/api-group-config`
|
15
|
-
|
16
|
-
### 接口元数据来自[TTT 接口](https://registry.code.tuya-inc.top/ttt/kit-meta-data.git)
|
17
|
-
|
18
|
-
### TODO
|
19
|
-
|
20
|
-
- 现状:如 index.ts 会被编译成 index.{.web|.wechat|.tuya|.android|.ios|}.js 等 6 个文件
|
21
|
-
- 期望:仅指定特定端文件时才生成特定端的文件,如 index.ts,只编译成 index.js、 index.tuya.ts 只编译成 index.tuya.js
|
22
|
-
|
23
|
-
## Examples
|
24
|
-
|
25
|
-
### 全平台转换
|
26
|
-
|
27
|
-
input:
|
28
|
-
|
29
|
-
```
|
30
|
-
src/index.ts
|
31
|
-
```
|
32
|
-
|
33
|
-
output:
|
34
|
-
|
35
|
-
```
|
36
|
-
index.web.js
|
37
|
-
index.wechat.js
|
38
|
-
index.native.js
|
39
|
-
index.js
|
40
|
-
```
|
41
|
-
|
42
|
-
### 按需平台
|
43
|
-
|
44
|
-
input:
|
45
|
-
|
46
|
-
```
|
47
|
-
src/index.ts
|
48
|
-
src/index.wechat.ts
|
49
|
-
```
|
50
|
-
|
51
|
-
output:
|
52
|
-
|
53
|
-
```
|
54
|
-
index.web.js
|
55
|
-
index.wechat.js # 原文件转换
|
56
|
-
index.native.js
|
57
|
-
index.js
|
58
|
-
```
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/api",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.4.1-beta-1",
|
4
4
|
"description": "Ray universal api",
|
5
5
|
"keywords": [
|
6
6
|
"ray"
|
@@ -26,12 +26,12 @@
|
|
26
26
|
"build:kit:api": "node scripts/api-creator.mjs"
|
27
27
|
},
|
28
28
|
"dependencies": {
|
29
|
-
"@ray-js/framework": "^0.
|
30
|
-
"@ray-js/framework-native": "^0.
|
31
|
-
"@ray-js/ray-panel-notification": "^0.
|
32
|
-
"@ray-js/router": "^0.
|
33
|
-
"@ray-js/router-native": "^0.
|
34
|
-
"@ray-js/runtime-native": "^0.
|
29
|
+
"@ray-js/framework": "^0.4.1-beta-1",
|
30
|
+
"@ray-js/framework-native": "^0.4.1-beta-1",
|
31
|
+
"@ray-js/ray-panel-notification": "^0.4.1-beta-1",
|
32
|
+
"@ray-js/router": "^0.4.1-beta-1",
|
33
|
+
"@ray-js/router-native": "^0.4.1-beta-1",
|
34
|
+
"@ray-js/runtime-native": "^0.4.1-beta-1",
|
35
35
|
"@tuya-miniapp/base-kit": "^2.1.2",
|
36
36
|
"@tuya-miniapp/device-kit": "^2.1.6",
|
37
37
|
"@tuya-miniapp/mini-kit": "^2.3.7",
|
@@ -39,7 +39,7 @@
|
|
39
39
|
"react-native": "0.59.10"
|
40
40
|
},
|
41
41
|
"devDependencies": {
|
42
|
-
"@ray-js/cli": "^0.
|
42
|
+
"@ray-js/cli": "^0.4.1-beta-1",
|
43
43
|
"art-template": "^4.13.2",
|
44
44
|
"fs-extra": "^10.1.0",
|
45
45
|
"miniprogram-api-typings": "^3.4.3",
|
@@ -51,6 +51,6 @@
|
|
51
51
|
"email": "tuyafe@tuya.com"
|
52
52
|
}
|
53
53
|
],
|
54
|
-
"gitHead": "
|
54
|
+
"gitHead": "d3e653fb870c81dfecff79b14d2232c086a77c5d",
|
55
55
|
"repository": {}
|
56
56
|
}
|