diff --git a/README.md b/README.md index 47a840e..f248e7f 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,13 @@ -# New Repository Template +# freeCodeCamp Review Generator -This template contains all of our basic files for a new GitHub repository. There is also a handy workflow that will create an issue on a new repository made from this template, with a checklist for the steps we usually take in setting up a new repository. +This tool allows you to compile all of freeCodeCamp's review lessons into a single PDF. -If you're starting a Node.JS project with TypeScript, we have a [specific template](https://github.com/naomi-lgbt/nodejs-typescript-template) for that purpose. +## Usage -## Readme - -Delete all of the above text (including this line), and uncomment the below text to use our standard readme template. - - +We may be contacted through our [Chat Server](http://chat.nhcarrigan.com) or via email at `contact@nhcarrigan.com`. diff --git a/src/index.ts b/src/index.ts index e96a0a7..3299d82 100644 --- a/src/index.ts +++ b/src/index.ts @@ -36,7 +36,9 @@ const rollupFiles = async( outputFile: string, ): Promise => { try { + console.log("Process started..."); await writeFile(outputFile, `${starterText}\n`); + console.log("Reading content directory..."); const files = await readDirectoryRecursively(inputDirectory); for (const file of files) { if (file === ".gitkeep") { @@ -49,7 +51,6 @@ const rollupFiles = async( trim(); // Title is in front matter const title = /^title: (?.*)/m.exec(content)?.groups?.title; - console.log(title); const strippedFccHeadings = strippedFrontmatter. replace(/^#+ --.*--/, ""). trim(); @@ -66,6 +67,7 @@ const rollupFiles = async( }; const createPdf = async(inputPath: string): Promise<void> => { + console.log("Creating PDF..."); const pdf = await mdToPdf({ path: inputPath }, options); console.log("PDF created!"); await writeFile("./fcc-review-pages.pdf", pdf.content);