1
0
mirror of https://github.com/nttgin/BGPalerter.git synced 2024-05-19 06:50:08 +00:00
Files
nttgin-BGPalerter/build.sh

24 lines
649 B
Bash
Raw Normal View History

#!/bin/bash
rm -rf bin
mkdir bin
2020-05-26 19:04:11 +02:00
rm -rf build
mkdir build
npm install
npm run babel . -- --ignore node_modules --out-dir build
2020-05-26 19:04:11 +02:00
cp package.json build/package.json
2020-05-26 19:04:11 +02:00
./node_modules/.bin/pkg ./build/package.json --targets node12-win-x64 --output bin/bgpalerter-win-x64 --loglevel=error
2020-05-26 19:04:11 +02:00
./node_modules/.bin/pkg ./build/package.json --targets node12-linux-x64 --output bin/bgpalerter-linux-x64 --loglevel=error
2020-05-26 19:04:11 +02:00
./node_modules/.bin/pkg ./build/package.json --targets node12-macos-x64 --output bin/bgpalerter-macos-x64 --loglevel=error
2020-05-26 19:04:11 +02:00
echo "--> BGPalerter compiled in bin/ (ignore the warnings about files that cannot be resolved)."
rm -rf build