Lea Anthony
ba9e64f53a
Merge pull request #848 from codydbentley/refactor-dev-command
...
Refactored `wails dev` command:
2021-10-04 17:10:26 +11:00
Lea Anthony
b15d98b555
[v2] Rename noautoinjectbindings -> noautoinjectipc
2021-10-04 16:53:27 +11:00
Cody Bentley
bdda454f69
Refactored wails dev
command:
...
- added `devFlags` data structure for managing flags
- created `defaultDevFlags()` for generating default `devFlags` struct
- created `loadAndMergeProjectConfig()` to consolidate wails.json interaction
- re-arranged some variable creation and logic to put related pieces together
- consolidated `frontend:dev` handling to `runFrontendDevCommand()`
- added `generateBuildOptions()` for readability
- removed unused `passthruArgs` slice
- consolidated `restartApp()` call signature, removed unused `firstRun` argument
- fixed browser open option still using hard-coded default value, switched to recently added const `defaultDevServerURL`
- removed unnecessary `projectDir` variable (it's identical to `cwd` variable)
- consolidated watcher init to `initialiseWatcher()` which returns a deferable closer
- moved the main watch loop to `doWatcherLoop()`
- moved new deBounce flag handling to `loadAndMergeProjectConfig()`
2021-10-03 23:01:42 -06:00
Lea Anthony
a59d01ddb9
[v2] Fix killing dev command on Windows
2021-10-03 22:19:40 +11:00
Lea Anthony
27f8df2b31
[v2] Support "frontend:dev" command
2021-10-03 21:29:59 +11:00
Lea Anthony
1b28f69236
[v2] Fix -devserverurl flag
2021-10-03 16:44:37 +11:00
Lea Anthony
7572b64bec
[v2] Add -devserverurl flag
2021-10-03 15:07:10 +11:00
Lea Anthony
f6b83b0933
[v2] New -debounce flag to configure debounce time of dev server
2021-10-03 14:04:05 +11:00
Cody Bentley
4bf3eb303b
Fixed base NEXTSTEPS and README in v2 template generator
2021-10-02 17:29:43 -06:00
Lea Anthony
e2e752dd06
[v2] Fix timing bug
2021-10-02 19:55:49 +10:00
Lea Anthony
b0da974a7d
[v2] v2.0.0-beta.4
2021-10-02 14:16:40 +10:00
Lea Anthony
b4dc8c252a
[v2] update now uses go install
2021-10-02 14:14:07 +10:00
Lea Anthony
afb1d12c3b
[v2] Add meta tag to control script injection behaviour
2021-10-02 14:04:59 +10:00
Cody Bentley
e6a89790e3
Fixed missing comma that would break bindings when more than one package exists
2021-09-29 22:04:28 -06:00
Lea Anthony
6bc26aa669
[v2] Add .gitignore to templates
2021-09-30 08:20:32 +10:00
Lea Anthony
a641deb388
[v2] Devserver listen to localhost
2021-09-30 08:00:50 +10:00
Lea Anthony
e013ce14a1
[v2] fix tags in dev mode
2021-09-30 07:11:49 +10:00
Lea Anthony
9930ee10da
Revert "Corrected obsolete 'text/javascript' mime to 'application/javascript'"
...
This reverts commit 23c1ebfac9
.
2021-09-30 07:07:13 +10:00
Lea Anthony
c8359b0743
[v2] sync go.sum
2021-09-30 07:01:12 +10:00
Lea Anthony
12b7cf09e6
[v2] Support Goland IDE
2021-09-30 07:00:46 +10:00
Lea Anthony
49b1acc147
[v2] v2.0.0-beta.3
2021-09-29 20:24:56 +10:00
Lea Anthony
4aa1464b48
[v2] fix module version in templates. Refactor ide flag
2021-09-29 20:15:26 +10:00
Cody Bentley
23c1ebfac9
Corrected obsolete 'text/javascript' mime to 'application/javascript'
2021-09-29 01:06:28 -06:00
Cody Bentley
3de31613a1
Added JS case to mimecache
2021-09-29 00:50:49 -06:00
Lea Anthony
9a54f289c4
[v2] v2.0.0-beta.2
2021-09-29 07:25:02 +10:00
Lea Anthony
4a740e6186
[v2] Fix: Remove random C imports
2021-09-28 20:00:42 +10:00
Lea Anthony
34e622455f
[v2] Fix: empty content responses
2021-09-28 19:56:08 +10:00
Lea Anthony
b13d8ef9fa
[mac] Guard browser.go
2021-09-28 19:44:12 +10:00
Soheib El-Harrache
37987b3827
Fix browser.go
...
Fixed minimum version variable
2021-09-27 15:12:37 -04:00
Lea Anthony
481eaa5ade
[v2] beta.1
2021-09-27 21:13:54 +10:00
Lea Anthony
33c4865ca7
[v2] beta.0 test
2021-09-27 20:53:05 +10:00
Lea Anthony
3417455ba6
[v2] Template mod updates
2021-09-27 20:30:31 +10:00
Lea Anthony
020b098328
[v2] Template mod updates
2021-09-27 20:29:44 +10:00
Lea Anthony
3781cbe731
[v2] Template updates
2021-09-27 20:11:44 +10:00
Lea Anthony
b7c28ab1f2
[v2] Misc Fixes
2021-09-27 19:59:00 +10:00
Lea Anthony
828f07ea13
[v2] Misc template updates
2021-09-27 19:09:49 +10:00
Lea Anthony
8565749b0c
[v2] Fixed file change detection
2021-09-26 17:52:45 +10:00
Lea Anthony
33112029b8
[v2] Check for dev binary before deleting
2021-09-25 20:15:03 +10:00
Lea Anthony
37df1e0e0f
[v2] more vscode fixes
2021-09-25 14:52:11 +10:00
Lea Anthony
f7bb8771f1
[v2] Fix svelte template
2021-09-25 14:44:48 +10:00
Lea Anthony
2f2a7a567a
[v2] Fix vscode output + default template
2021-09-25 14:44:23 +10:00
Lea Anthony
b5bc0ba181
[v2] Tidy up console output
2021-09-25 14:44:23 +10:00
misitebao
23d53253f9
[v2]feat: optimize the template content of the template command
2021-09-23 04:12:16 +08:00
misitebao
54a401106b
[v2]feat: optimize the content of the default template
2021-09-23 04:09:48 +08:00
Lea Anthony
fe6dd4d18f
[windows] fix fullscreen at startup
2021-09-22 19:28:07 +10:00
Lea Anthony
29a2d5b3d8
[windows] Update winc
2021-09-22 08:24:09 +10:00
Lea Anthony
36647b9370
[v2] Fix default templates README
2021-09-21 20:18:52 +10:00
Lea Anthony
bb50941770
[v2] Add version command
2021-09-21 20:16:35 +10:00
Lea Anthony
981ce4f8ad
[v2] Always generate into subdir
2021-09-21 20:11:25 +10:00
Lea Anthony
9f235bf78d
[windows] Fix fullscreen + drag
2021-09-21 17:35:38 +10:00