-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
refactor(cli): optimize default templates #1214
Conversation
There was a problem hiding this 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.
v2/cmd/wails/internal/commands/initialise/templates/templates/svelte/wails.tmpl.json
Outdated
Show resolved
Hide resolved
v2/cmd/wails/internal/commands/initialise/templates/templates/vanilla/wails.tmpl.json
Outdated
Show resolved
Hide resolved
Manually specified values are removed as the application will automatically infer from embed.FS.
There was a problem hiding this 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.
v2/cmd/wails/internal/commands/generate/template/base/frontend/dist/index.html
Outdated
Show resolved
Hide resolved
v2/cmd/wails/internal/commands/generate/template/base/frontend/dist/index.html
Outdated
Show resolved
Hide resolved
v2/cmd/wails/internal/commands/initialise/templates/templates/svelte/frontend/README.md
Outdated
Show resolved
Hide resolved
...ails/internal/commands/initialise/templates/templates/svelte/frontend/package-lock.tmpl.json
Show resolved
Hide resolved
…svelte/frontend/README.md
* 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>
wails generate template
vanilla
templates and add scriptssvelte
template with Vite and add scriptThe template generated by the
base
template keeps the same UI and function as thevanilla
andsvelte
templates. All updates are only tested on windows.