Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devinit/di-pdfs
For creating different DI PDFs in a streamlined manner
https://github.com/devinit/di-pdfs
pdf-generation puppeteer react typescript
Last synced: 3 months ago
JSON representation
For creating different DI PDFs in a streamlined manner
- Host: GitHub
- URL: https://github.com/devinit/di-pdfs
- Owner: devinit
- Created: 2017-12-06T13:58:38.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-09-27T19:11:45.000Z (3 months ago)
- Last Synced: 2024-09-30T16:27:58.011Z (3 months ago)
- Topics: pdf-generation, puppeteer, react, typescript
- Language: TypeScript
- Homepage: http://212.111.41.68:7777/
- Size: 5.74 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 21
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
### DI pdf creation app
_____________________________[![Build Status](https://travis-ci.org/devinit/di-pdfs.svg?branch=master)](https://travis-ci.org/devinit/di-pdfs)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/e501f77141774b74979c60d5cfd219ac)](https://www.codacy.com/app/epicallan/di-pdfs?utm_source=github.com&utm_medium=referral&utm_content=devinit/di-pdfs&utm_campaign=Badge_Grade)For creating DI (ITEP) pdfs
______________________________This project structure is based on [lerna](https://github.com/lerna/lerna). The APIs & frontends of different pdf projects are different packages with in the same repo.
The pdf-base package contains components that will get re-used by current & future pdf packages. Same applies to the api-base package.
The thought process behind this project structure is to have re-usable atomic packages / components to re-use for all future and current pdf jobs
Goals
___________________- [x] To have ready to go pdf / web templates i.e have re-usable components
- [x] Auto generate pdfs from web page equivalents using [puppeteer](https://github.com/GoogleChrome/puppeteer)
- [ ] Create static html versions of pdf / web pages for easy insertion into other webapps (workes -- ish)
- [x] Have a modular extensible platform for future re-useTools
_________Installations & setup
```
npm i -g lerna yarn
npm install # from root
lerna bootstrap # installs externa dependencies
```Useful commands
______________```
lerna bootstrap # installs all package dependencies
lerna run lint # lints all packages
lerna run build && lerna run start # starts api & pdf front end
lerna run dev # runs packages in dev mode
lerna run build --scope @devinit/pdf-base # running a command in say one package```
see [lerna repo readme](https://github.com/lerna/lerna) for more.
TODO
------
- [ ] add storybook snapshot testing