Giter Site home page Giter Site logo

kaivnd / extendscriptr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from extendscript/extendscriptr

0.0 1.0 0.0 485 KB

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

License: Do What The F*ck You Want To Public License

JavaScript 100.00%

extendscriptr's Introduction

Extendscriptr

All Contributors npm version Join the chat at https://gitter.im/vogelino/extendscriptr travis

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
Lucas Vogel

πŸ’» 🎨
Fabian MorΓ³n Zirfas
Fabian MorΓ³n Zirfas

πŸ’¬ 🎨
Bruno Herfst
Bruno Herfst

πŸ’»
Andy Dayton
Andy Dayton

πŸ’»
Stefano Masini
Stefano Masini

πŸ’»
bsky
bsky

🚧
silmelumenn
silmelumenn

πŸ’» ⚠️

Thanks goes to these wonderful people (emoji key):

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.