Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/Umbraco.Web.UI.Client/devops/example-runner/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,16 @@ async function pickExampleUI(){
const selectedFolder = exampleFolderNames[parseInt(answer) - 1];
console.log(`You selected: ${selectedFolder}`);

// Close readline before starting the dev server so Ctrl+C can terminate the process.
rl.close();

process.env['VITE_EXAMPLE_PATH'] = `${exampleDirectory}/${selectedFolder}`;

// Start vite server:
try {
execSync('npm run dev', {stdio: 'inherit'});
} catch (error) {
// Nothing, cause this is most likely just the server begin stopped.
// Nothing, cause this is most likely just the server being stopped.
//console.log(error);
}
});
Expand Down
Loading