* add warning when running start without build
* run build before start
* Revert "run build before start"
This reverts commit 171b54489df7b6c3ebd0d9d65578acf89d4daa12.
* exit code & dir
* dont update yarn.lock
* use existsSync
* Add some style changes.
* 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