hacksalot
1fbfe2507b
Carry over debug flag.
2016-01-08 16:33:13 -05:00
hacksalot
d6a3aab68a
Make Handlebars options explicit.
2016-01-08 16:27:19 -05:00
hacksalot
9fdfd1b5a6
Add baseline support for -d or --debug flag.
...
For now, -d just force-emits the stack when there is one. In the future,
it can trigger more detailed logging info.
2016-01-08 16:08:33 -05:00
Antonio Ruberto
fbfff2a4e4
load theme partials for non html and doc
...
load global partials for html and doc only but load theme partials for
all outputs
2016-01-08 12:28:23 -05:00
hacksalot
1c93932737
Fix jsHint error.
2016-01-08 12:24:23 -05:00
hacksalot
cba29511bc
Analyze: fix coverage percentage glitch.
2016-01-08 12:20:51 -05:00
hacksalot
1d655a4ddb
Support duration units for JRS resumes.
2016-01-08 12:13:54 -05:00
hacksalot
ca94513630
Fix single format output error.
...
Fixes #97 .
2016-01-08 11:59:10 -05:00
hacksalot
f3dcbd9081
Improve error vs. warning formatting.
...
Errors = red. Warnings = yellow.
2016-01-08 10:42:24 -05:00
hacksalot
29c53af843
Rename "invalidTarget" error to "invalidFormat".
2016-01-08 10:09:46 -05:00
hacksalot
8d24087faa
Rename src/gen --> src/generators.
2016-01-08 10:02:47 -05:00
hacksalot
95df8e5af4
Rename src/eng --> src/renderers
...
A renderer is a thing that renders or "paints" an arbitrary format using
a templating engine like Handlebars or Underscore. A generator is a
thing responsible for generating a given output format like HTML or MS
Word.
2016-01-08 09:59:47 -05:00
hacksalot
44555da00f
Fix PNG output format for JSON Resume themes.
2016-01-08 09:36:32 -05:00
hacksalot
46bd5d51cc
Support implicit PDF generation (interim).
2016-01-08 09:00:43 -05:00
hacksalot
d6280e6d89
Start integrating JRS and FRESH rendering paths.
2016-01-08 08:40:19 -05:00
hacksalot
4a2a47f551
Tweak casing.
2016-01-08 07:08:12 -05:00
hacksalot
ae51930c9c
Tweak indentation.
2016-01-08 07:06:26 -05:00
hacksalot
fb33455bea
Refactor JRS rendering.
2016-01-08 06:48:04 -05:00
hacksalot
28c703daf7
Improve error handling: PDFs.
2016-01-08 05:11:38 -05:00
hacksalot
0246a5da19
Remove html-pdf-generator class.
...
PDF generation now performed via html-pdf-cli-generator.
2016-01-07 18:34:43 -05:00
hacksalot
840d17c67b
Wrap rasterize.js in IIFE / satisfy jsHint.
2016-01-07 18:33:26 -05:00
hacksalot
97ebecd84a
Support CLI-based PDF generation.
...
Support Phantom and wkhtmltopdf generation via CLI.
2016-01-07 18:24:25 -05:00
hacksalot
96b9bb68e3
Introduce Phantom.js rasterizer script.
...
Via
https://raw.githubusercontent.com/ariya/phantomjs/master/examples/rasterize.js .
2016-01-07 17:53:42 -05:00
hacksalot
a2723452c2
Improve ENOENT handling.
2016-01-07 16:13:09 -05:00
hacksalot
cb3488276d
Refactor error handling.
...
Work towards better debug/log/stack trace options for error cases.
2016-01-07 15:54:10 -05:00
hacksalot
43419c27cf
Refactor API surface.
2016-01-07 13:44:39 -05:00
hacksalot
cb46497346
Rename generate.js to build.js.
...
Should match the canonical verb name -- "build". Generate is an alias.
2016-01-07 12:03:44 -05:00
hacksalot
850c640368
Annotate Phantom gen method.
2016-01-07 10:54:46 -05:00
hacksalot
60e455b36d
Emit call stack for wkhtmltopdf errors.
2016-01-07 10:54:27 -05:00
hacksalot
830c36818e
Tweak missing file message for "new" command.
2016-01-06 14:15:27 -05:00
hacksalot
39e995213f
Improve starter resume.
...
"hackmyresume new" should emit a starter resume that a) has example
information and b) validates.
2016-01-06 14:09:22 -05:00
Josh Janusch
4f9207a868
Fix: formatDate helper references the moment method, not the momentDate object
2016-01-06 11:23:39 -05:00
Josh Janusch
3d1f589bc1
formatDate helper now will only use moment if date is valid. If it's not, will use the user inputted value or a fallback parameter, if it is provided
2016-01-06 11:23:38 -05:00
hacksalot
ae436a3b84
Scrub.
2016-01-06 11:18:50 -05:00
hacksalot
712b504168
Support global theme partials (interim).
2016-01-06 10:48:51 -05:00
hacksalot
2d20077c08
Support --assert option for validate command.
...
Cause HMR to return an error code if validation fails and the --assert
option is present.
2016-01-06 00:44:34 -05:00
hacksalot
f61deda4e8
Fix format detection error in validate logic.
2016-01-06 00:21:18 -05:00
hacksalot
8203fa50ae
Prep convert.js.
2016-01-06 00:20:30 -05:00
hacksalot
c5eab0fd9c
Scrub.
2016-01-05 23:59:41 -05:00
hacksalot
40e71238ac
Scrub.
2016-01-05 23:46:01 -05:00
hacksalot
9d75b207d1
Formalize empty-fresh.json dependency.
2016-01-05 23:28:49 -05:00
hacksalot
9b52c396d3
Fix missing method rename.
2016-01-05 22:32:46 -05:00
hacksalot
2759727984
Add convenience method.
2016-01-05 22:26:16 -05:00
hacksalot
e230d640cb
Rename imp() to i() (interim).
2016-01-05 22:02:11 -05:00
hacksalot
b1a02918ff
Support --no-tips flag.
2016-01-05 10:10:24 -05:00
hacksalot
ec05f6737a
Emit JSON Resume theme instructions.
2016-01-05 10:10:12 -05:00
hacksalot
da5db6477b
Introduce --color and --no-color options.
...
These are handled by Chalk, but need to be registered with Commander.js
in order for Chalk to see them.
2016-01-05 09:42:39 -05:00
hacksalot
0f580efb2b
Mention ANALYZE command in man page.
2016-01-05 09:38:42 -05:00
hacksalot
ff23ee508b
Restore app title.
2016-01-05 09:38:21 -05:00
hacksalot
2819faeb6f
Improve theme/format inheritance (interim).
2016-01-05 09:28:40 -05:00