extendscriptr icon indicating copy to clipboard operation
extendscriptr copied to clipboard

Added support for module.exports

Open richardvanthof opened this issue 2 years ago • 1 comments

Now the program just returns the transpiled file if no output value has been given. This is useful when integrating this tool into gulp pipelines (in combination with gulp-exec).

richardvanthof avatar Jul 26 '23 09:07 richardvanthof

Hi @richardvanthof Thank you for your contribution. This tool is a blast from the past. Nice to see that it is still in use.

I tried your branch but when I run:

node ./index.js --script test/src/indesign.js
Running extendscriptr with following options:
--script: test/src/indesign.js
--output: undefined
--target: undefined (optional)
--targetengine: undefined (optional)

The only output I get is the default option listing and no output to stdout from the compiled script. I'm I doing something wrong?

Also some things I would love to see before merging.

  • [ ] Some kind of test
  • [ ] Update of the options
  • [ ] Update of the README

ff6347 avatar Jul 26 '23 10:07 ff6347