2017-12-15 18:56:14 +00:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
mkdir -p .browser
|
|
|
|
|
2021-05-08 12:39:21 +00:00
|
|
|
echo
|
|
|
|
echo Preparing browser tests:
|
|
|
|
|
2017-12-15 18:56:14 +00:00
|
|
|
find spec -type f -name '*.spec.js' | \
|
|
|
|
xargs -I {} sh -c \
|
2021-05-08 12:39:21 +00:00
|
|
|
'export f="{}"; echo $f; browserify $f -t require-globify -t brfs -x ajv -u buffer -o $(echo $f | sed -e "s/spec/.browser/");'
|