File tree Expand file tree Collapse file tree 3 files changed +15
-15
lines changed
packages/cli/core/plugins/template/directives Expand file tree Collapse file tree 3 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 1
1
language : node_js
2
2
3
3
node_js :
4
- - " 8 "
4
+ - ' 10 '
5
5
6
6
matrix :
7
7
include :
@@ -11,19 +11,19 @@ matrix:
11
11
sudo : false
12
12
13
13
before_install :
14
- - if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then sudo apt-get -qq update ; fi
15
- - if [[ "$TRAVIS_OS_NAME" == "linux" && ! $(which expect) ]] ; then sudo apt-get install -y expect ; fi
16
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then stty cols 80 ; fi
17
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then brew update ; fi
18
- - if [[ "$TRAVIS_OS_NAME" == "osx" && ! $(which expect) ]] ; then brew install expect ; fi
14
+ - if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then sudo apt-get -qq update ; fi
15
+ - if [[ "$TRAVIS_OS_NAME" == "linux" && ! $(which expect) ]] ; then sudo apt-get install -y expect ; fi
16
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then stty cols 80 ; fi
17
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then brew update ; fi
18
+ - if [[ "$TRAVIS_OS_NAME" == "osx" && ! $(which expect) ]] ; then brew install expect ; fi
19
19
20
20
install :
21
- - " npm install"
22
- - " npm run bootstrap"
21
+ - ' npm install'
22
+ - ' npm run bootstrap'
23
23
24
24
script :
25
- - " npm run test"
26
- - " npm run bootstrap:prod"
27
- - " npm run test:build"
28
-
29
- after_script : " npm install coveralls && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
25
+ - ' npm run test'
26
+ - ' npm run bootstrap:prod'
27
+ - ' npm run test:build'
28
+
29
+ after_script : ' npm install coveralls && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage'
Original file line number Diff line number Diff line change 39
39
"babel-preset-stage-1" : " ^6.16.0" ,
40
40
"chai" : " ^4.1.2" ,
41
41
"chalk" : " ^1.1.3" ,
42
+ "chokidar" : " ^3.4.0" ,
42
43
"commitizen" : " ^3.1.1" ,
43
44
"cz-conventional-changelog" : " ^2.1.0" ,
44
45
"enquirer" : " ^2.3.0" ,
Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ exports = module.exports = function() {
198
198
* </template>
199
199
*/
200
200
const eventCallee = parsedEvent . parsed . callee ;
201
- if ( eventCallee && eventCallee . name ) {
201
+ if ( ! modifiers . wxs && eventCallee && eventCallee . name ) {
202
202
const calleeChunks = eventCallee . name . split ( '.' ) ;
203
203
const wxsBlock = ctx . sfc . wxs ;
204
204
@@ -209,7 +209,6 @@ exports = module.exports = function() {
209
209
wxsBlock . find ( item => item . attrs . module === calleeChunks [ 0 ] )
210
210
) {
211
211
modifiers . wxs = true ;
212
-
213
212
this . hookUnique (
214
213
'error-handler' ,
215
214
'template' ,
You can’t perform that action at this time.
0 commit comments