I just tried the “clone” repository feature and this is the resulting project:
This project has an integrated build system which requires to run “pnpm run build” whenever the user wants to publish modifications to the website.
Basically the user edits the content in the ./source folder, while the website is published/served from the ./docs folder.
So I have two requests (or questions?) about that.
- Can the home folder of the editor point to a different location rather than the app’s root?
- Can we have a menu in the editor with a shortcut to run scripts listed in package.json (but the ‘start’ one)
This way the user can focus on authoring content in the ./source folder without having to deal or see all the other stuff coming from the build system.
Then the user could also just hit the option “Build” to publish to the “./docs” folder, without having to open the console and type
pnpm run build himself.
Perhaps we could use the enviroment vars for such purpose? Something like: