timoxley / adventure-map

Simple exercise loader & generators for substack/adventure.
MIT License
19 stars 3 forks source link

Boilerplate runs in any directory that doesn't have the matching boilerplate directory created #8

Open Sequoia opened 9 years ago

Sequoia commented 9 years ago

Even when I run verify or run on some exercises. Haven't nailed down the cause, would appreciate help.

/tmp 22:21:47
$ clijs run index.js

/private/tmp

? We're about to populate the above directory with some files needed for the
    exercises. If they've already been created then don't worry, they won't be
    replaced. Continue? (Y/n)
Sequoia commented 9 years ago

it's in lesson 2 there. ^ use "run" or "verify" in any directory that doesn't have the boilerplate created.

timoxley commented 9 years ago

Oh, whoa that's annoying.

timoxley commented 9 years ago

@Sequoia what do you think the logic for this should be?

Sequoia commented 9 years ago

I've gtg but I am hoping there's a way to set this as a switch in package.config so users can override it like npm config learnyounode:boilerplate false. If that doesn't work I'd look into npm-config package or something so there's some easy way for users to turn this on or off.

http://stackoverflow.com/questions/29155583/is-it-possible-to-access-npm-config-settings-from-a-node-packages-bin-command