Export Script: coding with JS and Node

Forums Ideas Export Script: coding with JS and Node

This topic contains 2 replies, has 2 voices, and was last updated by  fabiobeoni 1 year, 10 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5366
    fabiobeoni
    Member

    Hello,

    I think would be nice to write the export script in JavaScript, having BootstrapStudio executing it in a NodeJS context.
    If I’m not wrong, BootstrapStudio is developed with Nodewebkit or Electron. If so, you may consider this suggestion that would make the export scripting working cross-platform, with one language only.

    Thanks, F.

    #5368
    Martin Angelov
    Bootstrap Studio Developer

    Thanks for the suggestion! Bootstrap Studio is indeed developed in Electron, but we can’t execute your scripts in the same process for security reasons. Your code needs to be run in a separate process.

    If you wish to write your script in node, you can just add !#/path/to/node at the top of your js file, make it executable, and use it as an export script straight away.

    #5369
    fabiobeoni
    Member

    Thanks that’s useful too.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.