I write scripts that automates some routine work of designers, that works with Photoshop. And by the time, i have noticed that some part of my code repeats from project to project, so i decided to wrap it into reusable modules.
I choose npm-packages (node.js) for that purpose. And it opened a great opportunity of using other npm-packages (CSV parser for example) in my projects! And moreover, to use webpack to make production builds of my scripts, minify, lint and test my scripts in automated way. But i faced with some difficulties in my way to bright future .
The point is that Photoshop (CS family) uses extension of es3 standard (if i am not mistaken), and i want to patch it to es5 standard as much as possible. There is several polyfills for js engine, like:
- * http://babeljs.io/docs/usage/polyfill/
* https://github.com/es-shims/es5-shim
* https://github.com/zloirock/core-js
Some polyfills developers supplies their libs with automated tests, it could solve my problem, but they (tests) also assume browser as environment, so it is hard to launch this tests in Photoshop for me.
Well, i need help in making a list of polyfills that could be safely applied to Photoshop script engine, can anybody help me?