@ray-js/build-plugin-ray 0.5.7-beta-2 → 0.5.9
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/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/build-plugin-ray",
|
3
|
-
"version": "0.5.
|
3
|
+
"version": "0.5.9",
|
4
4
|
"description": "Ray build plugin for ray/framework",
|
5
5
|
"keywords": [
|
6
6
|
"ray"
|
@@ -22,12 +22,12 @@
|
|
22
22
|
"watch": "tsc -p ./tsconfig.build.json --watch"
|
23
23
|
},
|
24
24
|
"dependencies": {
|
25
|
-
"@ray-js/shared": "^0.5.
|
25
|
+
"@ray-js/shared": "^0.5.9",
|
26
26
|
"colors": "1.4.0",
|
27
27
|
"fs-extra": "^10.0.0"
|
28
28
|
},
|
29
29
|
"devDependencies": {
|
30
|
-
"@ray-js/types": "^0.5.
|
30
|
+
"@ray-js/types": "^0.5.9",
|
31
31
|
"@types/fs-extra": "^9.0.13"
|
32
32
|
},
|
33
33
|
"maintainers": [
|
@@ -36,6 +36,6 @@
|
|
36
36
|
"email": "tuyafe@tuya.com"
|
37
37
|
}
|
38
38
|
],
|
39
|
-
"gitHead": "
|
39
|
+
"gitHead": "8618821f05c00f4987138f5b523ae6261e32c9a6",
|
40
40
|
"repository": {}
|
41
41
|
}
|
package/templates/README.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
实现 `import * form 'ray';` 的导出,通过 `webpack.resolve.alias` 来配置构建。
|
6
6
|
|
7
|
-
底层由 `@ray-js/framework` 进行实现,主要包含对应应用类型(web, wechat
|
7
|
+
底层由 `@ray-js/framework` 进行实现,主要包含对应应用类型(web, wechat tuya)执行的上下文 PageInstanceContext 来进行运行时的框架抹平完成应用的同构。
|
8
8
|
|
9
9
|
受限于小程序厂商的能力,尽量在此基础上,以 web 标准开发进行抹平,业务开发也尽可能的保持面向 WEB 开发的心智。
|
10
10
|
|
@@ -12,10 +12,8 @@ build-plugin-ray/template 目录说明
|
|
12
12
|
|
13
13
|
```
|
14
14
|
template
|
15
|
-
├── index.native.ts # 构建RN时,导入的模块 `import * form 'ray';`
|
16
15
|
├── index.ts # 构建web、小程序时,导入的模块 `import * form 'ray';`
|
17
16
|
├── main.mini.tsx # 小程序(tuya、wechat等)构建入口文件
|
18
|
-
├── main.native.tsx # RN构建入口文件
|
19
17
|
├── main.tsx # web构建入口文件
|
20
18
|
└── README.md
|
21
19
|
```
|
package/templates/index.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
export * from '@ray-js/framework' // 由构建器别名替换到 @ray-js/framework-mp
|
2
|
-
import router from '@ray-js/router' // 由构建器别名替换到 @ray-js/router-mp
|
1
|
+
export * from '@ray-js/framework' // 由构建器别名替换到 @ray-js/framework-mp
|
2
|
+
import router from '@ray-js/router' // 由构建器别名替换到 @ray-js/router-mp
|
3
3
|
import location from '@ray-js/location'
|
4
4
|
|
5
5
|
export { router, location }
|
@@ -1,6 +0,0 @@
|
|
1
|
-
// this file generate by @ray-js/build-plugin-router.
|
2
|
-
// do not modify this file!!!
|
3
|
-
import location from '@ray-js/location-native'
|
4
|
-
import router from '@ray-js/router-native' // 由构建器别名替换到 @ray-js/router-mp @ray-js/router-native
|
5
|
-
export * from '@ray-js/framework-native' // 由构建器别名替换到 @ray-js/framework-mp @ray-js/framework-native
|
6
|
-
export { router, location }
|