@ray-js/build-plugin-ray 0.4.1-beta-1 → 0.4.4

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/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AACA,oDAA4B;AAC5B,gDAAwB;AACxB,wDAA2B;AAC3B,2CAAqC;AAErC,gBAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,cAAc,GAAG,MAAM,CAAC;AAE9B,MAAM,UAAU,GAAG,kBAAkB,CAAC;AAEtC,SAAwB,SAAS,CAAC,GAAQ;IACxC,MAAM,EACJ,OAAO,EAAE,EAAE,GAAG,EAAE,GACjB,GAAG,GAAG,CAAC;IACR,MAAM,SAAS,GAAG,cAAI,CAAC,IAAI,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC;IACjD,OAAO;QACL,IAAI,EAAE,0BAA0B;QAChC,KAAK;YACH,YAAG,CAAC,OAAO,CAAC,UAAU,EAAE,OAAO,EAAE,GAAG,CAAC,CAAC;YACtC,IAAI,CAAC,oBAAoB,EAAE,CAAC;QAC9B,CAAC;QACD,aAAa,CAAC,EAAE,MAAM,EAAE;YACtB,YAAG,CAAC,OAAO,CAAC,UAAU,EAAE,YAAY,EAAE,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YAChE,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;QAC7C,CAAC;QACD,oBAAoB;YAClB,MAAM,IAAI,GAAG,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC;YAClD,kBAAG,CAAC,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAChC,CAAC;KACF,CAAC;AACJ,CAAC;AApBD,4BAoBC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AACA,oDAA2B;AAC3B,gDAAuB;AACvB,wDAA0B;AAC1B,2CAAoC;AAEpC,gBAAM,CAAC,MAAM,EAAE,CAAA;AAEf,MAAM,cAAc,GAAG,MAAM,CAAA;AAE7B,MAAM,UAAU,GAAG,kBAAkB,CAAA;AAErC,SAAwB,SAAS,CAAC,GAAQ;IACxC,MAAM,EACJ,OAAO,EAAE,EAAE,GAAG,EAAE,GACjB,GAAG,GAAG,CAAA;IACP,MAAM,SAAS,GAAG,cAAI,CAAC,IAAI,CAAC,GAAG,EAAE,cAAc,CAAC,CAAA;IAChD,OAAO;QACL,IAAI,EAAE,0BAA0B;QAChC,KAAK;YACH,YAAG,CAAC,OAAO,CAAC,UAAU,EAAE,OAAO,EAAE,GAAG,CAAC,CAAA;YACrC,IAAI,CAAC,oBAAoB,EAAE,CAAA;QAC7B,CAAC;QACD,aAAa,CAAC,EAAE,MAAM,EAAE;YACtB,YAAG,CAAC,OAAO,CAAC,UAAU,EAAE,YAAY,EAAE,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;YAC/D,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,SAAS,CAAC,CAAA;QAC5C,CAAC;QACD,oBAAoB;YAClB,MAAM,IAAI,GAAG,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,cAAc,CAAC,CAAA;YACjD,kBAAG,CAAC,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC,CAAA;QAC/B,CAAC;KACF,CAAA;AACH,CAAC;AApBD,4BAoBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/build-plugin-ray",
3
- "version": "0.4.1-beta-1",
3
+ "version": "0.4.4",
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.4.1-beta-1",
25
+ "@ray-js/shared": "^0.4.4",
26
26
  "colors": "1.4.0",
27
27
  "fs-extra": "^10.0.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@ray-js/types": "^0.4.1-beta-1",
30
+ "@ray-js/types": "^0.4.4",
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": "d3e653fb870c81dfecff79b14d2232c086a77c5d",
39
+ "gitHead": "4017c5ba2e4e0c5280ad56668261c8390e7f5e50",
40
40
  "repository": {}
41
41
  }
@@ -1,6 +1,6 @@
1
1
  // this file generate by @ray-js/build-plugin-router.
2
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 };
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,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
3
- import location from '@ray-js/location';
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
3
+ import location from '@ray-js/location'
4
4
 
5
- export { router, location };
5
+ export { router, location }
@@ -1,10 +1,10 @@
1
1
  //@ts-nocheck
2
- import { createRouter } from '@ray-js/router-mp';
2
+ import { createRouter } from '@ray-js/router-mp'
3
3
 
4
4
  // import * as globalConfig from '@/global.config';
5
- import * as routesConfig from '@/routes.config';
5
+ import * as routesConfig from '@/routes.config'
6
6
 
7
7
  createRouter({
8
8
  routes: routesConfig.routes,
9
9
  tabBar: routesConfig.tabBar || {},
10
- });
10
+ })
@@ -4,4 +4,4 @@
4
4
  // 实际代码逻辑由模块`@ray-js/rn-transformer/routerLoader`的方法
5
5
  // `generateEntry`生成
6
6
 
7
- export default () => null;
7
+ export default () => null
@@ -1,12 +1,12 @@
1
- import { createApp } from '@ray-js/framework';
1
+ import { createApp } from '@ray-js/framework'
2
2
 
3
- import App from '@/app';
4
- import * as globalConfig from '@/global.config';
5
- import * as routesConfig from '@/routes.config';
6
- import { PAGES } from './router.config';
3
+ import App from '@/app'
4
+ import * as globalConfig from '@/global.config'
5
+ import * as routesConfig from '@/routes.config'
6
+ import { PAGES } from './router.config'
7
7
 
8
- const globalConfigDefault = globalConfig.default || {};
9
- const globalConfigTarget = globalConfig[process.env.PLATFORM] || {};
8
+ const globalConfigDefault = globalConfig.default || {}
9
+ const globalConfigTarget = globalConfig[process.env.PLATFORM] || {}
10
10
 
11
11
  createApp({
12
12
  app: App,
@@ -14,4 +14,4 @@ createApp({
14
14
  pages: PAGES,
15
15
  routes: routesConfig.routes,
16
16
  tabBar: routesConfig.tabBar || {},
17
- });
17
+ })
@@ -1,33 +1,33 @@
1
- declare module '*.less';
1
+ declare module '*.less'
2
2
 
3
3
  type RequestRes = {
4
- data: string;
5
- statusCode: number;
6
- header: Record<string, string>;
7
- cookies: Array<string>;
8
- profile: any;
9
- taskId: string;
10
- };
4
+ data: string
5
+ statusCode: number
6
+ header: Record<string, string>
7
+ cookies: Array<string>
8
+ profile: any
9
+ taskId: string
10
+ }
11
11
 
12
12
  type RequestParams = {
13
- url: string;
14
- data?: string;
15
- header?: Record<string, string>;
16
- timeout?: number;
17
- method?: string;
18
- dataType?: string;
19
- responseType?: string;
20
- enableHttp2?: boolean;
21
- enableQuic?: boolean;
22
- enableCache?: boolean;
23
- success?: (successRes: RequestRes) => void;
24
- fail?: (successRes: RequestRes) => void;
25
- complete?: (successRes: RequestRes) => void;
26
- };
13
+ url: string
14
+ data?: string
15
+ header?: Record<string, string>
16
+ timeout?: number
17
+ method?: string
18
+ dataType?: string
19
+ responseType?: string
20
+ enableHttp2?: boolean
21
+ enableQuic?: boolean
22
+ enableCache?: boolean
23
+ success?: (successRes: RequestRes) => void
24
+ fail?: (successRes: RequestRes) => void
25
+ complete?: (successRes: RequestRes) => void
26
+ }
27
27
  declare global {
28
28
  interface Window {
29
- devToolsExtension?: () => any;
29
+ devToolsExtension?: () => any
30
30
  }
31
31
  }
32
32
 
33
- export {};
33
+ export {}