isleofcode / corber

CLI for building hybrid apps with Ember/Vue/Glimmer/Cordova
http://corber.io
MIT License
333 stars 100 forks source link

Init needs to be more async friendly #464

Closed alexblom closed 6 years ago

alexblom commented 6 years ago

https://github.com/isleofcode/corber/blob/master/lib/tasks/create-project.js#L25-L52

This code can racetrack, resulting in corber init occasionally throwing no config/framework found. To rectify, we need to ensure the Promise is resolved only when the fs creates have completed.

In the rare case this happens, running corber init a second time resolves the problem.

alexblom commented 6 years ago

Fixed in #468