Skip to content

Support nodejs scripts? #37

Answered by ddneilson
mmmoli asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Michele! Thanks for the enthusiasm :-)

For nodejs, node is just a command-line tool, so the Action could just look like:

onRun:
   command: node
   args:
   - <path to your app.js>

Where <path to your app.js> could be a reference to an embedded file (example), or a file on a shared filesystem.

Docker would be similar. The specification doesn't have a syntactic simplification to instruct it to run a command inside of a docker container, but docker is just something that you can run on the command-line so you could write a shell script to do it. Something like this as the script element of a Step could be a starting point:

actions:
  onRun:
    command: bash
    args: [ "{{Task.File.Dock…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mmmoli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants