Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"jsc": {
"parser": {
"syntax": "typescript"
},
"transform": null,
"target": "es3",
"loose": false,
"externalHelpers": false
},
"module": {
"type": "commonjs",
"strictMode": false,
"strict": true
}
}
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Adobe Scripting Setup

Basic setup for writing Adobe `.jsx` scripts in modern JavaScript with types and bundling.
Basic setup for writing Adobe `.jsx` scripts in TypeScript with compilation to ES3 and bundling.

## Commands

Expand All @@ -10,13 +10,11 @@ Basic setup for writing Adobe `.jsx` scripts in modern JavaScript with types and

## Features

- Modern JavaScript syntax compiled to ES3 (but no polyfills) using TypeScript
- Modern JavaScript syntax compiled to ES3 (but no polyfills) and bundled using [SWC](https://github.com/swc-project/swc)
- Types from [bbb999/Types-for-Adobe](https://github.com/bbb999/Types-for-Adobe)

The types for After Effects are included by default. You can add programs in `tsconfig.json`, by adding them to `compilerOptions.types`.

- Bundling with [Rollup](https://github.com/rollup/rollup)

- Debugging with the [ExtendScript Debugger](https://marketplace.visualstudio.com/items?itemName=Adobe.extendscript-debug)

Pressing <kbd>F5</kbd> will run `dist/script.jsx` in your selected application. Edit `.vscode/launch.json` to specify a different script.
Loading