mali-applet-ui 1.1.46 → 1.1.48

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/env/index.d.ts CHANGED
@@ -8,7 +8,7 @@ export function initEnv(dirPath: string, defaultEnv: Record<string, string>): Re
8
8
  export function initManifestConfig(dirPath: string, manifestJson: any): void
9
9
  export function initManifestEnv(dirPath: string, manifestJson: any): Record<string, string>
10
10
  export function uploadWxMiniprogram(version: string): void
11
- export function getSCSSAdditionalData(): string
11
+ export function getSCSSAdditionalData(envConfig?: an): string
12
12
  export function sendMail(options: {
13
13
  receivedBy: string | string[]
14
14
  subject: string
package/env/index.js CHANGED
@@ -89,16 +89,17 @@ function parseJSONFile (dirPath, name) {
89
89
  return {}
90
90
  }
91
91
 
92
- function getSCSSAdditionalData () {
92
+ function getSCSSAdditionalData (conf) {
93
+ const envConfig = conf || process.env
93
94
  const rest = [
94
95
  '@import "./src/uni.scss";',
95
96
  `@import "${pack.name}/style/variable.scss";`,
96
- `$global-static-url: '${process.env.VUE_APP_PUBLIC_RESOURCES_URL}';`
97
+ `$global-static-url: '${envConfig.VUE_APP_PUBLIC_RESOURCES_URL}';`
97
98
  ]
98
- for (const name in process.env) {
99
+ for (const name in envConfig) {
99
100
  if (/^VUE_SCSS_DEFINE_/.test(name)) {
100
101
  const varName = name.replace('VUE_SCSS_DEFINE_', '').replace(/_/g, '-').toLowerCase()
101
- rest.push(`$${varName}: ${process.env[name]};`)
102
+ rest.push(`$${varName}: ${envConfig[name]};`)
102
103
  }
103
104
  }
104
105
  return rest.join('\n')
@@ -305,7 +306,7 @@ function sendQyWechatMsg (webhook, opts) {
305
306
 
306
307
  function getBuildSuccessMsg (description) {
307
308
  return `
308
- # <font color="info">${[getCustomName(process.env.VUE_APP_CUSTOM_MODULE), description, '-', getEnvName(process.env.VUE_APP_MODE), '已更新'].join('')}</font>
309
+ # <font color="info">${[getCustomName(process.env.VUE_APP_CUSTOM_MODULE), description, `(${getPlatformName(process.env.VUE_APP_PLATFORM_NAME)}小程序)`, '-', getEnvName(process.env.VUE_APP_MODE), '体验版已更新'].join('')}</font>
309
310
  >> 构建时间:<font color="comment">${XEUtils.toDateString(XEUtils.toStringDate(process.env.VUE_APP_PUBLISH_DATE, 'yyyyMMddHHmmss'), 'yyyy-MM-dd HH:mm:ss')}</font>
310
311
  <font color="comment">-自动化发版</font>`
311
312
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "1.1.46",
3
+ "version": "1.1.48",
4
4
  "description": "码里UI-小程序组件库(vue2)",
5
5
  "files": [
6
6
  "lib",