mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-08 13:52:06 -05:00
24 lines
470 B
Bash
24 lines
470 B
Bash
|
# Usage:
|
||
|
# build.sh MODE
|
||
|
#
|
||
|
# MODE:
|
||
|
# commented Preprocessed but still formated and commented
|
||
|
# stripped Formated but without comments (default)
|
||
|
# compressed No comments and no whitespaces
|
||
|
# compiled Uses Google Closure Compiler to reduce file size even more
|
||
|
|
||
|
if [ $# -eq 0 ]
|
||
|
then
|
||
|
MODE="stripped"
|
||
|
else
|
||
|
MODE=$1
|
||
|
fi
|
||
|
|
||
|
# Create the out folder if it does not exist yet.
|
||
|
if [ ! -d ../out/ ]
|
||
|
then
|
||
|
mkdir ../out/
|
||
|
fi
|
||
|
|
||
|
./preprocess.sh ../src/build.js ../out/paper.js "" $MODE
|