← Winnitude! Search  ·  Reader Mode (661 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 78 LINKS

GitHub - ExtendScript/extendscriptr: An NPM command line tool to compile modern javascript (es5 & es6) into executable extendscript (es3)

Repository navigation

extendscriptr
Public

About

An NPM command line tool to compile modern javascript (es5 & es6) into executable extendscript (es3)

Resources

Readme WTFPL license Activity Custom properties

Stars

163 stars

Watchers

21 watching

Forks

19 forks Report repository
Branches

Tags
Go to Branches page Go to Tags page

Latest commit

 

History


177 Commits
View commit history for this file.

Folders and files

Name Name Last commit message Last commit date
.github/ workflows .github/ workflows    
.vscode .vscode    
test/ src test/ src    
.all-contributorsrc .all-contributorsrc    
.babelrc .babelrc    
.eslintrc .eslintrc    
.gitignore .gitignore    
.node-version .node-version    
.npmignore .npmignore    
.nvmrc .nvmrc    
CHANGELOG.md CHANGELOG.md    
LICENSE LICENSE    
README.md README.md    
index.js index.js    
package-lock.json package-lock.json    
package.json package.json    
release.config.cjs release.config.cjs    

Repository files navigation

Extendscriptr

Extendscriptr is NPM CLI module that allows you to benefit of many modern javascript features of es5 and es6 in a es3 extendscript environment.

Why

Building scripts for Adobe products (mostly used for After Effects, InDesign, Photoshop or Illustrator) can be pain for the finger nails if you are used to proper javascript environments.

Extendscriptr relies on extendscript-es5-shim and focuses on mostly used prototypes as a priority that are tested in the different Adobe applications. This dependency will be improved over time to covers always more es5 and es6 features. Contributions are welcome!

Extendscriptr doesn't use an existing full-stack polyfills like babel-polyfill, es5-shim or shim.js as they are intended for the browser and don't work well in adobe applications.

Prerequisites

This tool currently needs npm version 3.x or higher due to the flattened folder structure.

Usage

We recommend using it as a local dependency*

  • npm install extendscriptr --save-dev
  • extendscriptr --script src/scripts/helloWorld.js --output dist/helloWord.js
  • open the outputted file with ExtendScript Toolkit OR place your script in the relevant application script folder
  • run it

Watch mode

Exstendscriptr does not have any built-in watch capability, but you can accomplish this using the watch module:

npm install watch -D

Run the following and Extendscriptr will automatically run every time you save a file in the src/ directory:

./node_modules/.bin/watch "./node_modules/.bin/extendscriptr --script src/helloWorld.js --output dist/helloWord.js" src/

Contribute

We would be happy to have contributions from other members as well. Don't hesitate to make pull requests or contact us if you wish to get contributor rights.

Report issues

Feel free to report any issue you would encounter using the module. https://github.com/vogelino/extendscriptr/issues

License

WTFPL - Do whatever the fuck you want

Contributors


Lucas Vogel

💻 🎨

Fabian Morón Zirfas

💬 🎨

Bruno Herfst

💻

Andy Dayton

💻

Stefano Masini

💻

bsky

🚧

silmelumenn

💻 ⚠️

Thanks goes to these wonderful people (emoji key ):

This project follows the all-contributors specification. Contributions of any kind welcome!

About

An NPM command line tool to compile modern javascript (es5 & es6) into executable extendscript (es3)

Resources

Readme WTFPL license Activity Custom properties

Stars

163 stars

Watchers

21 watching

Forks

19 forks Report repository

Releases

Packages

Used by

Contributors

Languages