Skip to content

Add pre-command check for .elm-spa folder for commands other than new/init/help#157

Open
JonLatane wants to merge 3 commits into
ryan-haskell:mainfrom
JonLatane:main
Open

Add pre-command check for .elm-spa folder for commands other than new/init/help#157
JonLatane wants to merge 3 commits into
ryan-haskell:mainfrom
JonLatane:main

Conversation

@JonLatane
Copy link
Copy Markdown

No idea if this actually works - some hand-holding through testing would be helpful (I'm new to this type of FE build system stuff). You should absolutely not merge this blind!

Hopefully the intent of the code is pretty clear; I'm annoyed at .elm-spa and src directories when I accidentally elm-spa add or whatever in the wrong directory (any directory other than the root of my project, where the .elm-spa folder is). The intent is to check for .elm-spa anytime a command other than elm-spa init or elm-spa help is run, to eliminate this footgun since I'm a developer prone to shooting myself in the foot 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant