Created by: denofevil
When IntelliJ IDEA generates a project, it creates a module file (*.iml) in the root directory of the project by default. IDEA does that before it launches project generator process which is causing CRA to abort due to these extra files. We used to workaround that via generating the project in a temporary directory, but that causes another set of problems, such as: WEB-29489 (aka #200 (closed)) WEB-33257 and additionally is just slower due to copying the generated project to the proper location. It would be better to ignore *.iml files in the generator script.
These changes were checked by generating the project from the terminal and from IntelliJ (with temp dir workaround disabled).