Currently if you forgot to run the build command before deploying the site, you would not notice a problem because the command only checks that build output is present, not that it is correct.
Options for solving this:
- Encourage running as pipeline (i.e. as an npm package.json script, could even be programatically added. The benefit here is that the cli stays lean and does not take on more logic, but it's less nice.
- Take a build command in configuration and run it (could this potentially expose anything to build, i.e. the API key?)
Solution: Simply warn the user if the build output is older than a minute, implemented in https://tangled.org/bruceroettgers.eu/bunnyup/commit/85b7310d756056eb0ebfa6aaa599fe8453576fe4