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

Watch mode #31

Closed andyinabox closed 7 years ago

andyinabox commented 7 years ago

Not sayin' this necessarily needs to be built into extendscriptr, but even examples of a watch workflow would be helpful.

ff6347 commented 7 years ago

Hi @andyinabox Over at basil.js we are using the watch module. Works good for us.

# install it as dev dependency
npm install watch -D
# run it in a terminal session
# anytime you save your src/helloWorld.js
it will be extendscriptred (is that a word yet? ;-))
./node_modules/.bin/watch ./node_modules/.bin/extendscriptr --script src/helloWorld.js --output dist/helloWord.js
ff6347 commented 7 years ago

I'll keep this issue open until I (or somebody else) adds something useful about it to the readme

florianbepunkt commented 6 years ago

how can this be dynamic? watch looks for changes in the whole src folder, but the command provided in readme is fixed to a specific file.

if you have multiple scripts in src folder how can this be configured to compile each file when a change occurs?

ff6347 commented 6 years ago

Hm. This wont work with the current state of extendsciptr. It would mean to do changes on the module. Would be nice to have. I'll add this as a new issue and feature request.