@ray-js/build-plugin-router 0.5.8-beta-1 → 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/lib/index.js +1 -4
- package/package.json +5 -5
package/lib/index.js
CHANGED
|
@@ -47,7 +47,7 @@ function PluginRouter(api) {
|
|
|
47
47
|
const routesConfig = api.requireJSFile(routesConfigFile);
|
|
48
48
|
const globalConfig = globalConfigFile ? api.requireJSFile(globalConfigFile, '*') : {};
|
|
49
49
|
// TODO: 小程序端统一生成 app.config 需要过滤 targets 的描述页面对象
|
|
50
|
-
if (!['tuya', 'wechat'
|
|
50
|
+
if (!['tuya', 'wechat'].includes(target)) {
|
|
51
51
|
return this.generateWebRoutes(routesConfig);
|
|
52
52
|
}
|
|
53
53
|
const _target = lodash_1.default.capitalize(target);
|
|
@@ -112,9 +112,6 @@ function PluginRouter(api) {
|
|
|
112
112
|
});
|
|
113
113
|
return config;
|
|
114
114
|
},
|
|
115
|
-
getThingAppConfigData(routesConfig, globalConfig) {
|
|
116
|
-
return this.getTuyaAppConfigData(routesConfig, globalConfig);
|
|
117
|
-
},
|
|
118
115
|
getTuyaAppConfigData(routesConfig, globalConfig) {
|
|
119
116
|
const { routes, tabBar } = routesConfig;
|
|
120
117
|
const pages = routes.map((r) => r.path.replace(/^\//, ''));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ray-js/build-plugin-router",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.9",
|
|
4
4
|
"description": "Ray build plugin for router",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ray"
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"watch": "tsc -p ./tsconfig.build.json --watch"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@ray-js/plugin-utils": "^0.5.
|
|
25
|
-
"@ray-js/shared": "^0.5.
|
|
24
|
+
"@ray-js/plugin-utils": "^0.5.9",
|
|
25
|
+
"@ray-js/shared": "^0.5.9",
|
|
26
26
|
"chokidar": "^3.5.2",
|
|
27
27
|
"colors": "1.4.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@ray-js/types": "^0.5.
|
|
30
|
+
"@ray-js/types": "^0.5.9"
|
|
31
31
|
},
|
|
32
32
|
"maintainers": [
|
|
33
33
|
{
|
|
@@ -35,6 +35,6 @@
|
|
|
35
35
|
"email": "tuyafe@tuya.com"
|
|
36
36
|
}
|
|
37
37
|
],
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "8618821f05c00f4987138f5b523ae6261e32c9a6",
|
|
39
39
|
"repository": {}
|
|
40
40
|
}
|