Skip to content

Commit

Permalink
fixup! feat: add PDF component library
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert committed Sep 11, 2024
1 parent 8d63b35 commit f96a972
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions packages/component-library-pdf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ pnpm run install-prince

## Testen

Draai:

```sh
pnpm run test-local
```

Het script heet "`test-local`" zodat de PDFs niet in GitHub Actions worden getest, omdat tijd te besparen.

Wanneer een nieuwe Prince XML versie uit komt, dan moet alles opnieuw getest worden. Alle bestaande tests op basis van sha256 hashes zullen falen, omdat de gebruikte software onderdeel is van de gegenereerde PDF-bestanden. Bijvoorbeeld:

```xml
Expand Down
4 changes: 2 additions & 2 deletions packages/component-library-pdf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
"directory": "packages/component-library-pdf"
},
"scripts": {
"clean": "rimraf dist/",
"clean": "rimraf dist/ tmp/",
"install-prince": "( cd node_modules/prince && npm run install )",
"lint-build": "tsc --noEmit --project tsconfig.json",
"prince": "node_modules/prince/prince/lib/prince/bin/prince",
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest",
"test-locally": "cross-env NODE_OPTIONS=--experimental-vm-modules jest",
"test:watch": "jest --watch"
},
"files": [
Expand Down

0 comments on commit f96a972

Please sign in to comment.