]> Vexing Labs - resume.git/commitdiff
Build on all files in src, update recommendations.
authorAdam A.G. Shamblin <adam.shamblin@gmail.com>
Mon, 18 Sep 2017 14:53:20 +0000 (08:53 -0600)
committerAdam A.G. Shamblin <adam.shamblin@gmail.com>
Mon, 18 Sep 2017 14:53:20 +0000 (08:53 -0600)
.gitignore
.jshintrc
build.js
src/recommendations.md

index d63635f3dc55d18eca7033bfa033fa118e82fb74..e511b0674c0a74a160c4073650200bf0c043d0ef 100644 (file)
@@ -1,2 +1,4 @@
 *.pdf
 node_modules
+distribute/
+references.md
index 704d4c82c38013b928d2a4bbf24f188ed183a743..c4c1a702a544237b6bf9316ae725a747fb8f04cb 100644 (file)
--- a/.jshintrc
+++ b/.jshintrc
@@ -1,5 +1,4 @@
 {
     "esversion": 6,
-    "strict": true,
     "loopfunc": true
 }
index ce0f6b1b0ada484f9586aae536faba7e511c96c1..bef76603cb71fddbf13148141d470069a84a60c0 100755 (executable)
--- 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`));
+    });
+});
+
index c853ff3d63dd9ea97293a763cd92a3b718673074..79bdce5230bab9f5bd1b3b014905b1d5688ab0fb 100644 (file)
@@ -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