ExtendScript / extendscriptr

An NPM command line tool to compile modern javascript (es5 & es6) into executable extendscript (es3)
Do What The F*ck You Want To Public License
153 stars 15 forks source link

Added support for module.exports #76

Open richardvanthof opened 1 year ago

richardvanthof commented 1 year ago

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).

ff6347 commented 1 year ago

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.