Change names of built library to paper-full.js, and have dist/paper.js link to it after build.sh was run.

This commit is contained in:
Jürg Lehni 2013-06-26 19:22:38 -07:00
parent 214db84b84
commit 44cd3d4ad8
4 changed files with 14 additions and 6 deletions

View file

@ -30,6 +30,13 @@ then
mkdir ../dist/
fi
./preprocess.sh $MODE ../src/paper.js "-o '{ \"browser\": true }' -i '../src/constants.js'" ../dist/paper.js
./preprocess.sh $MODE ../src/paper.js "-o '{ \"browser\": true }' -i '../src/constants.js'" ../dist/paper-full.js
./preprocess.sh $MODE ../src/paper.js "-o '{ \"browser\": true, \"paperscript\": false }' -i '../src/constants.js'" ../dist/paper-core.js
#./preprocess.sh $MODE ../src/paper.js "-o '{ \"node\": true }' -i '../src/constants.js'" ../dist/paper-node.js
# Remove the symbolic link and create a new one to the built library now
if [ -f ../dist/paper.js ]
then
rm ../dist/paper.js
fi
ln -s paper-full.js ../dist/paper.js

View file

@ -13,5 +13,8 @@
# This script simply generates a symbolic link from dist/paper.js to src/load.js
# which loads the library from separate sources through PrePro.
rm ../dist/paper.js
if [ -f ../dist/paper.js ]
then
rm ../dist/paper.js
fi
ln -s ../src/load.js ../dist/paper.js

View file

@ -10,5 +10,5 @@
#
# All rights reserved.
../node_modules/.bin/uglifyjs ../dist/paper.js -o ../dist/paper-min.js -c unsafe=true -m -b ascii_only=true,beautify=false --comments /^!/
../node_modules/.bin/uglifyjs ../dist/paper-core.js -o ../dist/paper-core-min.js -c unsafe=true -m --comments /^!/
../node_modules/.bin/uglifyjs ../dist/paper-full.js -o ../dist/paper-full.min.js -c unsafe=true -m -b ascii_only=true,beautify=false --comments /^!/
../node_modules/.bin/uglifyjs ../dist/paper-core.js -o ../dist/paper-core.min.js -c unsafe=true -m --comments /^!/

2
dist/.gitignore vendored
View file

@ -1,5 +1,3 @@
/paper-min.js
/paper-server.js
/docs/
/serverdocs/
/paperjs.zip