OLD | NEW |
1 #!/usr/bin/env bash | 1 #!/usr/bin/env bash |
2 | 2 |
3 URL="https://github.com/jnordberg/gif.js" | 3 URL="https://github.com/jnordberg/gif.js" |
4 TMP="./dist/tmp" | 4 TMP="./dist/tmp" |
5 | 5 |
6 if [ -f ./node_modules/.bin/cjsify ]; then | 6 if [ -f ./node_modules/.bin/cjsify ]; then |
7 VERSION=`./bin/version` | 7 VERSION=`./bin/version` |
8 echo "Packaging gif.js $VERSION" | 8 echo "Packaging gif.js $VERSION" |
9 ./node_modules/.bin/cjsify \ | 9 ./node_modules/.bin/cjsify \ |
10 --export GIF \ | 10 --export GIF \ |
(...skipping 11 matching lines...) Expand all Loading... |
22 --output ./dist/gif.worker.js \ | 22 --output ./dist/gif.worker.js \ |
23 --inline-sources \ | 23 --inline-sources \ |
24 --minify \ | 24 --minify \ |
25 gif.worker.coffee | 25 gif.worker.coffee |
26 echo -e "\n// gif.worker.js $VERSION - $URL" >> ./dist/gif.worker.js | 26 echo -e "\n// gif.worker.js $VERSION - $URL" >> ./dist/gif.worker.js |
27 exit $? | 27 exit $? |
28 else | 28 else |
29 echo "Dependencies missing. Run npm install" | 29 echo "Dependencies missing. Run npm install" |
30 exit 1 | 30 exit 1 |
31 fi | 31 fi |
OLD | NEW |