Skip to content

Commit

Permalink
fix web launch scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
laves committed Aug 19, 2024
1 parent aad6db4 commit 9bd8e17
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion demo/angular/scripts/run_demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ fs.writeFileSync(

const command = (process.platform === "win32") ? "npx.cmd" : "npx";

child_process.fork("ng", commands, {
child_process.spawn("ng", commands, {
execPath: command,
shell: true
});
3 changes: 2 additions & 1 deletion demo/react-native/scripts/run_demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ fs.writeFileSync(

const command = process.platform === 'win32' ? 'npx.cmd' : 'npx';

child_process.fork('react-native', commands, {
child_process.spawn('react-native', commands, {
execPath: command,
shell: true
});
3 changes: 2 additions & 1 deletion demo/react/scripts/run_demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ fs.writeFileSync(

const command = (process.platform === "win32") ? "npx.cmd" : "npx";

child_process.fork("react-scripts", commands, {
child_process.spawn("react-scripts", commands, {
execPath: command,
shell: true
});
3 changes: 2 additions & 1 deletion demo/vue/scripts/run_demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export default rhinoModel;

const command = (process.platform === "win32") ? "npx.cmd" : "npx";

child_process.fork("vite", commands, {
child_process.spawn("vite", commands, {
execPath: command,
shell: true
});
3 changes: 2 additions & 1 deletion demo/web/scripts/run_demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ fs.writeFileSync(

const command = (process.platform === "win32") ? "npx.cmd" : "npx";

child_process.fork("http-server", ["-a", "localhost", "-p", "5000"], {
child_process.spawn("http-server", ["-a", "localhost", "-p", "5000"], {
execPath: command,
shell: true
});

0 comments on commit 9bd8e17

Please sign in to comment.