* Use next.config.js instead of package.json
* Remove irrelevant comment
* Integrate with custom webpack config
* Include hotReload option
* Remove async/await for getConfig
* Read package.json, show warning when webpack in config is defined
* Prepend warning message with WARNING
* Update log statements
* Documentation
* Restart server on change of config
* Fix process handling and cases where there is no config
* Also restart server when config file gets deleted
* Changed second parameter of webpack to config
* Support for returning Promise
* Update documentation, fix bug with webpack config
* Remove package.json, cdn and hotReload from config
* next init: Create supplied directory if it does not exist.
* next init: use mkdirp to init into nested dirs.
Picked mkdirp-then out of many alternatives. Same author & similar
dependencies to mz.
Now next init a/b/c works.
Related https://github.com/zeit/next.js/pull/136#discussion_r85543040
Should only exit `0` if the command was successful. The command refusing to execute should be considered a failure.
Also, this condition can be detected synchronously, no need to wait on the async existence check.
* Open tab when running next dev
* Added NEXT_OPEN_BROWSER env var to prevent open a browser tab on next dev
* using regexp for testing false on env var
* adding ! to if
* Added next bootstrap command for starting a new project
* renamed bootstrap to init and check we are not in a dir called pages
* Removed extra empty line