Skip to content

This PR cleans up the files in then generated folder when elm-spa gen is run - #118

Open
JoshTRN wants to merge 10 commits into
ryan-haskell:mainfrom
JoshTRN:main
Open

JoshTRN wants to merge 10 commits into
ryan-haskell:mainfrom
JoshTRN:main

Conversation

@JoshTRN

@JoshTRN JoshTRN commented Nov 14, 2021

Copy link
Copy Markdown

There are some formatting changes as well from my editor as well as a few stylistic changes I thought were in keeping with the rest of the code I was reading.

Every time elm-spa gen is run, all of the files that exist in do not exist in src but exist in gen get deleted and all of the empty directories get deleted from the gen folder. I decided not to remove the empty folders from src directory because I thought that the user may want them even if they deleted all the files in said directory. (Why would they delete all the files in it but not the directory if they didn't have some reason for keeping the directory?)

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