Skip to content

Commit 76f3c16

Browse files
author
fabianmoronzirfas
committed
Merge branch 'master' of git://github.com/GitBruno/extendscriptr into GitBruno-master
2 parents be6bdd1 + af65ed0 commit 76f3c16

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,19 @@ We recommend using it as a local dependency\*
2424

2525
\* a _global install is currently not working due to the fact that ExtendScript is missing to many functions. See [this issue](https://github.com/ExtendScript/extendscriptr/issues/22)_
2626

27+
### Watch mode
28+
29+
Exstendscriptr does not have any built-in _watch_ capability, but you can accomplish this using the [watch](https://www.npmjs.com/package/watch) module:
30+
31+
```bash
32+
npm install watch -D
33+
```
34+
Run the following and Extendscriptr will automatically run every time you save a file in the `src/` directory:
35+
36+
```bash
37+
./node_modules/.bin/watch "./node_modules/.bin/extendscriptr --script src/helloWorld.js --output dist/helloWord.js" src/
38+
```
39+
2740
## Authors/Contributors
2841
- Lucas Vogel [@vogelino](https://github.com/vogelino)
2942
- Fabian Morón Zirfas [@fabiantheblind](https://github.com/fabiantheblind)

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ extendscriptr.options.forEach(function(opt) {
2525
);
2626
});
2727

28-
var prototypePolyfills = fs.readFileSync('./node_modules/extendscript.prototypes/lib/extendscript.prototypes.js', 'utf8');
28+
var prototypePolyfills = fs.readFileSync(require.resolve('extendscript.prototypes'), 'utf8');
2929
var browserifyPlugins = [ [ prependify, prototypePolyfills ] ];
3030

3131
var adobeTarget = String(extendscriptr.target).toLowerCase();

0 commit comments

Comments
 (0)