JSUI icon indicating copy to clipboard operation
JSUI copied to clipboard

Feature request: support non-javascript projects

Open gerchicov-bp opened this issue 6 years ago • 2 comments

For example in my case I don't use it for javascript but I see that it allows to declare ANY terminal commands and show simple UI for them. In the same time I see some features related to javascript only which I won't use in my own project. What about to create a separate repo with just this functionality?

Or maybe could you explain how do you call terminal commands on button click?

gerchicov-bp avatar Jun 11 '18 13:06 gerchicov-bp

The terminal commands are located in a package.json file, so if you can add a termial command (echo hi) in package.json file under scripts, like this

{
  "name": "sample",
  "version": "1.0.0",
  "description": "sample project",
  "main": "index.js",
  "scripts": {
    "hi": "echo hi", 
    "vscode": "code ."
  },
  "author": "",
  "license": "ISC"
}

and then run it in JSUI (JSUI should show a button labeled 'hi' (I use it now for organizing .tex project and files and compile them)

jonathanvoelkle avatar Jun 18 '18 15:06 jonathanvoelkle

@jonathanvoelkle I understand how package.json scripts are declared but I need the other thing. This feature with scripts is so cool by itself so I suggest to separate it from the main project "JSUI"

gerchicov-bp avatar Oct 14 '21 10:10 gerchicov-bp