@ray-js/build-plugin-ray 0.5.8-beta-1 → 0.5.10

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.8-beta-1",
3
+ "version": "0.5.10",
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.8-beta-1",
25
+ "@ray-js/shared": "^0.5.10",
26
26
  "colors": "1.4.0",
27
27
  "fs-extra": "^10.0.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@ray-js/types": "^0.5.8-beta-1",
30
+ "@ray-js/types": "^0.5.10",
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": "dbd3b62bdfcf744832f15a2aac92ac15b091d0f9",
39
+ "gitHead": "955dd59a037cbfbafd76f6f8f82d74d447e6a152",
40
40
  "repository": {}
41
41
  }
@@ -4,7 +4,7 @@
4
4
 
5
5
  实现 `import * form 'ray';` 的导出,通过 `webpack.resolve.alias` 来配置构建。
6
6
 
7
- 底层由 `@ray-js/framework` 进行实现,主要包含对应应用类型(web, wechat native tuya)执行的上下文 PageInstanceContext 来进行运行时的框架抹平完成应用的同构。
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
  ```
@@ -1,5 +1,5 @@
1
- export * from '@ray-js/framework' // 由构建器别名替换到 @ray-js/framework-mp @ray-js/framework-native
2
- import router from '@ray-js/router' // 由构建器别名替换到 @ray-js/router-mp @ray-js/router-native
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 }
@@ -1,7 +0,0 @@
1
- // this file generate by @ray-js/build-plugin-router.
2
- // do not modify this file!!!
3
- // 无实际意义,只是作为react-native构建时的入口文件
4
- // 实际代码逻辑由模块`@ray-js/rn-transformer/routerLoader`的方法
5
- // `generateEntry`生成
6
-
7
- export default () => null