@dcloudio/uni-cli-shared
Advanced tools
Comparing version 0.2.950 to 0.2.951
@@ -13,2 +13,3 @@ /** | ||
let appJsonUsingComponents = Object.create(null) | ||
let componentSpecialMethods = Object.create(null) | ||
@@ -183,2 +184,17 @@ function updateJsonFile (name, jsonStr) { | ||
function updateSpecialMethods (name, specialMethods) { | ||
if (specialMethods.length) { | ||
componentSpecialMethods[name] = specialMethods | ||
} else { | ||
delete componentSpecialMethods[name] | ||
} | ||
} | ||
function getSpecialMethods (name) { | ||
if (!name) { | ||
return componentSpecialMethods | ||
} | ||
return componentSpecialMethods[name] || [] | ||
} | ||
module.exports = { | ||
@@ -192,2 +208,3 @@ getComponentSet, | ||
updateComponentJson, | ||
updateSpecialMethods, | ||
updateUsingComponents, | ||
@@ -198,3 +215,4 @@ updateUsingGlobalComponents, | ||
updateGenericComponents, | ||
getChangedJsonFileMap | ||
getChangedJsonFileMap, | ||
getSpecialMethods | ||
} |
@@ -38,2 +38,3 @@ const tags = require('./tags') | ||
getPlatforms, | ||
getPlatformGlobal, | ||
getPlatformScss, | ||
@@ -83,2 +84,3 @@ runByHBuilderX, | ||
getPlatformVue, | ||
getPlatformGlobal, | ||
getPlatformCssVars, | ||
@@ -85,0 +87,0 @@ getPlatformCssnano, |
@@ -85,3 +85,3 @@ const fs = require('fs') | ||
} | ||
if ( | ||
@@ -88,0 +88,0 @@ process.env.UNI_PLATFORM === 'app-plus' && |
@@ -14,2 +14,3 @@ const fs = require('fs') | ||
'h5': { | ||
global: '', | ||
exts: false, | ||
@@ -25,2 +26,3 @@ vue: '@dcloudio/vue-cli-plugin-uni/packages/h5-vue', | ||
'app-plus': { | ||
global: 'wx', | ||
exts: { | ||
@@ -40,2 +42,3 @@ style: '.wxss', | ||
'mp-weixin': { | ||
global: 'wx', | ||
exts: { | ||
@@ -56,2 +59,3 @@ style: '.wxss', | ||
'mp-baidu': { | ||
global: 'swan', | ||
exts: { | ||
@@ -72,2 +76,3 @@ style: '.css', | ||
'mp-alipay': { | ||
global: 'my', | ||
exts: { | ||
@@ -88,2 +93,3 @@ style: '.acss', | ||
'mp-toutiao': { | ||
global: 'tt', | ||
exts: { | ||
@@ -184,2 +190,5 @@ style: '.ttss', | ||
}, | ||
getPlatformGlobal () { | ||
return platform.global | ||
}, | ||
getPlatformExts () { | ||
@@ -186,0 +195,0 @@ return platform.exts |
{ | ||
"name": "@dcloudio/uni-cli-shared", | ||
"version": "0.2.950", | ||
"version": "0.2.951", | ||
"description": "uni-cli-shared", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38791
941