This repository was archived by the owner on Dec 30, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +15
-10
lines changed Expand file tree Collapse file tree 3 files changed +15
-10
lines changed Original file line number Diff line number Diff line change 6565 - run :
6666 name : End-2-End tests
6767 command : |
68- yarn run build
69- (
70- cd examples/e-commerce
71- yarn build
72- )
68+ yarn examples:build e-commerce
7369 yarn run test:e2e:saucelabs
7470
7571 shipjs_trigger :
Original file line number Diff line number Diff line change 77# go into directory of script
88cd $( dirname ` which $0 ` )
99
10- for dir in ./* ; do
10+
11+ function build_example {
12+ dir=$1
1113 if [ -d " $dir " ]; then
1214 name=$( basename " $dir " )
1315 echo " building example: $name "
@@ -22,6 +24,14 @@ for dir in ./* ; do
2224 fi
2325 cd ..
2426 fi
25- done
27+ }
28+
29+ if [ $# -eq 0 ]; then
30+ for dir in ./* ; do
31+ build_example $dir
32+ done
33+ else
34+ build_example $1
35+ fi
2636
2737echo " done building examples 🙌"
Original file line number Diff line number Diff line change 302302 <div
303303 slot-scope =" {
304304 currentRefinement,
305- nbPages,
306305 pages,
307306 isFirstPage,
308307 isLastPage,
@@ -515,8 +514,8 @@ export default {
515514 formatNumber,
516515 toValue (value , range ) {
517516 return [
518- value .min !== null ? value .min : range .min ,
519- value .max !== null ? value .max : range .max ,
517+ typeof value .min === ' number ' ? value .min : range .min ,
518+ typeof value .max === ' number ' ? value .max : range .max ,
520519 ];
521520 },
522521 getSelectedHitsPerPageValue () {
You can’t perform that action at this time.
0 commit comments