A basic setup for writing Adobe .jsx
scripts in TypeScript with compilation to ES3 and bundling. This project aims to be a simple and understandable setup for writing quick scripts.
🚧 This setup is still very much under construction, but feedback/contributions are very much welcome!
build
compile and bundle scriptrelease
create release on github with script attached
-
Modern JavaScript syntax compiled to ES3 and bundled using SWC
Note: syntax is transformed, but no pollyfills/shims are included, so you won't be able to use features such as
Array.map
and so on. Hoping to add this ability via SWCs core-js integration in the future. -
Types from bbb999/Types-for-Adobe
The types for After Effects are included by default. You can add programs in
tsconfig.json
, by adding them tocompilerOptions.types
. -
Debugging with the ExtendScript Debugger
Pressing F5 will run
dist/script.jsx
in your selected application. Edit.vscode/launch.json
to specify a different script.