@ray-js/build-plugin-ray 0.4.1-beta-1 → 0.4.2
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 +1 -1
- package/package.json +4 -4
- package/templates/index.native.ts +4 -4
- package/templates/index.ts +4 -4
- package/templates/main.mini.tsx +3 -3
- package/templates/main.native.tsx +1 -1
- package/templates/main.tsx +8 -8
- package/typings/index.d.ts +24 -24
package/lib/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AACA,
|
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.
|
3
|
+
"version": "0.4.2",
|
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.
|
25
|
+
"@ray-js/shared": "^0.4.2",
|
26
26
|
"colors": "1.4.0",
|
27
27
|
"fs-extra": "^10.0.0"
|
28
28
|
},
|
29
29
|
"devDependencies": {
|
30
|
-
"@ray-js/types": "^0.4.
|
30
|
+
"@ray-js/types": "^0.4.2",
|
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": "6b834e4415b185ac80daf96e44003db277fcc50b",
|
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'
|
5
|
-
export * from '@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 }
|
package/templates/index.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
export * from '@ray-js/framework'
|
2
|
-
import router from '@ray-js/router'
|
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 }
|
package/templates/main.mini.tsx
CHANGED
@@ -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
|
+
})
|
package/templates/main.tsx
CHANGED
@@ -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
|
+
})
|
package/typings/index.d.ts
CHANGED
@@ -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 {}
|