* Revert "Only show update notifications when loaded from npm (#606)"
This reverts commit 3ef666ba8d.
* Revert "Brought the update notification back"
This reverts commit 5d3d9d4f37.
* Revert "Brought the update notification back"
This reverts commit 5d3d9d4f37.
* add _npmPkg to pkg when now is installed via npm
* Prettified it
* Set _npmPkg to null
* Automatically decide deployment type
* Should be a devDep
* Not throwing anymore if both Dockerfile and package.json exist
* Ask to choose type again
* Revert "Not throwing anymore if both Dockerfile and package.json exist"
This reverts commit 2d7136f2dc870406e60289e33de3b2beaea3a917.
* Prettified
* Add `teams ls` command
* Fix Prettier
* Add `teams list` command alias
* Add table output primitive
* Use table output primitive to list team
* Fix name/email for user
* Change indicator for current team
* move `prompt-options.js` to utils/input dir
* make `promptBool()` return false upon Ctrl+C
Also make the `info('Aborted')` output more consistent
across the CLI.
* Revert "handle user abort in `now domains buy` (#554)"
This reverts commit 34151c8193.
* Improve now alias and scale ux
* Print scaling rules even when there is nothing to change, and fix scale-info
* Allow scale to take alias as parameter
* Remove debug print
* Fix list prefix color
* Fix output styling
* remove `instanceof` check
Use duck-type checking instead.
* handle USER_ABORT errors in `handleError()`
* don't print out stack traces upon user abort
Also eliminates the usage of `async-retry` since it was
pretty much overkill for this use case. Instead just extract
the logic out into its own function and call it recursively
when we have to do the user prompt.
* Print `Aborted` upon user about
Since we use Greenkeeper to update dependencies for `now-cli`,
we can depend on it to keep the version of `serve` that we use
for static deployments up-to-date at all times.
* refactor the `readMetaData()` function
* add a couple new test cases
* test: restore "build" prefix
Fixes Node.js <= v6
* add default values for `npm`/`docker` get files functions
Makes the logic simpler, since we don't have to check for existence.
* throw an error when missing start/now-start or server.js
* pass in entire `readMetaData()` result to Now.create()
This avoids us reading these files from the filesystem again
Consider a tree like:
```
.
├── Dockerfile
└── now.json
0 directories, 2 files
```
Before this patch, this deployment would be considered a "static"
deployment, which is incorrect. Now it is properly detected
as a "docker" deployment type.