mirror of
https://github.com/wu736139669/Monkey-Test.git
synced 2026-08-05 05:55:46 +00:00
15 lines
382 B
Bash
Executable File
15 lines
382 B
Bash
Executable File
#!/bin/sh
|
|
type browserify >/dev/null 2>&1 || {
|
|
echo >&2 "error: browserify not found in path"
|
|
echo >&2 " try npm install -g browserify"; exit 1;
|
|
}
|
|
echo "building before creating bundle"
|
|
./build.sh
|
|
echo "creating defs_bundle.js via browserify"
|
|
rm -rf browser
|
|
mkdir browser
|
|
cp index.html browser/
|
|
cd es5
|
|
browserify -r "./defs-main" > ../browser/defs_bundle.js
|
|
echo "done bundle"
|