Skip to content

Commit

Permalink
New dist files *with* updated dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
diegocr committed Feb 18, 2014
1 parent c9c9c7b commit 6ce4327
Show file tree
Hide file tree
Showing 14 changed files with 4,041 additions and 4,183 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@
[submodule "libs/zpipe"]
path = libs/zpipe
url = https://github.com/richardassar/zpipe.git
[submodule "libs/adler32cs.js"]
path = libs/adler32cs.js
url = https://github.com/chick307/adler32cs.js.git
18 changes: 15 additions & 3 deletions uglify.sh → build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
#!/bin/sh
# I'm Ugly. Improve me, please.
#
# Build script for jsPDF
# (c) 2014 Diego Casorran
#
# NOTE: Still relying on wak's wscript.py
# to generate dist/jspdf.source.js
#
# WARNING: I'm Ugly. Improve me, please.
#

output=dist/jspdf.min.js
options="-m -c --wrap --stats"
Expand All @@ -8,9 +16,13 @@ files="jspdf.js jspdf.plugin*js"
commit=`git rev-parse HEAD`
build=`date +%Y-%m-%dT%H:%M`

wak.py
uglifyjs ${options} -o ${output} ${libs} ${files}
# Update submodules
git submodule foreach git pull origin master

# Build dist files
wak.py && uglifyjs ${options} -o ${output} ${libs} ${files}

# Pretend license information to minimized file
for fn in ${files} ${libs}; do
awk '/^\/\*/,/\*\//' $fn \
| sed -n -e '1,/\*\//p' \
Expand Down
27 changes: 14 additions & 13 deletions dist/jspdf.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 6ce4327

Please sign in to comment.