Skip to main content
Inventsable
Legend
December 5, 2019
Question

Scriptopia - Easy to use CLI tool to setup Typescript for you, no Typescript know-how needed

  • December 5, 2019
  • 0 replies
  • 217 views

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 id test.jsx
scriptopia idsn helloworld.ts
scriptopia indesign myScript.js

// Detailed help message:
scriptopia help

 

This topic has been closed for replies.