Copy link to clipboard
Copied
Hello all, I made a quick CLI generator to set up Typescript if you're interested:
It does all the heavy lifting for you, and is very quick when the types are already installed at some folder in the parent. If you're unsure of what the advantage to Typescript is, notice that I can see the App DOM as I type below, a .jsx file is compiled every time I save, and I could even use more modern Javascript than scripting would typically allow:
To install, you'll need NodeJS:
npm install -g scriptopia
Usage can be any of the following:
// We need a package.json somewhere in our project, even if a few folders above. If you haven't made one already, you'll need to generate a package.json beforehand:
npm init -y
// With CLI prompts:
scriptopia
// With shorthands, no prompt:
scriptopia ai test.jsx
scriptopia ilst helloworld.ts
scriptopia illustrator myScript.js
// Detailed help message:
scriptopia help
Copy link to clipboard
Copied
Thanks for sharing inventsable, it looks very interesting. It all sounds like Greek to me though, I need to give this a try.
Copy link to clipboard
Copied
Thanks Carlos!
Let me know if you need any help, I understand that it's confusing to try after being so used to doing things a certain way. But essentially, this lets you see the DOM as you type (exactly like the online editor I made) along with parameters of app methods -- can definitely be useful instead of constantly needing to stop and doublecheck the documentation.
Copy link to clipboard
Copied
thanks for the offer, I'm sure I will have lots of questions. I'll try when I have a chance.
thanks
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more