* 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
It's not correct to forcefully include the file specified in "main"
at upload-time. Consider an `npm run build` script that ends up
creating the file that "main" specifies. It would not exist until
inside the deployment, after the build script is ran for that
deployment.
Fixes https://github.com/zeit/now-cli/issues/281.
* fix non-determinism in tests
* if `.dockerignore` doesn't exist, use `.gitignore`
* add back duplicate dei
* Move comment to appropriate line
* also check for exactly two duplicates
* Remove babel as a dependency
* Migrate from import foo from foo to const foo = require('foo')
* Update module.exports
* Update commander syntax
* Update pkg config and fix stuff
* Make XO happy
* Fix path in tests
* Fix typo
* Fix cleanup
* Debug pkg
* Fix pkg
* Fix process.argv for subcommands
* Run with --harmony-async-await when supported thx igor for help with this trick :D
* Use bash
* Set engines.node in package.json
* Revert "Ignore special files on deploy (#115)"
This reverts commit 1de3b40fc4.
Fixes#127
* Parse glob patterns and ignore special files
Currently glob patterns are not parsed when selecting files to be
uploaded.
Fixes#127Fixes#112
* Include dot files in matches
* Fix resolving of the glob promise array