FreeAllMedia / stimpak

An easy-to-use system for defining, discovering, and re-using code, text, and workflow patterns
http://stimpak.io
MIT License
8 stars 1 forks source link

Add support for locally installed generator modules. #3

Closed danielwippermann closed 8 years ago

danielwippermann commented 8 years ago

This commit extends the CLI generator module search functionality to also look in the current working directory. That way users of stimpak can install the generator locally before running the stimpak CLI.

It also refactors the CLI spec setup (creating directories and symlinks) into a separate helper module to be able to use it in different specs.

The factored out CLI spec setup uses a slightly different directory layout. Previously the test only passed, because the test generators where symlinked into "((stimpak-path))/node_modules/stimpak-test-((x))" which is most probably not the case on end-user systems. The refactored CLI spec setup "simulates" installing "stimpak" and some test generators pseudo-globally and some test generators locally to the end user project directory.

dcrockwell commented 8 years ago

You need to git pull the latest feature/cli changes and resolve since I merged the last PR and this caused a merge conflict.

danielwippermann commented 8 years ago

Okay, thanks, I'll do that as soon as I get back from work.

danielwippermann commented 8 years ago

That commit contains the merge with the latest changes on "feature/cli" as well as a variable name change to comply with the team rule ("md" => "matchData").