mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
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:
parent
214db84b84
commit
44cd3d4ad8
4 changed files with 14 additions and 6 deletions
|
@ -30,6 +30,13 @@ then
|
||||||
mkdir ../dist/
|
mkdir ../dist/
|
||||||
fi
|
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 '{ \"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
|
#./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
|
||||||
|
|
|
@ -13,5 +13,8 @@
|
||||||
# This script simply generates a symbolic link from dist/paper.js to src/load.js
|
# This script simply generates a symbolic link from dist/paper.js to src/load.js
|
||||||
# which loads the library from separate sources through PrePro.
|
# 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
|
ln -s ../src/load.js ../dist/paper.js
|
||||||
|
|
|
@ -10,5 +10,5 @@
|
||||||
#
|
#
|
||||||
# All rights reserved.
|
# 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-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 /^!/
|
../node_modules/.bin/uglifyjs ../dist/paper-core.js -o ../dist/paper-core.min.js -c unsafe=true -m --comments /^!/
|
||||||
|
|
2
dist/.gitignore
vendored
2
dist/.gitignore
vendored
|
@ -1,5 +1,3 @@
|
||||||
/paper-min.js
|
|
||||||
/paper-server.js
|
|
||||||
/docs/
|
/docs/
|
||||||
/serverdocs/
|
/serverdocs/
|
||||||
/paperjs.zip
|
/paperjs.zip
|
||||||
|
|
Loading…
Reference in a new issue