File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 7
7
8
8
output=dist/jspdf.min.js
9
9
options=" -m -c --wrap --stats"
10
- version=" ` python -c ' import time;t=time.gmtime(time.time());print("1.%d.%d" % (t[0] - 2014, t[7])) ' ` "
10
+ version=" $( node -p -e " require('./package.json').version " ) "
11
11
npm_libs=" node_modules/cf-blob.js/Blob.js node_modules/filesaver.js/FileSaver.js node_modules/adler32cs/adler32cs.js"
12
12
libs=" ${npm_libs} ` find libs/* -maxdepth 2 -type f | grep .js$ | grep -v -E ' (\.min|BlobBuilder\.js$|Downloadify|demo|deps|test)' ` "
13
13
files=" jspdf.js plugins/*js"
Original file line number Diff line number Diff line change 26
26
},
27
27
"scripts" : {
28
28
"start" : " ws" ,
29
- "build" : " npm install && bower install && ./build.sh"
29
+ "build" : " npm install && bower install && ./build.sh" ,
30
+ "version" : " npm run build && git add -A dist"
30
31
}
31
32
}
You can’t perform that action at this time.
0 commit comments