blixai / blix

⚙️🔧 CLI tool and scripting library to create, automate, and enhance Javascript applications
https://docs.blixjs.com
MIT License
26 stars 2 forks source link

If overwritting file, log mutate #337

Closed DBULL7 closed 6 years ago

DBULL7 commented 6 years ago

Also improved display colors with the fs status verbs

The new overwrite log revealed a bug in testing, the addRedux.js file was truncating files asynchronously and needed to be corrected

DBULL7 commented 6 years ago

There was a major problem with detecting a file that was about to be overwritten and then prompting the user if they want to continue. To do that every possible file overwrite situation would need to be made async/await. That would be too big of a change in the current way of handling things. However, if we took @alocke12992 's idea and made the files work similar the new way we handle installs, where we add them to a store as we go and then create all the files at once new the end that might work?