4127e3de64
borrowed build scritps etc from promnesia
23 lines
293 B
Bash
Executable file
23 lines
293 B
Bash
Executable file
#!/bin/bash
|
|
set -eux
|
|
|
|
cd "$(dirname "$0")"
|
|
cd ../.. # git root
|
|
|
|
cd extension
|
|
|
|
npm install
|
|
|
|
FAILED=0
|
|
|
|
npm run flow || FAILED=1
|
|
npm run eslint || FAILED=1
|
|
# TODO later
|
|
#npm run test || FAILED=1
|
|
|
|
for browser in 'firefox' 'chrome'; do
|
|
./build --target "$browser" "$@"
|
|
done
|
|
|
|
exit "$FAILED"
|