({
templateDirectory,
}: DeployLiveDemosConfig)
| 27 | } |
| 28 | |
| 29 | export default async function deployLiveDemos({ |
| 30 | templateDirectory, |
| 31 | }: DeployLiveDemosConfig) { |
| 32 | const templates = getPublishedTemplates(templateDirectory); |
| 33 | await Promise.all( |
| 34 | templates.map(({ path: templatePath }) => { |
| 35 | runCommand("npm install --force", templatePath); |
| 36 | runCommand("npm run build --if-present", templatePath); |
| 37 | runCommand("npm run deploy", templatePath); |
| 38 | }), |
| 39 | ); |
| 40 | } |
no test coverage detected