Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(cli): optimize default templates #1214

Merged
merged 7 commits into from
Mar 6, 2022
Merged

refactor(cli): optimize default templates #1214

merged 7 commits into from
Mar 6, 2022

Conversation

misitebao
Copy link
Contributor

  • Optimize the base template used by wails generate template
  • Optimize built-in default vanilla templates and add scripts
  • Refactor svelte template with Vite and add script

The template generated by the base template keeps the same UI and function as the vanilla and svelte templates. All updates are only tested on windows.

Copy link
Collaborator

@stffabi stffabi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome @misitebao, thanks for all the hard work you've put into this.

I'm not an frontend expert, so I have only left a comment regarding the assetdir entry in wails.json.

Manually specified values are removed as the application will automatically infer from embed.FS.
Copy link
Member

@leaanthony leaanthony left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's take out the drag attributes.

@leaanthony leaanthony merged commit d36e130 into wailsapp:master Mar 6, 2022
@misitebao misitebao deleted the optimize-default-templates branch March 6, 2022 11:03
leaanthony added a commit that referenced this pull request Mar 8, 2022
* refactor(cli): optimize the template that generates the base template

* refactor: optimize the default vanilla template

* feat(cli): add script to default vanilla template

* refactor(cli): refactor default svelte template and add script

* fix: remove manually added assetdir fields

Manually specified values are removed as the application will automatically infer from embed.FS.

* fix: remove drag attribute within page

* Update v2/cmd/wails/internal/commands/initialise/templates/templates/svelte/frontend/README.md

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants