5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 18:10:48 +08:00
wails/v2/internal/binding/binding_test
Oleg Gulevskyy ca8a1fab36
Ability to define prefix / suffix for TS module (#2101)
* add tspostfix and tsprefix flags + organise under struct

* postifx -> suffix

* tsPrefix options on bindings struct

* pass prefix and suffix to the executable

* add support for CLI flags for generating module

* method to set TSpref/suff to bindings

* use passed ts prefix for typescriptify

* add brief Readme udpate to include new flags

* create reusable common flags

* use common flags instead of hardcoded text

* support tsprefix & suffix for dev

* add tsPrefix & tsSuffix for build cmd

* take pref & suff in account when gen d.ts

* export colorsful log functions into utils for reuse

* detect and warn the user about usage of reserved keyword

* fmt

* add TrimSpace on fn input

* refactor utils -> logutils

* add bindings -> ts_generation options to wailsjson parse

* use wailsjson for ts generation

* update warning message + extract to func

* remove suff/pref info from readme

* update json schema

* add tests for prefix and suffix case

* rename suffix method

* Update v2/internal/typescriptify/typescriptify.go

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>

* Update website/static/schemas/config.v2.json

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>

* Update website/static/schemas/config.v2.json

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>

* update changelog

* Minor tweaks

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2022-11-24 21:33:58 +11:00
..
binding_test_import fix: Prevent type parsing to interfere with package name in typescript generation (#1942) 2022-10-10 23:50:55 +11:00
binding_conflicting_package_name_test.go fix: Prevent type parsing to interfere with package name in typescript generation (#1942) 2022-10-10 23:50:55 +11:00
binding_emptystruct_test.go repair panic (#1999) 2022-10-22 21:04:49 +11:00
binding_escapedname_test.go Fix binding generation special cases (#1902) 2022-10-01 15:49:51 +10:00
binding_importedmap_test.go Fix binding generation special cases (#1902) 2022-10-01 15:49:51 +10:00
binding_importedslice_test.go Fix binding generation special cases (#1902) 2022-10-01 15:49:51 +10:00
binding_importedstruct_test.go Fix binding generation special cases (#1902) 2022-10-01 15:49:51 +10:00
binding_multiplestructs_test.go Sort structs in models.ts. Fixes #1958 (#1961) 2022-10-14 07:50:22 +11:00
binding_nestedfield_test.go Fix binding generation special cases (#1902) 2022-10-01 15:49:51 +10:00
binding_nonstringmapkey_test.go Fix binding generation special cases (#1902) 2022-10-01 15:49:51 +10:00
binding_singlefield_test.go Fix binding generation special cases (#1902) 2022-10-01 15:49:51 +10:00
binding_test.go Ability to define prefix / suffix for TS module (#2101) 2022-11-24 21:33:58 +11:00
binding_tsgeneration_test.go Ability to define prefix / suffix for TS module (#2101) 2022-11-24 21:33:58 +11:00