(args)
| 192 | ); |
| 193 | }, |
| 194 | async handler(args) { |
| 195 | log.info('Building docs...'); |
| 196 | const stop = stopwatch('build'); |
| 197 | log.debug('Build command called with args: %O', args); |
| 198 | if (args.site) { |
| 199 | if (args.deploy) { |
| 200 | await deploy(args); |
| 201 | } else { |
| 202 | await buildSite(args); |
| 203 | } |
| 204 | } |
| 205 | log.success('Done! (total: %dms)', stop()); |
| 206 | }, |
| 207 | } as CommandModule<object, BuildOptions>; |