Skip to content

Commit

Permalink
refactor: serve output directory
Browse files Browse the repository at this point in the history
  • Loading branch information
schoero committed Oct 1, 2023
1 parent 1fb785b commit fb8d8d1
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"linebreak",
"linebreaker",
"pdfkit",
"postgenerate",
"qrcodegen",
"qriban",
"QRIBAN",
Expand Down
4 changes: 4 additions & 0 deletions examples/node-cjs-javascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@
"scripts": {
"generate": "npm run pdf && npm run svg",
"pdf": "node ./src/pdf.js",
"postgenerate": "serve output",
"svg": "node ./src/svg.js"
},
"dependencies": {
"pdfkit": "^0.13.0",
"swissqrbill": "^4.0.0-alpha.3"
},
"devDependencies": {
"serve": "^14.2.1"
}
}
2 changes: 1 addition & 1 deletion examples/node-cjs-javascript/src/svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ const data = require("./data.js");


const qrBill = new SwissQRBill(data);
writeFileSync("./swissqrbill.svg", qrBill.toString());
writeFileSync("./output/swissqrbill.svg", qrBill.toString());
4 changes: 4 additions & 0 deletions examples/node-esm-javascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@
"scripts": {
"generate": "npm run pdf && npm run svg",
"pdf": "node ./src/pdf.js",
"postgenerate": "serve output",
"svg": "node ./src/svg.js"
},
"dependencies": {
"pdfkit": "^0.13.0",
"swissqrbill": "alpha"
},
"devDependencies": {
"serve": "^14.2.1"
}
}
2 changes: 1 addition & 1 deletion examples/node-esm-javascript/src/svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ import { data } from "./data.js";


const qrBill = new SwissQRBill(data);
writeFileSync("./swissqrbill.svg", qrBill.toString());
writeFileSync("./output/swissqrbill.svg", qrBill.toString());
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "4.0.0-alpha.7",
"version": "4.0.0-alpha.9",
"type": "module",
"name": "swissqrbill",
"description": "Swiss QR Bill generation in Node.js and browsers",
Expand Down

0 comments on commit fb8d8d1

Please sign in to comment.