Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
zouhangwithsweet committed Feb 4, 2021
2 parents 16c2d60 + bf4147d commit f01e7f9
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 12 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ title: Change Log
toc: hidden
---

### 2.5.15

`2021-02-04`

- Fix
- Replace `NODE_ENV` with `MAND_ENV` in some components

### 2.5.14

`2021-01-15`
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ title: 更新日志
toc: hidden
---

### 2.5.15

`2021-02-04`

- Fix
- 移除组件中对`NODE_ENV`的依赖

### 2.5.14

`2021-01-15`
Expand Down
4 changes: 2 additions & 2 deletions components/popup/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export default {
// popup box enter the animation after popup show
this.isPopupBoxShow = true
/* istanbul ignore if */
if (process.env.NODE_ENV === 'test') {
if (process.env.MAND_ENV === 'test') {
this.$_onPopupTransitionStart()
this.$_onPopupTransitionEnd()
}
Expand All @@ -158,7 +158,7 @@ export default {
this.preventScroll && this.$_preventScroll(false)
this.$emit('input', false)
/* istanbul ignore if */
if (process.env.NODE_ENV === 'test') {
if (process.env.MAND_ENV === 'test') {
this.$_onPopupTransitionStart()
this.$_onPopupTransitionEnd()
}
Expand Down
4 changes: 2 additions & 2 deletions components/swiper/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -547,8 +547,8 @@ export default {
dragState.startTime = new Date()
dragState.startLeft = point.pageX
dragState.startTop = point.pageY
dragState.itemWidth = process.env.NODE_ENV !== 'test' ? element.offsetWidth : 100
dragState.itemHeight = process.env.NODE_ENV !== 'test' ? element.offsetHeight : 100
dragState.itemWidth = process.env.MAND_ENV !== 'test' ? element.offsetWidth : 100
dragState.itemHeight = process.env.MAND_ENV !== 'test' ? element.offsetHeight : 100
},
$_doOnTouchMove(event) {
Expand Down
2 changes: 1 addition & 1 deletion components/water-mark/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default {
data() {
return {
repetition: process.env.NODE_ENV === 'test' ? 2 : 50,
repetition: process.env.MAND_ENV === 'test' ? 2 : 50,
}
},
Expand Down
3 changes: 2 additions & 1 deletion config/dev.env.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ const merge = require('webpack-merge')
const prodEnv = require('./prod.env')

module.exports = merge(prodEnv, {
NODE_ENV: '"development"'
NODE_ENV: '"development"',
MAND_ENV: '"development"',
})
3 changes: 2 additions & 1 deletion config/prod.env.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
'use strict'
module.exports = {
NODE_ENV: '"production"'
NODE_ENV: '"production"',
MAND_ENV: '"production"',
}
3 changes: 2 additions & 1 deletion config/test.env.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ const merge = require('webpack-merge')
const devEnv = require('./dev.env')

module.exports = merge(devEnv, {
NODE_ENV: '"testing"'
NODE_ENV: '"testing"',
MAND_ENV: '"testing"',
})
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mand-mobile",
"version": "2.5.14",
"version": "2.5.15",
"description": "A Vue.js 2.0 Mobile UI Toolkit",
"homepage": "https://didi.github.io/mand-mobile",
"main": "lib/mand-mobile.umd.js",
Expand Down Expand Up @@ -48,9 +48,9 @@
"build:webpack:mand-mobile": "cross-env NODE_ENV=production node build/webpack/build-mand-mobile",
"build:webpack:components": "cross-env NODE_ENV=production gulp build --gulpfile gulpfile.js && node build/webpack/build-style-entry",
"codecov": "codecov",
"test": "jest --no-cache --runInBand --verbose --silent",
"test:lib": "TEST_TYPE=lib jest --no-cache --runInBand --verbose --silent",
"test:lib-vw": "TEST_TYPE=lib-vw jest --no-cache --runInBand --verbose --silent"
"test": "MAND_ENV=test jest --no-cache --runInBand --verbose --silent",
"test:lib": "MAND_ENV=test TEST_TYPE=lib jest --no-cache --runInBand --verbose --silent",
"test:lib-vw": "MAND_ENV=test TEST_TYPE=lib-vw jest --no-cache --runInBand --verbose --silent"
},
"license": "Apache",
"config": {
Expand Down

0 comments on commit f01e7f9

Please sign in to comment.