Skip to content

Commit

Permalink
Improved output to contain licenses and added a source map option for…
Browse files Browse the repository at this point in the history
… developers.
  • Loading branch information
yGuy committed Dec 22, 2016
1 parent 2c9f7d2 commit 2a5fa61
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
bower_components/
bower_components/
.idea/
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
The MIT License (MIT)

Copyright (c) 2015-2016 yWorks GmbH
Copyright (C) 2013-2015 by Vitaly Puzrin
Copyright (c) 2013-2015 by Vitaly Puzrin


Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "svg2pdf.js",
"description": "A javascript-only SVG to PDF conversion utility that runs in the browser leveraging jsPDF",
"version": "1.0.1",
"version": "1.0.2",
"main": "dist/svg2pdf.min.js",
"authors": [{
"name": "yFiles for HTML Support Team",
Expand Down
23 changes: 21 additions & 2 deletions dist/svg2pdf.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 26 additions & 2 deletions dist/svg2pdf.min.js

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "svg2pdf.js",
"version": "1.0.1",
"version": "1.0.2",
"description": "A javascript-only SVG to PDF conversion utility that runs in the browser leveraging jsPDF",
"main": "src/svg2pdf.js",
"files": [
Expand All @@ -11,9 +11,10 @@
],
"scripts": {
"browserify:svgpath": "browserify node_modules/svgpath/index.js -s SvgPath -o src/SvgPath.js",
"browserify": "browserify src/svg2pdf.js -s svg2pdf -o dist/svg2pdf.js",
"uglify:dist": "uglifyjs -m -c -o dist/svg2pdf.min.js dist/svg2pdf.js",
"build": "npm run browserify && npm run uglify:dist",
"browserify": "browserify src/svg2pdf.js --debug -p licensify -s svg2pdf -o dist/svg2pdf.js",
"exorcist:svg2pdf" : "browserify src/svg2pdf.js --debug -p licensify -s svg2pdf | exorcist dist/svg2pdf.js.map > dist/svg2pdf.js",
"uglify:dist": "uglifyjs -m -c --source-map dist/svg2pdf.min.js.map --in-source-map dist/svg2pdf.js.map --source-map-url svg2pdf.min.js.map --comments /@license/ -o dist/svg2pdf.min.js dist/svg2pdf.js",
"build": "npm run browserify && npm run exorcist:svg2pdf && npm run uglify:dist",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
Expand All @@ -40,6 +41,7 @@
},
"devDependencies": {
"browserify": "^13.1.1",
"exorcist": "^0.4.0",
"jspdf-yworks": "^1.2.68",
"requirejs": "^2.3.2",
"svgpath": "^2.2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/svg2pdf.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
The MIT License (MIT)
Copyright (c) 2015 yWorks GmbH
Copyright (c) 2015-2016 yWorks GmbH
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down

0 comments on commit 2a5fa61

Please sign in to comment.