All Projects → fusepilot → babel-preset-extendscript

fusepilot / babel-preset-extendscript

Licence: other
Babel preset for transpiling ES2015 and modern JS conventions to ES3.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to babel-preset-extendscript

Photoshop-Scripts
A collection of Photoshop scripts.
Stars: ✭ 53 (+51.43%)
Mutual labels:  extendscript
quickSRT
generating .srt(subtitles) in After Effects
Stars: ✭ 24 (-31.43%)
Mutual labels:  extendscript
ovid-editor
Adobe panel providing the most advanced scripting environment possible -- Typescript, app DOM autocomplete, full I/O features and more
Stars: ✭ 43 (+22.86%)
Mutual labels:  extendscript
ai-scripts
Scripts for Adobe Illustrator.
Stars: ✭ 18 (-48.57%)
Mutual labels:  extendscript
jsxbin
Convert jsx ExtendScript files into jsxbin files using ExtendScript Toolkit
Stars: ✭ 73 (+108.57%)
Mutual labels:  extendscript
ExtendScript
🍆 Getting started with ExtendScript ✨ by Jeff Davis
Stars: ✭ 23 (-34.29%)
Mutual labels:  extendscript
ai-merge
Import your SVG, AI, EPS, and PDF files into a single Illustrator document.
Stars: ✭ 65 (+85.71%)
Mutual labels:  extendscript
ExtendScript-for-Visual-Studio-Code
Extension that adds Adobe ExtendScript support to Visual Studio Code
Stars: ✭ 29 (-17.14%)
Mutual labels:  extendscript
Indentz
Collection of InDesign scripts for simple and repetitive tasks.
Stars: ✭ 23 (-34.29%)
Mutual labels:  extendscript
adobe-cep-react-create
Create Adobe-CEP extension with React, Material-UI, Native Node modules, Webpack, Babel and ExtendScript
Stars: ✭ 95 (+171.43%)
Mutual labels:  extendscript
adobe-illustrator-layer-renamer
Adobe Illustrator script to batch rename layers.
Stars: ✭ 40 (+14.29%)
Mutual labels:  extendscript
adobe-scripts
Drafts and unsorted JSX scripts for Adobe Illustrator, Photoshop
Stars: ✭ 29 (-17.14%)
Mutual labels:  extendscript
extendscript snippets
js, jsx, jsxbin snippets for InDesign, Illustrator, Photoshop
Stars: ✭ 35 (+0%)
Mutual labels:  extendscript
extendscript-starter
Starter project for extendscript-bundler + live reload capabilities
Stars: ✭ 26 (-25.71%)
Mutual labels:  extendscript
quickExp
a script for controlling expressions quickly in After Effects
Stars: ✭ 24 (-31.43%)
Mutual labels:  extendscript
multiverse
Adobe Photoshop scripts for making generative art
Stars: ✭ 21 (-40%)
Mutual labels:  extendscript
DuAEF
Duduf After Effects Framework
Stars: ✭ 20 (-42.86%)
Mutual labels:  extendscript
photoshop-react-redux-ramda
🎨😱💀⚛️
Stars: ✭ 24 (-31.43%)
Mutual labels:  extendscript

babel-preset-extendscript

What

Babel preset for transpiling ES2015 and modern JS conventions to ES3. Intended for use with Extendscript.

Install

With NPM:

$ npm install --save-dev babel-preset-extendscript

With Yarn:

$ yarn add --dev babel-preset-extendscript

Usage

Via .babelrc (Recommended)

.babelrc

{
  "presets": ["extendscript"]
}

Via CLI

$ babel script.js --presets extendscript

Via Node API

require('babel-core').transform('code', {
  presets: ['extendscript'],
});

Options

  • loose - Enable "loose" transformations for any plugins in this preset that allow them (Disabled by default).
  • modules - Enable transformation of ES6 module syntax to another module type (Enabled by default to "commonjs").
    • Can be false to not transform modules, or one of ["amd", "umd", "systemjs", "commonjs"]
{
  presets: [
    ["extendscript", {"loose": true, "modules": "amd"}]
  ]
}
{
  presets: [
    ["extendscript", {"loose": true, "modules": false}]
  ]
}

Features

ES2015

  • babel-plugin-transform-es2015

Convenience

  • console.log
  • JSON.stringify
  • JSON.parse
  • setTimeout
  • setInterval
  • clearTimeout
  • clearInterval

Shims

  • Object.keys
  • Object.assign
  • Object.create
  • Array.isArray
  • Number.isFinite
  • Array.prototype.forEach
  • Array.prototype.find
  • Array.prototype.filter
  • Array.prototype.map
  • Array.prototype.reduce

Shams

  • Object.getPrototypeOf
  • Object.defineProperty
  • Object.defineProperties
  • Object.getOwnPropertyNames
  • Object.getOwnPropertyDescriptor
  • Object.seal
  • Object.freeze
  • Object.isSealed
  • Object.isFrozen
  • Object.isExtensible

Fixes

  • Wraps all conditional expressions in parentheses to prevent Expected: : error.

Known Issues

• CallExpression's that uses other transforms from this preset only insert them 1 level deep due to path.unshiftContainer adding a new CallExpression in Program:exit(). Need to figure out a way to do another Program:exit() after the first if new CallExpressions have been added so state[name].matches can be += 1'd.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].