Vite based builder for transpile TypeScript to ExtendScript
npm install kt-extendscript-builderbash
npm install kt-extendscript-builder --save-dev
`
$3
`bash
Build your project
npx kt-build
Development mode with watch
npx kt-build --mode development --watch
Build tests
npx kt-build --test
`
Configuration
Configure your builds using command-line options or a kt-config.json file in your project root. Define multiple build profiles for different environments (development, production, testing) with custom settings for input/output paths, Adobe app targeting, and ponyfills.
Example kt-config.json:
`json
{
"default": {
"input": "src/index.ts",
"output": "dist/index.js",
"mode": "production"
},
"dev": {
"mode": "development",
"watch": true
}
}
`
Usage
Use KT ExtendScript Builder via command-line interface, integrate it into your npm scripts, or call it programmatically in Node.js scripts. Supports watch mode for development and test-specific builds.
Example npm scripts in package.json:
`json
{
"scripts": {
"build": "kt-build",
"dev": "kt-build dev",
"test": "kt-build --test"
}
}
``