You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The existing CLI will be replaced with the command
npx makes aurelia
This is a perfect option if you would like to generate a project from the command prompt, but it would be nice if there was a GUI/ wizard to create a project from vs code in the same way.
The great thing about the makes package is that we can supply it with command-line options and activate the silent mode (which won't ask questions, just runs unattended), so we could easily run it from predefined options in the GUI.
In vs code, we have the option to create a web view to run an Aurelia 2 app that can communicate with vs code using postMessage. So we will create an Aurelia 2 app that lives within the extension and inherits the style of visual studio code itself (the selected theme).
I thought about providing a GUI front for makes, but opted out for simplicity.
The GUI can be implemented by an alternative implementation of the makes inner prompts (where all user interactivity happens).
If you want to drive it from outside by peeking into the questions and other files, it feels too hacky. And you have to duplicate all conditional logic available in questions.
If it is doable, one thing you can try is, when spawn('npx', ['makes' ...], opts), build a special stdio in opts so you can render stdout in vscode. The stdio would better to be in TTY mode, so prompts can repaint the screen. It's something like how vscode implemented internal terminal.
create new Aurelia 2 project GUI
The existing CLI will be replaced with the command
This is a perfect option if you would like to generate a project from the command prompt, but it would be nice if there was a GUI/ wizard to create a project from vs code in the same way.
The great thing about the
makes
package is that we can supply it with command-line options and activate the silent mode (which won't ask questions, just runs unattended), so we could easily run it from predefined options in the GUI.In vs code, we have the option to create a web view to run an Aurelia 2 app that can communicate with vs code using
postMessage
. So we will create an Aurelia 2 app that lives within the extension and inherits the style of visual studio code itself (the selected theme).POC: https://youtu.be/JJvTWoeOK_4
Todo:
questions.json
,before.js
, ````after.js``` and base the option on that.The text was updated successfully, but these errors were encountered: