From 2c437720a0c7f9da6d4723d49f263900c8d6907a Mon Sep 17 00:00:00 2001 From: "Adam A.G. Shamblin" Date: Mon, 18 Sep 2017 08:53:20 -0600 Subject: [PATCH] Build on all files in src, update recommendations. --- .gitignore | 2 ++ .jshintrc | 1 - build.js | 15 ++++++++++----- src/recommendations.md | 2 +- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index d63635f..e511b06 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ *.pdf node_modules +distribute/ +references.md diff --git a/.jshintrc b/.jshintrc index 704d4c8..c4c1a70 100644 --- a/.jshintrc +++ b/.jshintrc @@ -1,5 +1,4 @@ { "esversion": 6, - "strict": true, "loopfunc": true } diff --git a/build.js b/build.js index ce0f6b1..bef7660 100755 --- a/build.js +++ b/build.js @@ -1,15 +1,20 @@ #!/usr/bin/env node -let markdownpdf = require('markdown-pdf'), +const markdownpdf = require('markdown-pdf'), fs = require('fs'); -let options = { +const options = { cssPath: 'css/resume.css', remarkable: { breaks: false } }; -fs.createReadStream('src/resume.md') - .pipe(markdownpdf(options)) - .pipe(fs.createWriteStream('distribute/resume.pdf')); +fs.readdir('./src', (err, files) => { + files.forEach(file => { + fs.createReadStream(`./src/${file}`) + .pipe(markdownpdf(options)) + .pipe(fs.createWriteStream(`distribute/${file}.pdf`)); + }); +}); + diff --git a/src/recommendations.md b/src/recommendations.md index c853ff3..79bdce5 100644 --- a/src/recommendations.md +++ b/src/recommendations.md @@ -2,7 +2,7 @@ adam.shamblin@gmail.com Polyglot Web Hacker -##Recommendations +## Recommendations >"I worked with and reported to Adam at Datu, and I have tremendously appreciated >my time working with Adam. Adam is an exceptionally smart and talented engineer -- 2.39.5