@lcap/builder
Advanced tools
Comparing version 1.1.0-beta.4 to 1.1.0-beta.5
@@ -61,4 +61,4 @@ "use strict"; | ||
concept: 'FrontendLibrary', | ||
name: 'mobile', | ||
type: 'mobile', | ||
name: 'h5', | ||
type: 'h5', | ||
frameworkKind, | ||
@@ -69,7 +69,7 @@ viewComponents: [], | ||
viewComponents.forEach((c) => { | ||
const typeKind = ['both', 'pc', 'mobile'].indexOf(c.type) !== -1 ? c.type : 'pc'; | ||
const typeKind = ['both', 'pc', 'h5'].indexOf(c.type) !== -1 ? c.type : 'pc'; | ||
if (typeKind === 'pc') { | ||
pcFeLibrary.viewComponents.push(c); | ||
} | ||
else if (typeKind === 'mobile') { | ||
else if (typeKind === 'h5') { | ||
mobileFeLibrary.viewComponents.push(c); | ||
@@ -83,7 +83,7 @@ } | ||
logics.forEach((c) => { | ||
const typeKind = ['both', 'pc', 'mobile'].indexOf(c.type) !== -1 ? c.type : 'pc'; | ||
const typeKind = ['both', 'pc', 'h5'].indexOf(c.type) !== -1 ? c.type : 'pc'; | ||
if (typeKind === 'pc') { | ||
pcFeLibrary.logics.push(c); | ||
} | ||
else if (typeKind === 'mobile') { | ||
else if (typeKind === 'h5') { | ||
mobileFeLibrary.logics.push(c); | ||
@@ -90,0 +90,0 @@ } |
{ | ||
"name": "@lcap/builder", | ||
"version": "1.1.0-beta.4", | ||
"version": "1.1.0-beta.5", | ||
"description": "lcap builder utils", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
153944