fix(core): update

This commit is contained in:
Philipp Kunz 2019-05-29 14:14:26 +02:00
parent b337e4c779
commit 1bfca4456c
3 changed files with 23 additions and 3 deletions

View File

@ -40,4 +40,4 @@
"npmextra.json", "npmextra.json",
"readme.md" "readme.md"
] ]
} }

View File

@ -1,7 +1,21 @@
import * as plugins from './smartbrowser.plugins'; import * as plugins from './smartbrowser.plugins';
export class SmartBrowser { export class SmartBrowser {
pdfFromPage() { puppeteer: plugins.puppeteer.Browser;
smartpdf: plugins.smartpdf.SmartPdf;
pdfFromPage(urlArg: string) {
this.smartpdf.getFullWebsiteAsSinglePdf(urlArg: );
}
public async start() {
this.smartpdf = new plugins.smartpdf.SmartPdf();
this.smartpdf.init();
}
/**
* stops the smartbrowser instance
*/
stop() {
this.smartpdf.close();
} }
} }

View File

@ -1,3 +1,9 @@
// pushrocks scope
import * as smartpdf from '@pushrocks/smartpdf';
export { smartpdf };
// third party
import * as puppeteer from 'puppeteer'; import * as puppeteer from 'puppeteer';
export { puppeteer }; export { puppeteer };