OLD | NEW |
| (Empty) |
1 #!/usr/bin/env bash | |
2 | |
3 URL="https://github.com/jnordberg/gif.js" | |
4 TMP="./dist/tmp" | |
5 | |
6 if [ -f ./node_modules/.bin/cjsify ]; then | |
7 VERSION=`./bin/version` | |
8 echo "Packaging gif.js $VERSION" | |
9 ./node_modules/.bin/cjsify \ | |
10 --export GIF \ | |
11 --root ./src/ \ | |
12 --source-map ./dist/gif.js.map \ | |
13 --output ./dist/gif.js \ | |
14 --inline-sources \ | |
15 --minify \ | |
16 gif.coffee | |
17 echo -e "\n// gif.js $VERSION - $URL" >> ./dist/gif.js | |
18 ./node_modules/.bin/cjsify \ | |
19 --root ./src/ \ | |
20 --no-node \ | |
21 --source-map ./dist/gif.worker.js.map \ | |
22 --output ./dist/gif.worker.js \ | |
23 --inline-sources \ | |
24 --minify \ | |
25 gif.worker.coffee | |
26 echo -e "\n// gif.worker.js $VERSION - $URL" >> ./dist/gif.worker.js | |
27 exit $? | |
28 else | |
29 echo "Dependencies missing. Run npm install" | |
30 exit 1 | |
31 fi | |
OLD | NEW |