(collection: &str, slug: &str)
| 273 | } |
| 274 | |
| 275 | fn needs_demo_rebuild( |
| 276 | project_root: &Path, |
| 277 | output_dir: &Path, |
| 278 | public_dir: &Path, |
| 279 | ) -> io::Result<bool> { |
| 280 | // `.output` is gitignored; on a fresh checkout the committed bundle in |
| 281 | // `public/` is the up-to-date reference, so no rebuild is needed there. |
| 282 | let reference_dir = if bundle_complete(output_dir) { |
| 283 | output_dir |
| 284 | } else if bundle_complete(public_dir) { |
| 285 | public_dir |
| 286 | } else { |
no outgoing calls
no test coverage detected