Commit Graph

64 Commits

Author SHA1 Message Date
decaffeinate 8a46d642e5
chore: decaffeinate: convert error.coffee and 58 other files to JS 2018-02-14 09:56:31 -05:00
decaffeinate b7cd01597e
chore: decaffeinate: rename error.coffee and 58 other files from .coffee to .js 2018-02-14 09:55:12 -05:00
hacksalot 0f65e4c9f3 Finish HackMyCore reshaping.
Reintroduce HackMyCore, dropping the interim submodule, and reorganize
and improve tests.
2016-01-29 15:23:57 -05:00
hacksalot 165eb5d9cd Remove extraneous console.log added by Calhoun. 2016-01-25 20:57:21 -05:00
hacksalot d007bd9bf6 Introduce CoffeeScript and build step. 2016-01-25 10:34:57 -05:00
hacksalot 37ea6cf804 Rename error-handler.js to error.js. 2016-01-14 11:49:27 -05:00
hacksalot 19b30d55ec Move error handling out of core. 2016-01-13 15:28:02 -05:00
hacksalot 69be38110f Update license notice in index.js. 2016-01-11 19:56:44 -05:00
hacksalot 0ecac98cff Remove totally unnecessary line.
Totally.
2016-01-10 19:11:43 -05:00
hacksalot c5b8eec33a Move CLI-related assets to subfolder. 2016-01-09 16:14:28 -05:00
hacksalot d878270bc6 Encapsulate CLI interface to ease testing.
Strip index.js down to its bare essentials, move primary logic to
main.js, and expose the latter via module.exports. This allows tests to
execute the same code path(s) HMR runs in production.
2016-01-08 19:22:44 -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
hacksalot 830c36818e Tweak missing file message for "new" command. 2016-01-06 14:15:27 -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 b1a02918ff Support --no-tips flag. 2016-01-05 10:10:24 -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 ff23ee508b Restore app title. 2016-01-05 09:38:21 -05:00
hacksalot ce75f09210 Refactor API interface. 2016-01-04 07:23:20 -05:00
hacksalot a8fed1b69b Add missing semicolon. 2016-01-04 04:15:13 -05:00
hacksalot f65cf8880e Add support for external options file. 2016-01-04 02:50:00 -05:00
hacksalot c8d4a3deb3 Handle global options.
Fix broken --silent flag and set up -o/-opts.
2016-01-04 01:49:35 -05:00
hacksalot c3ec3f28bd Introduce section totals inspector. 2016-01-03 05:03:31 -05:00
hacksalot 0a8ee721e8 Allow for multiple PDF engines / support Phantom PDFs.
Start formalizing PDF generation apparatus and support a `--pdf`
parameter allowing the user to specify the flavor of PDF generation.
2016-01-03 04:11:42 -05:00
hacksalot 8d7cf32988 Finish Commander.js integration. 2016-01-03 03:18:56 -05:00
hacksalot 8fc0fa99d3 Remove unnecessary indirection. 2016-01-03 02:39:43 -05:00
hacksalot 69e8adc1cc Remove 'minimist' dependency. 2016-01-03 02:25:39 -05:00
hacksalot 6b3396e01b Use Commander.js for invocations. 2016-01-03 02:22:26 -05:00
hacksalot a95b52acd0 Refactor command processing. 2016-01-02 00:15:46 -05:00
hacksalot 2b669cf35c Tweak error handling for cmd params. 2016-01-01 15:06:16 -05:00
hacksalot bb28e5aa8e Support --help option.
Support standard syntax for the HELP command.
2016-01-01 14:38:00 -05:00
hacksalot cb14452df3 Replace colors with chalk.
Chalk has a few more options and doesn't mess around with
String.prototype.
2016-01-01 04:44:14 -05:00
hacksalot 069c02ddcc Interim changes supporting v1.3.0. 2015-12-31 03:34:41 -05:00
hacksalot a280d8acb2 Support CSS embedding vs. linking. 2015-12-30 19:45:50 -05:00
hacksalot 1bcc2f7d0c Add formal support for aliases.
new/create and build/generate
2015-12-30 13:00:30 -05:00
hacksalot a0c356941c Remove unnecessary line. 2015-12-30 12:44:16 -05:00
hacksalot 02ef2b2241 Improve error handling.
Better support for spawn errors encountered during generation (for ex,
PDFs through wkhtml) + general refactoring.
2015-12-29 06:35:55 -05:00
hacksalot 13430bcad5 Refactor status codes. 2015-12-29 05:09:05 -05:00
hacksalot 358c397bb9 Show call stack on error.
Hat tip @Furchin.
2015-12-24 16:22:29 -05:00
hacksalot c966f6766c Refactor verbs to separate files. 2015-12-21 02:56:02 -05:00
hacksalot 43cd1c7e52 Allow TO keyword to be omitted.
If the TO keyword is missing, assume the last file passed in is the
destination file.
2015-12-20 20:53:21 -05:00
hacksalot 80c6bb6e8b Rename to HMR. 2015-12-19 12:37:42 -05:00
devlinjd eabab26eef Update file headers. 2015-12-17 10:15:59 -05:00
devlinjd 541198321e Fix JSHint warnings. 2015-12-09 21:44:35 -05:00
devlinjd 5b3a25c461 Support NEW command. 2015-12-02 14:56:36 -05:00
devlinjd 5735ddc495 Multiple enhancements.
A set of rough enhancements supporting FRESH:

- Added ability to process multiple sources for all commands (BUILD,
VALIDATE, CONVERT).

- Added new HELP command to show usage.

- Improved error-handling and color-coding.
2015-11-21 16:12:22 -05:00
devlinjd 992069b22d Cleanup. 2015-11-21 10:33:16 -05:00
devlinjd 317de75a5b Refactor. 2015-11-21 07:59:30 -05:00
devlinjd 9fbab27d73 Improve validation and color-coding. 2015-11-21 05:56:16 -05:00
devlinjd a410153253 Implement "generate" and "validate" verbs.
Start moving to a more familiar verb-based interface with "generate" and
"validate" commands. Use with "fluentcv generate" or "fluentcv
validate".
2015-11-19 09:46:02 -05:00
devlinjd ce95593031 Relax copyright notices. 2015-11-19 01:57:15 -05:00