Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

JonLatane
Copy link

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