jbangdev / jbang-idea

IntelliJ IDEA plugin for JBang
https://plugins.jetbrains.com/plugin/18257-jbang
MIT License
20 stars 9 forks source link

JBang Project Wizard #18

Open linux-china opened 2 years ago

linux-china commented 2 years ago

Create JBang app from Project Wizard.

Features:

https://plugins.jetbrains.com/docs/intellij/project-wizard.html

maxandersen commented 2 years ago

This would use the same as used in create script but use it to create a project not just add files to existing project ?

linux-china commented 2 years ago

Yes, create a new project from JBang template.

linux-china commented 2 years ago

Reuse JavaModuleBuilder, and developers can choose Groovy, Kotlin languages, then the plugin create script file according developers' choice, for example Hello.java, Hello.groovy or Hello.kt

Screen Shot 2022-01-17 at 5 08 24 PM
maxandersen commented 2 years ago

Shouldn't it show/allow jbang templates ?

linux-china commented 2 years ago

I will implement this feature later because of custom UI builder.

nandorholozsnyak commented 2 years ago

Reuse JavaModuleBuilder, and developers can choose Groovy, Kotlin languages, then the plugin create script file according developers' choice, for example Hello.java, Hello.groovy or Hello.kt

Screen Shot 2022-01-17 at 5 08 24 PM

I know the plugin has a cool create new JBang script window, but will the template selector implemented in the Module creation wizard too? https://github.com/jbangdev/jbang-idea/issues/43

linux-china commented 2 years ago

@nandorholozsnyak IntelliJ IDEA 2022.1 has different UI and I will take a look and make a good design.

image

fbricon commented 2 years ago

I installed the plugin on IJ 2021.3, and saw I could create a JBang project, but after updating to 2022.1.2, I no longer see the possibility of creating a JBang project.

linux-china commented 2 years ago

@fbricon Yes, IntelliJ IDEA project wizard UI has been changed, and I will use new API for wizard UI.